clean up msc app
This commit is contained in:
@@ -74,13 +74,22 @@
|
|||||||
<folder Name="nordic">
|
<folder Name="nordic">
|
||||||
<folder Name="nrfx">
|
<folder Name="nrfx">
|
||||||
<folder Name="drivers">
|
<folder Name="drivers">
|
||||||
<folder Name="include" />
|
<folder Name="include">
|
||||||
|
<file file_name="../../../../hw/mcu/nordic/nrfx/drivers/include/nrfx_power_clock.h" />
|
||||||
|
<file file_name="../../../../hw/mcu/nordic/nrfx/drivers/include/nrfx_power.h" />
|
||||||
|
<file file_name="../../../../hw/mcu/nordic/nrfx/drivers/include/nrfx_qspi.h" />
|
||||||
|
</folder>
|
||||||
<folder Name="src">
|
<folder Name="src">
|
||||||
<file file_name="../../../../hw/mcu/nordic/nrfx/drivers/src/nrfx_power.c" />
|
<file file_name="../../../../hw/mcu/nordic/nrfx/drivers/src/nrfx_power.c" />
|
||||||
<file file_name="../../../../hw/mcu/nordic/nrfx/drivers/src/nrfx_power_clock.c" />
|
<file file_name="../../../../hw/mcu/nordic/nrfx/drivers/src/nrfx_power_clock.c" />
|
||||||
|
<file file_name="../../../../hw/mcu/nordic/nrfx/drivers/src/nrfx_qspi.c" />
|
||||||
</folder>
|
</folder>
|
||||||
</folder>
|
</folder>
|
||||||
<folder Name="hal" />
|
<folder Name="hal">
|
||||||
|
<file file_name="../../../../hw/mcu/nordic/nrfx/hal/nrf_power.h" />
|
||||||
|
<file file_name="../../../../hw/mcu/nordic/nrfx/hal/nrf_qspi.h" />
|
||||||
|
<file file_name="../../../../hw/mcu/nordic/nrfx/hal/nrf_usbd.h" />
|
||||||
|
</folder>
|
||||||
<folder Name="mdk">
|
<folder Name="mdk">
|
||||||
<file file_name="../../../../hw/mcu/nordic/nrfx/mdk/nrf51_to_nrf52840.h" />
|
<file file_name="../../../../hw/mcu/nordic/nrfx/mdk/nrf51_to_nrf52840.h" />
|
||||||
<file file_name="../../../../hw/mcu/nordic/nrfx/mdk/nrf52840_bitfields.h" />
|
<file file_name="../../../../hw/mcu/nordic/nrfx/mdk/nrf52840_bitfields.h" />
|
||||||
|
@@ -47,15 +47,6 @@
|
|||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
// tinyusb callbacks
|
// 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
|
// Callback invoked when received an SCSI command not in built-in list below
|
||||||
// - READ_CAPACITY10, READ_FORMAT_CAPACITY, INQUIRY, MODE_SENSE6, REQUEST_SENSE
|
// - READ_CAPACITY10, READ_FORMAT_CAPACITY, INQUIRY, MODE_SENSE6, REQUEST_SENSE
|
||||||
|
@@ -50,8 +50,6 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CFG_TUD_MSC
|
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
DISK_BLOCK_NUM = 16, // 8KB is the smallest size that windows allow to mount
|
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
|
#define MSCD_APP_RAMDISK
|
||||||
#endif
|
#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
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@@ -38,7 +38,7 @@
|
|||||||
|
|
||||||
#include "msc_device_app.h"
|
#include "msc_device_app.h"
|
||||||
|
|
||||||
#if CFG_TUD_MSC && defined (MSCD_APP_RAMDISK)
|
#if CFG_TUD_MSC && defined (BOARD_FLASH_INTERNAL)
|
||||||
|
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
// MACRO CONSTANT TYPEDEF
|
// MACRO CONSTANT TYPEDEF
|
||||||
|
Reference in New Issue
Block a user