Skip to content

Commit 49769cf

Browse files
committed
Convert to use debug rx/tx pins to trigger adding this code
As per review request
1 parent 7ff0036 commit 49769cf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ports/mimxrt10xx/supervisor/serial.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,11 @@
3434
#include "fsl_lpuart.h"
3535

3636
// TODO: Switch this to using DEBUG_UART.
37-
// Need official way to turn off the port serial code when it is not needed
38-
#if defined(USE_DEBUG_PORT_CODE)
37+
// If the board defined a debug uart tx or rx pin then we enable this code
38+
#if defined(CIRCUITPY_DEBUG_UART_TX) || defined(CIRCUITPY_DEBUG_UART_RX)
3939
// static LPUART_Type *uart_instance = LPUART1; // evk
4040
static LPUART_Type *uart_instance = LPUART4; // feather 1011
4141
// static LPUART_Type *uart_instance = LPUART2; // feather 1062
42-
4342
static uint32_t UartSrcFreq(void) {
4443
uint32_t freq;
4544

0 commit comments

Comments
 (0)