Commit 8a6195e
tests: drivers: lpuart: Fix two chip test
Test which run on nrf9160 and nrf52480 was failing as uart driver
is now releasing UART pins when in idle. It means that TX pin should
have pull-up as otherwise it is floating and can lead to errors in
the communication. Test was failing due to that.
Added pull-ups to TX pins in pinctrl sleep state.
Enforced pinctrl sleep state to be present (event when PM device
is not used).
Added detection of premature test completion which could lead to
false positive. Test is now failing if too few packets are received.
Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>1 parent 4aa43eb commit 8a6195e
4 files changed
Lines changed: 17 additions & 4 deletions
File tree
- tests/drivers/lpuart
- boards
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
23 | 28 | | |
24 | 29 | | |
25 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
39 | 44 | | |
40 | 45 | | |
41 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| 241 | + | |
| 242 | + | |
241 | 243 | | |
242 | 244 | | |
243 | 245 | | |
| |||
0 commit comments