Commit ae519a6
committed
Refactor DMX UART mapping and port usage
Introduces a new `dmx::port::Info` model (`dmx_port.h`) to centralize per-port UART/GPIO/usage metadata, then rewires DMX/RDM IRQ, DMA, direction, and send paths to derive port indices from UART at compile time with uniqueness checks. This removes legacy `DmxPortToUart` mapping, adds TX/RX-only behavior guards, and updates direction/data handling to respect per-port usage.
The change also modernizes UART helpers under `gd32::` (`UartBegin`, flag/interrupt helpers, `gd32::Uart` enum), fixes `has_continuous_output_` naming, and introduces reusable E1.20 message-length constants used in RDM parsing.1 parent ffda3b1 commit ae519a6
10 files changed
Lines changed: 562 additions & 505 deletions
File tree
- lib-dmx
- include/gd32
- src/gd32
- lib-gd32
- include
- src
- uart0
- lib-rdm/include
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
0 commit comments