Commit be60c33
committed
fw/drivers/sf32lb52/uart: disable stop mode if RX is enabled
We cannot use stop mode (deepsleep) if UART RX is enabled, otherwise the
system would not react to UART input when in deepsleep. While this
increases power consumption significantly, it is not critical as on
release builds (except on MFG firmware) the dbgserial is turned off.
Fixes #427
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>1 parent 5c3355d commit be60c33
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
| 48 | + | |
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
| |||
0 commit comments