Commit 01e1dcb
committed
SLM: Refactor DTR+RI UART handler
Work in progress: Not ready.
* Refactor to use just Zephyr GPIO API
* Use Devicetree to define pins
* Refactor DTR UP/DOWN events to ASSERT/DEASSERT
* Logic level 1 is asserted, use DT to change 0/1 level of that.
* Remove support of DTE device, that is separate driver
TODO:
* sw_dtr should not keep RX buffers. Instead when RX is enabled, feed
buffer to UART from application call.
* When buffer is needed, make a callback to app to request a buffer.
* When UART is powered down because of DTR, block RX_STOP and RX_DISABLE
events going to application, so app thinks the UART keeps on going.
Signed-off-by: Seppo Takalo <[email protected]>1 parent 120532d commit 01e1dcb
File tree
4 files changed
+293
-603
lines changed- applications/serial_lte_modem
- drivers/serial
- dts/bindings/serial
4 files changed
+293
-603
lines changedLines changed: 27 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
18 | 25 | | |
0 commit comments