11 #include "../sd/Sd2Card.h" 16 #ifdef USB_MASSSTORAGE 46 SdFatFs *fs = SD.getVolume();
64 return Sd2Card::errorCode();
72 if (Sd2Card::writeBlock(writebuff, lba, transferLength)) {
82 if (Sd2Card::readBlock(readbuff, lba, transferLength)) {
const USBD_DEVICE USR_MSC_desc
const stm32_pin_info PIN_MAP[BOARD_NR_GPIO_PINS]
#define USB_MASS_MAL_SUCCESS
uint16_t usb_mass_mal_get_status(uint8_t lun)
const USBD_Usr_cb_TypeDef USR_cb
void USBD_Init(USB_OTG_CORE_HANDLE *pdev, const USB_OTG_CORE_ID_TypeDef coreID, const USBD_DEVICE *pDevice, const USBD_Class_cb_TypeDef *class_cb, const USBD_Usr_cb_TypeDef *usr_cb)
USBD_Init Initailizes the device stack and load the class driver.
static usb_attr_t * usb_attr
uint32_t MAL_massBlockCount[STORAGE_LUN_NBR]
#define USB_MASS_MAL_FAIL
const USBD_Class_cb_TypeDef USBD_MSC_cb
USB_OTG_CORE_HANDLE USB_OTG_dev
int8_t usb_mass_mal_write_memory(uint8_t lun, uint8_t *writebuff, uint32_t memoryOffset, uint16_t transferLength)
const gpio_dev * present_port
uint32_t MAL_massBlockSize[STORAGE_LUN_NBR]
void usb_default_attr(usb_attr_t *attr)
int8_t usb_mass_mal_read_memory(uint8_t lun, uint8_t *readbuff, uint32_t memoryOffset, uint16_t transferLength)
const gpio_dev *const gpio_device
void usb_setParams(usb_attr_t *attr)