30 #ifndef UDPHS_H_INCLUDED 31 #define UDPHS_H_INCLUDED 35 #define EP_SINGLE_64 0x32 // EP0 36 #define EP_DOUBLE_64 0x36 // Other endpoints 40 #define EP_TYPE_CONTROL UDPHS_EPTCFG_EPT_SIZE_64 \ 41 | UDPHS_EPTCFG_EPT_TYPE_CTRL8 \ 42 | UDPHS_EPTCFG_BK_NUMBER_1 44 #define EP_TYPE_BULK_IN UDPHS_EPTCFG_EPT_SIZE_512 \ 45 | UDPHS_EPTCFG_EPT_DIR \ 46 | UDPHS_EPTCFG_EPT_TYPE_BULK \ 47 | UDPHS_EPTCFG_BK_NUMBER_2 48 #define EP_TYPE_BULK_OUT UDPHS_EPTCFG_EPT_SIZE_512 \ 49 | UDPHS_EPTCFG_EPT_TYPE_BULK \ 50 | UDPHS_EPTCFG_BK_NUMBER_2 51 #define EP_TYPE_INTERRUPT_IN UDPHS_EPTCFG_EPT_SIZE_64 \ 52 | UDPHS_EPTCFG_EPT_DIR \ 53 | UDPHS_EPTCFG_EPT_TYPE_INT \ 54 | UDPHS_EPTCFG_BK_NUMBER_2 58 #define EP_TYPE_INTERRUPT_IN_HID UDPHS_EPTCFG_EPT_SIZE_64 \ 59 | UDPHS_EPTCFG_EPT_DIR \ 60 | UDPHS_EPTCFG_EPT_TYPE_INT \ 61 | UDPHS_EPTCFG_BK_NUMBER_2 64 #define EP_TYPE_INTERRUPT_OUT UDPHS_EPTCFG_EPT_SIZE_64 \ 65 | UDPHS_EPTCFG_EPT_TYPE_INT \ 66 | UDPHS_EPTCFG_EPT_TYPE_INT \ 67 | UDPHS_EPTCFG_BK_NUMBER_1 68 #define EP_TYPE_ISOCHRONOUS_IN UDPHS_EPTCFG_EPT_SIZE_1024 \ 69 | UDPHS_EPTCFG_EPT_DIR \ 70 | UDPHS_EPTCFG_EPT_TYPE_ISO \ 71 | UDPHS_EPTCFG_BK_NUMBER_3 72 #define EP_TYPE_ISOCHRONOUS_OUT UDPHS_EPTCFG_EPT_SIZE_1024 \ 73 | UDPHS_EPTCFG_EPT_TYPE_ISO \ 74 | UDPHS_EPTCFG_BK_NUMBER_3 85 #define UDFNUML ((UDPHS->UDPHS_FNUM & UDPHS_FNUM_FRAME_NUMBER_Msk)>>3) 87 #define USB_RECV_TIMEOUT 89 #define UDPHS_EPTFIFO (0x20180000) // (UDPHS_EPTFIFO) Base Address