summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorhathach <[email protected]>2025-07-02 15:38:14 +0700
committerhathach <[email protected]>2025-07-02 15:38:14 +0700
commita8b5e2bfc0a2d35ba775f7b2de81d531ed525e41 (patch)
tree98007b91887c7ef9e3745c893d7607ecb7a2fe6e /hw
parent0388700ad7c0fc8565457a56d7e7bd5744ac0d1d (diff)
update example
Diffstat (limited to 'hw')
-rw-r--r--hw/bsp/rp2040/family.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/hw/bsp/rp2040/family.c b/hw/bsp/rp2040/family.c
index 8c85c5cc8..a22924131 100644
--- a/hw/bsp/rp2040/family.c
+++ b/hw/bsp/rp2040/family.c
@@ -254,7 +254,7 @@ size_t board_get_unique_id(uint8_t id[], size_t max_len) {
int board_uart_read(uint8_t *buf, int len) {
#ifdef UART_DEV
int count = 0;
- while ( (count < len) && uart_is_readable(uart_inst) ) {
+ while ((count < len) && uart_is_readable(uart_inst)) {
buf[count] = uart_getc(uart_inst);
count++;
}
@@ -282,6 +282,10 @@ int board_getchar(void) {
return getchar_timeout_us(0);
}
+void board_putchar(int c) {
+ stdio_putchar(c);
+}
+
//--------------------------------------------------------------------+
// USB Interrupt Handler
// rp2040 implementation will install appropriate handler when initializing