mirror of
https://github.com/D-Modem/hardware.git
synced 2026-11-28 17:48:05 -08:00
firmware/: Pico SDK 2.3.1 + TinyUSB 0.21.0 (for CDC SERIAL_STATE). - portable core (src/core): role detection from chip A STATUS / chip B INVALID with both chips off (3 x 50 ms samples, 1 s loss), modem-line mapping (DCE: host DTR -> DCD+DSR, RTS -> CTS; DTE: DTR/RTS through), hold-off at 3/4 buffer, FLOW_AUTO latch for 3-wire cables, SERIAL_STATE with one-shot error events, line coding with flagged adjustments, timed break, settings in flash with CRC - RP2040 layer: GPIO with the transceivers' inversion, UART with IRQs and per-byte error flags, UART pins routed to the active chip, flash settings, watchdog; USB composite: CDC, the pico-serial control vendor interface (PROTOCOL.md) and Raspberry Pi's reset interface (picotool) - GPIO numbers generated from the netlist (build_netlist.py now writes firmware/src/generated/board_pins.h) - boards: hood (16 MB flash, crystal margin) and a Pico bench rig Tests: 22 host tests on the core with a fake HAL (sanitizers; checked by breaking the core on purpose), and an end-to-end test that boots the real image in rp2040js: enumeration, detection, line mapping, data both ways, SERIAL_STATE, vendor requests, DTE mode (20 checks). CI workflow runs both plus builds for both boards. Not yet run on hardware. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013PRsUCpxazyipPn5UGGkF8
11 lines
224 B
JSON
11 lines
224 B
JSON
{
|
|
"name": "pico-serial-emu-test",
|
|
"private": true,
|
|
"type": "module",
|
|
"description": "Runs the pico-serial firmware in the rp2040js emulator",
|
|
"devDependencies": {
|
|
"rp2040js": "1.4.0",
|
|
"tsx": "4.20.6"
|
|
}
|
|
}
|