Precised USB Endpoint definitions

This commit is contained in:
NicoHood 2015-08-07 19:45:51 +02:00
parent fd6f57d2d7
commit 7bd77de70b
1 changed files with 7 additions and 7 deletions

View File

@ -47,13 +47,13 @@ typedef unsigned long u32;
//================================================================================ //================================================================================
// USB // USB
#define EP_TYPE_CONTROL 0x00 #define EP_TYPE_CONTROL (0x00)
#define EP_TYPE_BULK_IN 0x81 #define EP_TYPE_BULK_IN ((1<<EPTYPE1) | (1<<EPDIR))
#define EP_TYPE_BULK_OUT 0x80 #define EP_TYPE_BULK_OUT (1<<EPTYPE1)
#define EP_TYPE_INTERRUPT_IN 0xC1 #define EP_TYPE_INTERRUPT_IN ((1<<EPTYPE1) | (1<<EPTYPE0) | (1<<EPDIR))
#define EP_TYPE_INTERRUPT_OUT 0xC0 #define EP_TYPE_INTERRUPT_OUT ((1<<EPTYPE1) | (1<<EPTYPE0))
#define EP_TYPE_ISOCHRONOUS_IN 0x41 #define EP_TYPE_ISOCHRONOUS_IN ((1<<EPTYPE0) | (1<<EPDIR))
#define EP_TYPE_ISOCHRONOUS_OUT 0x40 #define EP_TYPE_ISOCHRONOUS_OUT (1<<EPTYPE0)
class USBDevice_ class USBDevice_
{ {