summaryrefslogtreecommitdiff
path: root/examples/host/msc_file_explorer
diff options
context:
space:
mode:
authorhathach <[email protected]>2022-11-21 15:49:38 +0700
committerhathach <[email protected]>2022-11-21 15:49:38 +0700
commit460bef9dbb40d1c6990c1bfd2f8da48978550932 (patch)
tree0324f30682b7fdbac33074cd382be2bf85f1287a /examples/host/msc_file_explorer
parentba9f88f18c222d9e74e483340ade4a420ad49f01 (diff)
host msc example work well with rp2040 pio-usb
Diffstat (limited to 'examples/host/msc_file_explorer')
-rw-r--r--examples/host/msc_file_explorer/src/main.c2
-rw-r--r--examples/host/msc_file_explorer/src/msc_app.c5
2 files changed, 4 insertions, 3 deletions
diff --git a/examples/host/msc_file_explorer/src/main.c b/examples/host/msc_file_explorer/src/main.c
index 652986b7c..ab2cfd498 100644
--- a/examples/host/msc_file_explorer/src/main.c
+++ b/examples/host/msc_file_explorer/src/main.c
@@ -35,6 +35,7 @@
//--------------------------------------------------------------------+
void led_blinking_task(void);
+// from msc_app.c
extern bool msc_app_init(void);
extern void msc_app_task(void);
@@ -75,7 +76,6 @@ void tuh_umount_cb(uint8_t dev_addr)
(void) dev_addr;
}
-
//--------------------------------------------------------------------+
// Blinking Task
//--------------------------------------------------------------------+
diff --git a/examples/host/msc_file_explorer/src/msc_app.c b/examples/host/msc_file_explorer/src/msc_app.c
index 6e5cb672a..b7c9212ee 100644
--- a/examples/host/msc_file_explorer/src/msc_app.c
+++ b/examples/host/msc_file_explorer/src/msc_app.c
@@ -25,6 +25,7 @@
#include <ctype.h>
#include "tusb.h"
+#include "bsp/board.h"
#include "ff.h"
#include "diskio.h"
@@ -75,13 +76,13 @@ void msc_app_task(void)
{
if (!_cli) return;
- int ch = getchar();
+ int ch = board_uart_getchar();
if ( ch > 0 )
{
while( ch > 0 )
{
embeddedCliReceiveChar(_cli, (char) ch);
- ch = getchar();
+ ch = board_uart_getchar();
}
embeddedCliProcess(_cli);
}