From a7362dc14bca1233eb34b41aefebe9cfb22684ac Mon Sep 17 00:00:00 2001 From: "info@mode42.com" Date: Fri, 7 Aug 2026 18:09:58 +0000 Subject: Initial push --- firmware/s1224/include/board_pins.h | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 firmware/s1224/include/board_pins.h (limited to 'firmware/s1224/include/board_pins.h') 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 +#include + +#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 */ -- cgit v1.3.1