We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ff0036 commit 49769cfCopy full SHA for 49769cf
ports/mimxrt10xx/supervisor/serial.c
@@ -34,12 +34,11 @@
34
#include "fsl_lpuart.h"
35
36
// 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)
+// If the board defined a debug uart tx or rx pin then we enable this code
+#if defined(CIRCUITPY_DEBUG_UART_TX) || defined(CIRCUITPY_DEBUG_UART_RX)
39
// static LPUART_Type *uart_instance = LPUART1; // evk
40
static LPUART_Type *uart_instance = LPUART4; // feather 1011
41
// static LPUART_Type *uart_instance = LPUART2; // feather 1062
42
-
43
static uint32_t UartSrcFreq(void) {
44
uint32_t freq;
45
0 commit comments