From ebf3791ddbde81aa7b52d2ea161c3ec0ece3d2a6 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 17 Apr 2016 15:37:18 +0200 Subject: fsm: disable USART2 RX --- src/fsm/usart.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fsm/usart.c b/src/fsm/usart.c index 70b16ba..ab6fc36 100644 --- a/src/fsm/usart.c +++ b/src/fsm/usart.c @@ -78,6 +78,7 @@ void usart_init() USART_InitStruct.USART_Mode = USART_Mode_Tx | USART_Mode_Rx; USART_Init(USART2, &USART_InitStruct); +#if USART2_RECEIVE_ENABLE // enable the USART2 receive interrupt USART_ITConfig(USART2, USART_IT_RXNE, ENABLE); @@ -89,6 +90,7 @@ void usart_init() NVIC_Init(&NVIC_InitStructure); NVIC_SetPriority(USART2_IRQn, 6); +#endif // finally this enables the complete USART2 peripheral USART_Cmd(USART2, ENABLE); -- cgit v1.2.3