Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions cores/lightning-ln882h/base/lt_family.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
#include <lt_pins.h>

// Choose the main UART output port
// Per Tuya WL2H-U datasheet, UART1 (PB8/PB9) is the designated log port;
// UART0 (PA2/PA3) is the user UART and should remain free as GPIO.
#ifndef LT_UART_DEFAULT_PORT
#if LT_HW_UART0
#define LT_UART_DEFAULT_PORT 0
#elif LT_HW_UART1
#if LT_HW_UART1
#define LT_UART_DEFAULT_PORT 1
#elif LT_HW_UART0
#define LT_UART_DEFAULT_PORT 0
#elif LT_HW_UART2
#define LT_UART_DEFAULT_PORT 2
#else
Expand Down
Loading