#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 132 of file main.c.
Media index for different disks RAM disk
Definition at line 130 of file main.c.
SD card
Definition at line 131 of file main.c.
Maximum number of LUNs which can be defined.
Definition at line 126 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 136 of file main.c.
Function Documentation
COMPILER_SECTION |
( |
"ramdisk_region" |
|
) |
|
SD card pins instance.
Definition at line 138 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 448 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 219 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 229 of file main.c.
Variable Documentation
Available media.
Definition at line 162 of file main.c.
Delay TO event
Definition at line 188 of file main.c.
Total data write to disk
Definition at line 185 of file main.c.