void delay (uint32_t length ) { uint32_t i; for ( i = 0; i < length; i++ ) { } return; } |
#define USB_EP_EVENT 0x11 |
do { cnt = LPC_USB->RxPLen; } while ((cnt & PKT_DV) == 0); cnt &= PKT_LNGTH_MASK; |
/* USB Endpoint Events Callback Pointers */ void (* const USB_P_EP[USB_LOGIC_EP_NUM]) (uint32_t event) = { P_EP(0), P_EP(1), P_EP(2), P_EP(3), P_EP(4), }; |
#define USB_SOF_EVENT 1 |