Commit b50c475
authored
feat(cli): warn when a UART's configured dmaopt loses its DMA claim (#1400)
* feat(cli): warn when a UART's configured dmaopt loses its DMA claim
serialUART() silently falls back to IRQ-driven mode when uartDmaClaim()
loses a stream/channel to another peripheral, leaving no CLI or log
signal. Cross-checks a resolved dmaopt against dmaGetOwner()'s live
ownership state at both get/list time (printDmaoptEntry) and set time
(cliDmaopt), printing a warning on mismatch.
Closes #1388.
* fix(cli): flag unmapped DMA identifiers, shrink dmaopt claim strings
dmaGetIdentifier() returning DMA_NONE means a reqmap table entry points
at a stream missing from dmaDescriptors[]. It read identically to the
benign OWNER_FREE case. Adds a distinct DMA MAP ERROR line for it.
Collapses the two CLAIMED BY message branches into one shared format
string, cutting duplicate string literals from flash.
Closes #1388.1 parent a4ca6ad commit b50c475
1 file changed
Lines changed: 33 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4053 | 4053 | | |
4054 | 4054 | | |
4055 | 4055 | | |
| 4056 | + | |
| 4057 | + | |
| 4058 | + | |
| 4059 | + | |
| 4060 | + | |
| 4061 | + | |
| 4062 | + | |
| 4063 | + | |
| 4064 | + | |
| 4065 | + | |
| 4066 | + | |
| 4067 | + | |
| 4068 | + | |
| 4069 | + | |
| 4070 | + | |
| 4071 | + | |
| 4072 | + | |
| 4073 | + | |
| 4074 | + | |
| 4075 | + | |
| 4076 | + | |
| 4077 | + | |
| 4078 | + | |
| 4079 | + | |
| 4080 | + | |
4056 | 4081 | | |
4057 | 4082 | | |
4058 | 4083 | | |
| |||
4066 | 4091 | | |
4067 | 4092 | | |
4068 | 4093 | | |
| 4094 | + | |
4069 | 4095 | | |
4070 | 4096 | | |
4071 | 4097 | | |
| |||
4162 | 4188 | | |
4163 | 4189 | | |
4164 | 4190 | | |
| 4191 | + | |
| 4192 | + | |
| 4193 | + | |
| 4194 | + | |
| 4195 | + | |
| 4196 | + | |
| 4197 | + | |
4165 | 4198 | | |
4166 | 4199 | | |
4167 | 4200 | | |
| |||
0 commit comments