diff options
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/sbc_harness/config/config.h | 4 | ||||
-rw-r--r-- | cmd/sbc_harness/main.c | 6 | ||||
-rw-r--r-- | cmd/srv9p/main.c | 1 |
3 files changed, 8 insertions, 3 deletions
diff --git a/cmd/sbc_harness/config/config.h b/cmd/sbc_harness/config/config.h index b557287..98fc156 100644 --- a/cmd/sbc_harness/config/config.h +++ b/cmd/sbc_harness/config/config.h @@ -66,6 +66,10 @@ #define CONFIG_DHCP_OPT_SIZE 312 /* minimum of 312 */ #define CONFIG_DHCP_SELECTING_NS (5*NS_PER_S) +/* USB KEYBOARD ***************************************************************/ + +#define CONFIG_USB_COMMON_DEBUG 1 /* bool */ + /* COROUTINE ******************************************************************/ #define CONFIG_COROUTINE_DEFAULT_STACK_SIZE (2*1024) diff --git a/cmd/sbc_harness/main.c b/cmd/sbc_harness/main.c index 17d32cf..23195b3 100644 --- a/cmd/sbc_harness/main.c +++ b/cmd/sbc_harness/main.c @@ -5,7 +5,6 @@ */ #include <string.h> /* libc: for strlen() */ -#include <stdio.h> /* libc: for printf() */ #include <pico/stdlib.h> /* pico-sdk:pico_stdlib: for stdio_uart_init() */ #include <hardware/flash.h> /* pico-sdk:hardware_flash: for flash_get_unique_id() */ @@ -17,6 +16,9 @@ #include <libusb/usb_common.h> #include <libdhcp/client.h> +#define LOG_NAME MAIN +#include <libmisc/log.h> + #include "usb_keyboard.h" COROUTINE hello_world_cr(void *_chan) { @@ -27,7 +29,7 @@ COROUTINE hello_world_cr(void *_chan) { for (size_t i = 0;; i = (i+1) % strlen(msg)) { int result = usb_keyboard_rpc_send_req(chan, (uint32_t)msg[i]); if (result < 1) { - printf("error!\n"); + errorf("error sending rune U+%d", (uint32_t)msg[i]); break; } } diff --git a/cmd/srv9p/main.c b/cmd/srv9p/main.c index d0a683a..be34daa 100644 --- a/cmd/srv9p/main.c +++ b/cmd/srv9p/main.c @@ -5,7 +5,6 @@ */ #include <error.h> -#include <stdio.h> #include <lib9p/srv.h> #include <libcr/coroutine.h> |