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:
parent
62f8045327
commit
abcbd3d852
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/*===========================================================================*/
|
||||
|
|
|
@ -49,6 +49,7 @@ UARTConfig uart_cfg_1 = {
|
|||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
38400,
|
||||
0,
|
||||
USART_CR2_LINEN,
|
||||
|
|
Loading…
Reference in New Issue