diff --git a/hw/bsp/rp2040/family.c b/hw/bsp/rp2040/family.c index 90e2192c0..6a2735eaf 100644 --- a/hw/bsp/rp2040/family.c +++ b/hw/bsp/rp2040/family.c @@ -118,7 +118,7 @@ void stdio_rtt_init(void) #endif -#ifdef UART_DEV +#if defined(UART_DEV) && defined(LIB_PICO_STDIO_UART) static uart_inst_t *uart_inst; #endif @@ -188,7 +188,7 @@ uint32_t board_button_read(void) int board_uart_read(uint8_t* buf, int len) { -#ifdef UART_DEV +#if defined(UART_DEV) && defined(LIB_PICO_STDIO_UART) for(int i=0;i