diff --git a/os/hal/ports/sandbox/hal_sio_lld.c b/os/hal/ports/sandbox/hal_sio_lld.c index d2a9d0e1f..36d523860 100644 --- a/os/hal/ports/sandbox/hal_sio_lld.c +++ b/os/hal/ports/sandbox/hal_sio_lld.c @@ -448,14 +448,13 @@ msg_t sio_lld_control(SIODriver *siop, unsigned int operation, void *arg) { * @notapi */ void sio_lld_serve_interrupt(SIODriver *siop) { - sioevents_t events, enabled; + sioevents_t events; #if SIO_USE_SYNCHRONIZATION == TRUE __syscall2rr(201, SB_VUART_GEVT, siop->nvuart); osalDbgAssert((msg_t)r0 == HAL_RET_SUCCESS, "unexpected failure"); /* Only processing enabled events.*/ - enabled = siop->enabled events = (sioevents_t)r1; /* Processing events, if any.*/ diff --git a/os/sb/vio/sbvio_uart.c b/os/sb/vio/sbvio_uart.c index 627acbf74..622012c22 100644 --- a/os/sb/vio/sbvio_uart.c +++ b/os/sb/vio/sbvio_uart.c @@ -96,7 +96,7 @@ void sb_api_vio_uart(struct port_extctx *ectxp) { if (msg == HAL_RET_SUCCESS) { /* Starting with disabled events, enabling the callback.*/ - sioWriteEnableFlags(unitp->siop, SIO_FL_NONE); + sioWriteEnableFlags(unitp->siop, SIO_EV_NONE); sioSetCallbackX(unitp->siop, vuart_cb); } @@ -204,7 +204,7 @@ void sb_api_vio_uart(struct port_extctx *ectxp) { } case SB_VUART_WREN: { - sioflags_t flags = (sioflags_t)ectxp->r2; + sioevents_t flags = (sioevents_t)ectxp->r2; if (unitp->siop->state != SIO_READY) { ectxp->r0 = (uint32_t)CH_RET_EIO;