This commit is contained in:
hathach
2022-11-21 11:52:51 +07:00
parent 51873cd1be
commit cab65acc46
3 changed files with 43 additions and 10 deletions

View File

@@ -43,7 +43,7 @@ int main(void)
{
board_init();
printf("TinyUSB Host MSC Explorer Example\r\n");
printf("TinyUSB Host MassStorage Explorer Example\r\n");
// init host stack on configured roothub port
tuh_init(BOARD_TUH_RHPORT);
@@ -67,14 +67,12 @@ int main(void)
void tuh_mount_cb(uint8_t dev_addr)
{
// application set-up
printf("A device with address %d is mounted\r\n", dev_addr);
(void) dev_addr;
}
void tuh_umount_cb(uint8_t dev_addr)
{
// application tear-down
printf("A device with address %d is unmounted \r\n", dev_addr);
(void) dev_addr;
}