diff options
Diffstat (limited to 'os/hal/src')
-rw-r--r-- | os/hal/src/serial.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/src/serial.c b/os/hal/src/serial.c index fdb802ccc..ca09e9d64 100644 --- a/os/hal/src/serial.c +++ b/os/hal/src/serial.c @@ -133,7 +133,7 @@ void sdInit(void) { void sdObjectInit(SerialDriver *sdp, qnotify_t inotify, qnotify_t onotify) {
sdp->vmt = &vmt;
- chEvtInit(&sdp->event);
+ chEvtObjectInit(&sdp->event);
sdp->state = SD_STOP;
chIQInit(&sdp->iqueue, sdp->ib, SERIAL_BUFFERS_SIZE, inotify, sdp);
chOQInit(&sdp->oqueue, sdp->ob, SERIAL_BUFFERS_SIZE, onotify, sdp);
|