git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@6589 35acf78f-673a-0410-8e92-d51de3d6d3f4
master
gdisirio 2014-01-02 10:26:23 +00:00
parent 7f29ac09c7
commit 5925c74839
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}
}