Commit ac16a90
[lightning-ln882h] Fix default log UART port to UART1 (libretiny-eu#373)
Per Tuya WL2H-U datasheet, UART1 (PB8/PB9) is the designated log output
port on LN882H modules. UART0 (PA2/PA3) is the user UART and is typically
connected to GPIOs on CB3S-footprint boards (e.g. indicator LEDs on the
DS-101JL wall switch). Using UART0 as the default log port was introduced
in libretiny-eu#312 and caused PA2/PA3 to be claimed by AFIO, preventing their use
as GPIO.
Change lt_family.h to prefer UART1 over UART0 as the default, consistent
with how beken-72xx defaults to UART2/UART1 and avoids UART0.1 parent fc8c881 commit ac16a90
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | | - | |
10 | | - | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
0 commit comments