67 #include "lpcusb/usbapi.h"
74 #error PCLK needs to be higher than 18MHz for USB to work properly
78 #define MAX_PACKET_SIZE 64
80 #define LE_WORD(x) ((x)&0xFF),((x)>>8)
144 'L', 0,
'P', 0,
'C', 0,
'U', 0,
'S', 0,
'B', 0,
148 'S', 0,
'D', 0,
'-', 0,
'R', 0,
'e', 0,
'a', 0,
'd', 0,
'e', 0,
'r', 0,
152 '1', 0,
'2', 0,
'3', 0,
'4', 0,
'5', 0,
'6', 0,
'7', 0,
'8', 0,
168 if (pSetup->wIndex != 0) {
171 if (pSetup->wValue != 0) {
175 switch (pSetup->bRequest) {
185 if (pSetup->wLength > 0) {
217 USBHwNakIntEnable(INACK_BI);
226 USBHwRegisterEPIntHandler(MSC_BULK_IN_EP, MSCBotBulkIn);
227 USBHwRegisterEPIntHandler(MSC_BULK_OUT_EP, MSCBotBulkOut);
static U8 abClassReqData[4]
static const U8 abDescriptors[]
static BOOL HandleClassRequest(TSetupPacket *pSetup, int *piLen, U8 **ppbData)
Local function to handle the USB-CDC class requests.
unsigned restoreIRQ(unsigned oldCPSR)
unsigned disableIRQ(void)
int main_mass_storage(void)