diff options
author | Fabio Utzig <utzig@utzig.org> | 2016-04-03 22:56:30 -0300 |
---|---|---|
committer | Fabio Utzig <utzig@utzig.org> | 2016-04-03 22:56:30 -0300 |
commit | 73e00fb69cc1a494767f3d8d2c6733558b5247f1 (patch) | |
tree | 87411b6e7b5f318fcaa92015dfc23988bd9c3c47 /os/hal | |
parent | 6852dce930c7503082bd0849e6c7a0cf432a364f (diff) | |
download | ChibiOS-Contrib-73e00fb69cc1a494767f3d8d2c6733558b5247f1.tar.gz ChibiOS-Contrib-73e00fb69cc1a494767f3d8d2c6733558b5247f1.tar.bz2 ChibiOS-Contrib-73e00fb69cc1a494767f3d8d2c6733558b5247f1.zip |
Fix API usage in serial driver
Diffstat (limited to 'os/hal')
-rw-r--r-- | os/hal/ports/NRF51/NRF51822/serial_lld.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/os/hal/ports/NRF51/NRF51822/serial_lld.c b/os/hal/ports/NRF51/NRF51822/serial_lld.c index 550a070..029c5da 100644 --- a/os/hal/ports/NRF51/NRF51822/serial_lld.c +++ b/os/hal/ports/NRF51/NRF51822/serial_lld.c @@ -167,7 +167,7 @@ static void notify1(io_queue_t *qp) return;
if (!sdp->tx_busy) {
- msg_t b = chOQGetI(&sdp->oqueue);
+ msg_t b = oqGetI(&sdp->oqueue);
if (b < Q_OK) {
chnAddFlagsI(sdp, CHN_OUTPUT_EMPTY);
@@ -199,9 +199,9 @@ OSAL_IRQ_HANDLER(Vector48) { NRF_UART0->EVENTS_RXDRDY = 0;
osalSysLockFromISR();
- if (chIQIsEmptyI(&sdp->iqueue))
+ if (iqIsEmptyI(&sdp->iqueue))
chnAddFlagsI(sdp, CHN_INPUT_AVAILABLE);
- if (chIQPutI(&sdp->iqueue, NRF_UART0->RXD) < Q_OK)
+ if (iqPutI(&sdp->iqueue, NRF_UART0->RXD) < Q_OK)
chnAddFlagsI(sdp, SD_OVERRUN_ERROR);
osalSysUnlockFromISR();
}
@@ -213,7 +213,7 @@ OSAL_IRQ_HANDLER(Vector48) { NRF_UART0->EVENTS_TXDRDY = 0;
osalSysLockFromISR();
- b = chOQGetI(&sdp->oqueue);
+ b = oqGetI(&sdp->oqueue);
osalSysUnlockFromISR();
if (b < Q_OK) {
|