host msc example work well with rp2040 pio-usb
This commit is contained in:
@@ -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
|
||||
//--------------------------------------------------------------------+
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user