clean up msc app
This commit is contained in:
@@ -47,15 +47,6 @@
|
||||
//--------------------------------------------------------------------+
|
||||
// tinyusb callbacks
|
||||
//--------------------------------------------------------------------+
|
||||
void msc_app_mount(uint8_t rhport)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void msc_app_umount(uint8_t rhport)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Callback invoked when received an SCSI command not in built-in list below
|
||||
// - READ_CAPACITY10, READ_FORMAT_CAPACITY, INQUIRY, MODE_SENSE6, REQUEST_SENSE
|
||||
|
||||
@@ -50,8 +50,6 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#if CFG_TUD_MSC
|
||||
|
||||
enum
|
||||
{
|
||||
DISK_BLOCK_NUM = 16, // 8KB is the smallest size that windows allow to mount
|
||||
@@ -69,21 +67,6 @@ issue at github.com/hathach/tinyusb"
|
||||
#define MSCD_APP_RAMDISK
|
||||
#endif
|
||||
|
||||
void msc_app_init(void);
|
||||
void msc_app_task(void* param);
|
||||
|
||||
void msc_app_mount(uint8_t rhport);
|
||||
void msc_app_umount(uint8_t rhport);
|
||||
|
||||
#else
|
||||
|
||||
#define msc_app_init()
|
||||
#define msc_app_task(x)
|
||||
#define msc_app_mount(x)
|
||||
#define msc_app_umount(x)
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
|
||||
#include "msc_device_app.h"
|
||||
|
||||
#if CFG_TUD_MSC && defined (MSCD_APP_RAMDISK)
|
||||
#if CFG_TUD_MSC && defined (BOARD_FLASH_INTERNAL)
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
// MACRO CONSTANT TYPEDEF
|
||||
|
||||
Reference in New Issue
Block a user