summaryrefslogtreecommitdiff
path: root/firmware/s1224/include/board_pins.h
diff options
context:
space:
mode:
authorinfo@mode42.com <info@mode42.com>2026-08-07 18:09:58 +0000
committerinfo@mode42.com <info@mode42.com>2026-08-07 18:09:58 +0000
commita7362dc14bca1233eb34b41aefebe9cfb22684ac (patch)
treef727c87f92aeb503038deeecc24d3e074dc0197c /firmware/s1224/include/board_pins.h
Initial pushmain
Diffstat (limited to 'firmware/s1224/include/board_pins.h')
-rw-r--r--firmware/s1224/include/board_pins.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/firmware/s1224/include/board_pins.h b/firmware/s1224/include/board_pins.h
new file mode 100644
index 0000000..0fb1a21
--- /dev/null
+++ b/firmware/s1224/include/board_pins.h
@@ -0,0 +1,39 @@
+/**
+ * T-Modem-s1224 pin map — softmodem service Pico (same PCB base as c1224).
+ * No TCM3105: PWM AF out bypasses chip socket (prototype jumper to AF path).
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ */
+#ifndef S1224_BOARD_PINS_H
+#define S1224_BOARD_PINS_H
+
+#include <stdint.h>
+#include <stdbool.h>
+
+#define S1224_HAS_CHIP_MODEM 0
+
+/* I2C LCD (shared-kit class; level-shifted on board) */
+#define PIN_I2C_SDA 0
+#define PIN_I2C_SCL 1
+#define I2C_LCD_BAUDRATE 100000
+#define I2C_LCD_ADDR_DEFAULT 0x27
+
+/* GP6 · PCB net AF_TX · PWM AFSK out */
+#define PIN_AF_TX 6
+
+/* GP26 · PCB net AF_RX when routed · ADC channel 0 */
+#define PIN_AF_RX_ADC 26
+
+/* GP7/GP8 · NC on s1224 PCB · optional FW sense if wired */
+#define PIN_GP7_SENSE 7
+#define PIN_MODEM_RXD PIN_GP7_SENSE /* alias · was chip RXD name */
+#define PIN_MODEM_CDT 8 /* unused · NC on board */
+
+#define PIN_PTT_DRV 9 /* GP9 · PTT keying */
+
+#define PIN_LED_PTT 10
+#define PIN_LED_DCD 11
+#define PIN_LED_TXRX 12
+
+void board_pins_init(void);
+
+#endif /* S1224_BOARD_PINS_H */
git clone -b <branch> https://cgit.mode42.com/<repo>.git
git clone -b <branch> git://cgit.mode42.com/<repo>.git

info@mode42.com