host msc example work well with rp2040 pio-usb

This commit is contained in:
hathach
2022-11-21 15:49:38 +07:00
parent ba9f88f18c
commit 460bef9dbb
11 changed files with 43 additions and 37 deletions

View File

@@ -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
//--------------------------------------------------------------------+

View File

@@ -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);
}