USARTv1-related fixes.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@13215 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2019-12-10 08:29:13 +00:00
parent 62f8045327
commit abcbd3d852
2 changed files with 4 additions and 2 deletions

View File

@ -350,8 +350,9 @@ static void serve_usart_irq(UARTDriver *uartp) {
}
/* Timeout interrupt sources are only checked if enabled in CR1.*/
if ((cr1 & USART_CR1_IDLEIE) && (sr & USART_SR_IDLE))
_uart_timeout_isr_code(uartp);
if ((cr1 & USART_CR1_IDLEIE) && (sr & USART_SR_IDLE)) {
_uart_timeout_isr_code(uartp);
}
}
/*===========================================================================*/

View File

@ -49,6 +49,7 @@ UARTConfig uart_cfg_1 = {
NULL,
NULL,
NULL,
NULL,
38400,
0,
USART_CR2_LINEN,