#include "board.h"
#include "libstoragemedia.h"
#include "libsdmmc.h"
#include "MSDDriver.h"
#include "MSDLun.h"
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
Go to the source code of this file.
Detailed Description
This file contains all the specific code for the usb_massstorage.
Definition in file main.c.
Define Documentation
Nand flash
Definition at line 134 of file main.c.
Media index for different disks RAM disk
Definition at line 132 of file main.c.
SD card
Definition at line 133 of file main.c.
Maximum number of LUNs which can be defined.
Definition at line 128 of file main.c.
#define RAMDISK_SIZE 128*1024 |
RamDisk size (in bytes) RamDisk size: 20K (WinXP can not format the disk if lower than 20K)
Definition at line 138 of file main.c.
Function Documentation
SDCard driver instance. XDMA0 interrupt handler.
Definition at line 177 of file main.c.
COMPILER_SECTION |
( |
"ramdisk_region" |
|
) |
|
SD card pins instance.
Definition at line 140 of file main.c.
usb_massstorage Application entry point.
Configures UART, Configures TC0, USB MSD Driver and run it.
- Returns:
- Unused (ANSI-C compatibility).
Definition at line 460 of file main.c.
Invoked when a new SETUP request is received from the host. Forwards the request to the Mass Storage device driver handler function.
- Parameters:
-
Definition at line 222 of file main.c.
void USBDDriverCallbacks_ConfigurationChanged |
( |
unsigned char |
cfgnum |
) |
|
Invoked when the configuration of the device changes. Resets the mass storage driver.
- Parameters:
-
| cfgnum | New configuration number. |
Definition at line 232 of file main.c.
Variable Documentation
Available media.
Definition at line 165 of file main.c.