mirror of
https://github.com/hathach/tinyusb.git
synced 2025-04-25 03:02:26 +00:00
guard stdio_uart_init_full with LIB_PICO_STDUI_UART as the function doesn't exist otherwise
This commit is contained in:
parent
db138a530c
commit
90d7483d92
@ -127,7 +127,7 @@ void board_init(void)
|
|||||||
#ifndef BUTTON_BOOTSEL
|
#ifndef BUTTON_BOOTSEL
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef UART_DEV
|
#if defined(UART_DEV) && defined(LIB_PICO_STDIO_UART)
|
||||||
bi_decl(bi_2pins_with_func(UART_TX_PIN, UART_TX_PIN, GPIO_FUNC_UART));
|
bi_decl(bi_2pins_with_func(UART_TX_PIN, UART_TX_PIN, GPIO_FUNC_UART));
|
||||||
uart_inst = uart_get_instance(UART_DEV);
|
uart_inst = uart_get_instance(UART_DEV);
|
||||||
stdio_uart_init_full(uart_inst, CFG_BOARD_UART_BAUDRATE, UART_TX_PIN, UART_RX_PIN);
|
stdio_uart_init_full(uart_inst, CFG_BOARD_UART_BAUDRATE, UART_TX_PIN, UART_RX_PIN);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user