From d282266beb71bfb9b21cf00f3025c01df7dd8e4d Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Tue, 24 Sep 2024 14:16:35 -0600 Subject: rename cr_chan to cr_rpc --- usb_keyboard.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usb_keyboard.c') 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; -- cgit v1.2.3-2-g168b