#include <mios32.h>
#include <usb_lib.h>
#include <string.h>
#include "msd.h"
#include "msd_desc.h"
#include "msd_bot.h"
#include "msd_memory.h"
Defines | |
#define | GET_MAX_LUN 0xFE |
#define | MASS_STORAGE_RESET 0xFF |
#define | LUN_DATA_LENGTH 1 |
#define | MSD_IMR_MSK (CNTR_CTRM | CNTR_RESETM) |
Functions | |
s32 | MSD_Init (u32 mode) |
s32 | MSD_Periodic_mS (void) |
s32 | MSD_CheckAvailable (void) |
s32 | MSD_LUN_AvailableSet (u8 lun, u8 available) |
s32 | MSD_LUN_AvailableGet (u8 lun) |
s32 | MSD_RdLEDGet (u16 lag_ms) |
s32 | MSD_WrLEDGet (u16 lag_ms) |