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 bfd0d0a commit 3722520Copy full SHA for 3722520
cores/arduino/stm32/uart.c
@@ -70,9 +70,13 @@
70
#define UART_NUM (8)
71
#elif defined(STM32F2xx)
72
#define UART_NUM (6)
73
-#else // STM32F1xx || STM32F3xx || STM32L0xx || STM32L1xx || STM32L4xx
+#elif defined(STM32F1xx) || defined(STM32F3xx) ||\
74
+ defined(STM32L0xx) || defined(STM32L1xx) || defined(STM32L4xx)
75
#define UART_NUM (5)
76
+#else
77
+#error "Unknown Family - unknown UART_NUM"
78
#endif
79
+
80
static UART_HandleTypeDef *uart_handlers[UART_NUM] = {NULL};
81
static void (*rx_callback[UART_NUM])(serial_t*);
82
static serial_t *rx_callback_obj[UART_NUM];
0 commit comments