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 --- main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 30a6dfc..1fd9f8c 100644 --- a/main.c +++ b/main.c @@ -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); -- cgit v1.2.3-2-g168b