summaryrefslogtreecommitdiff
path: root/usb_keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'usb_keyboard.c')
-rw-r--r--usb_keyboard.c8
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;