Again bug #442.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@6589 35acf78f-673a-0410-8e92-d51de3d6d3f4master
parent
7f29ac09c7
commit
5925c74839
|
@ -161,7 +161,7 @@ static void serve_interrupt(SerialDriver *sdp) {
|
|||
chSysLockFromIsr();
|
||||
chnAddFlagsI(sdp, SD_BREAK_DETECTED);
|
||||
chSysUnlockFromIsr();
|
||||
u->SR &= ~USART_SR_LBD;
|
||||
u->SR = ~USART_SR_LBD;
|
||||
}
|
||||
|
||||
/* Data available.*/
|
||||
|
@ -194,8 +194,8 @@ static void serve_interrupt(SerialDriver *sdp) {
|
|||
chSysLockFromIsr();
|
||||
chnAddFlagsI(sdp, CHN_TRANSMISSION_END);
|
||||
chSysUnlockFromIsr();
|
||||
u->CR1 = cr1 & ~USART_CR1_TCIE;
|
||||
u->SR &= ~USART_SR_TC;
|
||||
u->CR1 = cr1 & ~(USART_CR1_TXEIE | USART_CR1_TCIE);
|
||||
u->SR = ~USART_SR_TC;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue