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