diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-03-16 10:43:57 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-03-16 10:43:57 +0000 |
commit | 8ecb193368678a4a75cb65674fdb69e97888adfd (patch) | |
tree | 4ece0d3472e2f86dd505880a1a6bd51780d08798 /os/hal/ports/STM32/LLD/USARTv1/serial_lld.c | |
parent | ceeef3c918319996786b297b40a43e99e446e2c9 (diff) | |
download | ChibiOS-8ecb193368678a4a75cb65674fdb69e97888adfd.tar.gz ChibiOS-8ecb193368678a4a75cb65674fdb69e97888adfd.tar.bz2 ChibiOS-8ecb193368678a4a75cb65674fdb69e97888adfd.zip |
Queues improvements.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9124 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32/LLD/USARTv1/serial_lld.c')
-rw-r--r-- | os/hal/ports/STM32/LLD/USARTv1/serial_lld.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/ports/STM32/LLD/USARTv1/serial_lld.c b/os/hal/ports/STM32/LLD/USARTv1/serial_lld.c index 801b4fa20..89baa94d0 100644 --- a/os/hal/ports/STM32/LLD/USARTv1/serial_lld.c +++ b/os/hal/ports/STM32/LLD/USARTv1/serial_lld.c @@ -194,7 +194,7 @@ static void serve_interrupt(SerialDriver *sdp) { msg_t b;
osalSysLockFromISR();
b = oqGetI(&sdp->oqueue);
- if (b < Q_OK) {
+ if (b < MSG_OK) {
chnAddFlagsI(sdp, CHN_OUTPUT_EMPTY);
u->CR1 = (cr1 & ~USART_CR1_TXEIE) | USART_CR1_TCIE;
}
|