git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15753 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
cc6fdedf79
commit
8edeca1379
|
@ -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.*/
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue