summaryrefslogtreecommitdiff
path: root/firmware/c1224/src/common/crystal_steer.c
diff options
context:
space:
mode:
authorinfo@mode42.com <info@mode42.com>2026-08-07 18:15:00 +0000
committerinfo@mode42.com <info@mode42.com>2026-08-07 18:15:00 +0000
commitd393e0c30192611d4cac65a5429fd7180ce1f49c (patch)
tree7e47bd930340c75c4802801a81f3bd17c2469d9f /firmware/c1224/src/common/crystal_steer.c
Initial pushmain
Diffstat (limited to 'firmware/c1224/src/common/crystal_steer.c')
-rw-r--r--firmware/c1224/src/common/crystal_steer.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/firmware/c1224/src/common/crystal_steer.c b/firmware/c1224/src/common/crystal_steer.c
new file mode 100644
index 0000000..520682c
--- /dev/null
+++ b/firmware/c1224/src/common/crystal_steer.c
@@ -0,0 +1,20 @@
+/*
+ * Crystal policy — v1.0 single-XTAL: physical rate = stuffed crystal.
+ * FW does not switch baud; dual UF2 obsolete; crystal_steer = no-op.
+ * Y1 4.4336 → 1200 · Y2 6.5536 → 2400 · GP14/15 unused (mux abandoned).
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ */
+#include "crystal_steer.h"
+
+static bool g_applied;
+
+void crystal_steer_apply(void)
+{
+ /* No-op: board stuffing (not GPIO mux / not FW baud) selects the crystal. */
+ g_applied = true;
+}
+
+bool crystal_steer_applied(void)
+{
+ return g_applied;
+}
git clone -b <branch> https://cgit.mode42.com/<repo>.git
git clone -b <branch> git://cgit.mode42.com/<repo>.git

info@mode42.com