diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -17,11 +17,11 @@ COROUTINE hello_world_cr(void *_chan) { const char *msg = "Hello world!\n"; - usb_keyboard_chan_t *chan = _chan; + usb_keyboard_rpc_t *chan = _chan; cr_begin(); for (size_t i = 0;; i = (i+1) % strlen(msg)) { - cr_chan_req(chan, NULL, msg[i]); + cr_rpc_req(chan, NULL, msg[i]); } cr_end(); @@ -39,7 +39,7 @@ int main() { /* set up coroutines */ coroutine_add(usb_common_cr, NULL); - usb_keyboard_chan_t keyboard_chan = {0}; + usb_keyboard_rpc_t keyboard_chan = {0}; coroutine_add(usb_keyboard_cr, &keyboard_chan); coroutine_add(hello_world_cr, &keyboard_chan); |