aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32F0xx/UART
diff options
context:
space:
mode:
Diffstat (limited to 'testhal/STM32/STM32F0xx/UART')
-rw-r--r--testhal/STM32/STM32F0xx/UART/main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/testhal/STM32/STM32F0xx/UART/main.c b/testhal/STM32/STM32F0xx/UART/main.c
index 16a7ba582..08c60b9ad 100644
--- a/testhal/STM32/STM32F0xx/UART/main.c
+++ b/testhal/STM32/STM32F0xx/UART/main.c
@@ -92,6 +92,14 @@ static void rxend(UARTDriver *uartp) {
}
/*
+ * This callback is invoked when configured timeout reached.
+ */
+static void rxtimeout(UARTDriver *uartp) {
+
+ (void)uartp;
+}
+
+/*
* UART driver configuration structure.
*/
static UARTConfig uart_cfg_1 = {
@@ -100,6 +108,8 @@ static UARTConfig uart_cfg_1 = {
rxend,
rxchar,
rxerr,
+ rxtimeout,
+ 0,
38400,
0,
USART_CR2_LINEN,