diff options
Diffstat (limited to 'example-fs-bb48/usb-cdc.c')
-rw-r--r-- | example-fs-bb48/usb-cdc.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/example-fs-bb48/usb-cdc.c b/example-fs-bb48/usb-cdc.c index 0936a40..38b16ea 100644 --- a/example-fs-bb48/usb-cdc.c +++ b/example-fs-bb48/usb-cdc.c @@ -686,7 +686,10 @@ tty_main (void *arg) while (1) { - chopstx_poll (NULL, 1, &usb_intr); + struct chx_poll_head *pd_array[1] = { + (struct chx_poll_head *)&usb_intr + }; + chopstx_poll (NULL, 1, pd_array); if (usb_intr.ready) { uint8_t ep_num; @@ -919,7 +922,10 @@ tty_recv (struct tty *t, char *buf, uint32_t *timeout) while (1) { - chopstx_poll (timeout, 1, &poll_desc); + struct chx_poll_head *pd_array[1] = { + (struct chx_poll_head *)&poll_desc + }; + chopstx_poll (timeout, 1, pd_array); chopstx_mutex_lock (&t->mtx); r = check_rx (t); chopstx_mutex_unlock (&t->mtx); |