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(); chSysLockFromIsr();
chnAddFlagsI(sdp, SD_BREAK_DETECTED); chnAddFlagsI(sdp, SD_BREAK_DETECTED);
chSysUnlockFromIsr(); chSysUnlockFromIsr();
u->SR &= ~USART_SR_LBD; u->SR = ~USART_SR_LBD;
} }
/* Data available.*/ /* Data available.*/
@ -194,8 +194,8 @@ static void serve_interrupt(SerialDriver *sdp) {
chSysLockFromIsr(); chSysLockFromIsr();
chnAddFlagsI(sdp, CHN_TRANSMISSION_END); chnAddFlagsI(sdp, CHN_TRANSMISSION_END);
chSysUnlockFromIsr(); chSysUnlockFromIsr();
u->CR1 = cr1 & ~USART_CR1_TCIE; u->CR1 = cr1 & ~(USART_CR1_TXEIE | USART_CR1_TCIE);
u->SR &= ~USART_SR_TC; u->SR = ~USART_SR_TC;
} }
} }