diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-09-24 14:16:35 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-09-24 14:16:35 -0600 |
commit | d282266beb71bfb9b21cf00f3025c01df7dd8e4d (patch) | |
tree | 16e5bd9f909148f68e960bbba36b55e94ea22e5e /usb_keyboard.c | |
parent | d559c50a98e65ce889411b46ab108b392907e0f0 (diff) |
rename cr_chan to cr_rpc
Diffstat (limited to 'usb_keyboard.c')
-rw-r--r-- | usb_keyboard.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usb_keyboard.c b/usb_keyboard.c index e6638ec..1989b35 100644 --- a/usb_keyboard.c +++ b/usb_keyboard.c @@ -43,7 +43,7 @@ void usb_keyboard_init() { static uint8_t ascii2keycode[128][2] = { HID_ASCII_TO_KEYCODE }; COROUTINE usb_keyboard_cr(void *_chan) { - usb_keyboard_chan_t *chan = _chan; + usb_keyboard_rpc_t *chan = _chan; cr_begin(); uint8_t report_id = 0; @@ -53,9 +53,9 @@ COROUTINE usb_keyboard_cr(void *_chan) { while (!tud_hid_n_ready(kbd_ifc)) cr_yield(); - if (cr_chan_have_req(chan)) { + if (cr_rpc_have_req(chan)) { uint32_t rune; - cr_chan_recv_req(chan, &rune); + cr_rpc_recv_req(chan, &rune); modifier = ascii2keycode[rune][0] ? KEYBOARD_MODIFIER_LEFTSHIFT : 0; keycodes[0] = ascii2keycode[rune][1]; @@ -68,7 +68,7 @@ COROUTINE usb_keyboard_cr(void *_chan) { keycodes[0] = 0; tud_hid_n_keyboard_report(kbd_ifc, report_id, modifier, keycodes); - cr_chan_send_resp(chan, 1); + cr_rpc_send_resp(chan, 1); } else { modifier = 0; keycodes[0] = 0; |