tnt has submitted this change. (
https://gerrit.osmocom.org/c/osmo-e1-hardware/+/27893 )
Change subject: icE1usb fw/gpsdo: Add debug prints for coarse/fine tune entry
......................................................................
icE1usb fw/gpsdo: Add debug prints for coarse/fine tune entry
Signed-off-by: Sylvain Munaut <tnt(a)246tNt.com>
Change-Id: Ife69f9ce4c6f3eb6d40b05ce8f862ff68180357f
---
M firmware/ice40-riscv/icE1usb/gpsdo.c
1 file changed, 9 insertions(+), 0 deletions(-)
Approvals:
Jenkins Builder: Verified
laforge: Looks good to me, approved
tnt: Looks good to me, approved
diff --git a/firmware/ice40-riscv/icE1usb/gpsdo.c b/firmware/ice40-riscv/icE1usb/gpsdo.c
index 7e3682f..c94a5ed 100644
--- a/firmware/ice40-riscv/icE1usb/gpsdo.c
+++ b/firmware/ice40-riscv/icE1usb/gpsdo.c
@@ -145,6 +145,11 @@
static void
_gpsdo_coarse_start(void)
{
+ /* Debug */
+#ifdef GPSDO_DEBUG
+ printf("[+] GPSDO Coarse Start: tune=%d:%d\n", g_gpsdo.tune.coarse,
g_gpsdo.tune.fine);
+#endif
+
/* Set the state */
g_gpsdo.state = STATE_TUNE_COARSE;
@@ -165,6 +170,10 @@
static void
_gpsdo_fine_start(void)
{
+#ifdef GPSDO_DEBUG
+ printf("[+] GPSDO Fine Start\n");
+#endif
+
/* Set the state */
g_gpsdo.state = STATE_TUNE_FINE;
--
To view, visit
https://gerrit.osmocom.org/c/osmo-e1-hardware/+/27893
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-e1-hardware
Gerrit-Branch: master
Gerrit-Change-Id: Ife69f9ce4c6f3eb6d40b05ce8f862ff68180357f
Gerrit-Change-Number: 27893
Gerrit-PatchSet: 1
Gerrit-Owner: tnt <tnt(a)246tNt.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: tnt <tnt(a)246tNt.com>
Gerrit-MessageType: merged