diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-09-27 20:45:36 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-09-27 20:45:36 -0600 |
commit | fa357459f88bb8f0170d1a68df66e7d068d59996 (patch) | |
tree | 8585b5755ae224c6609f982d973141f1f6bad97b /cmd/sbc_harness/main.c | |
parent | d54ddec236bf9bdb8c032cd5fbdb0aa46ffebe86 (diff) |
fixes
Diffstat (limited to 'cmd/sbc_harness/main.c')
-rw-r--r-- | cmd/sbc_harness/main.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/cmd/sbc_harness/main.c b/cmd/sbc_harness/main.c index 1fd9f8c..31ce30b 100644 --- a/cmd/sbc_harness/main.c +++ b/cmd/sbc_harness/main.c @@ -4,15 +4,12 @@ * SPDX-Licence-Identifier: AGPL-3.0-or-later */ -/* newlib */ #include <string.h> /* for strlen() */ - -/* pico-sdk */ #include "pico/stdlib.h" -/* local */ -#include "coroutine.h" -#include "usb_common.h" +#include <libcr/coroutine.h> +#include <libusb/usb_common.h> + #include "usb_keyboard.h" COROUTINE hello_world_cr(void *_chan) { @@ -21,7 +18,8 @@ COROUTINE hello_world_cr(void *_chan) { cr_begin(); for (size_t i = 0;; i = (i+1) % strlen(msg)) { - cr_rpc_req(chan, NULL, msg[i]); + int result; + cr_rpc_req(chan, &result, (uint32_t)msg[i]); } cr_end(); |