summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorReimuNotMoe <[email protected]>2022-10-06 03:45:51 +0800
committerReimuNotMoe <[email protected]>2022-10-06 03:45:51 +0800
commit8096afc6dea975e95e0b50dc4b55926236b90b62 (patch)
tree680e0f74bba89729640477533720dfb24d567818 /src/common
parentc5992edc7de6f54d5fdab801c46e964bc0f18542 (diff)
Microchip PIC24/dsPIC33 device mode support
Diffstat (limited to 'src/common')
-rw-r--r--src/common/tusb_mcu.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/tusb_mcu.h b/src/common/tusb_mcu.h
index baa82fc14..514ffcd4d 100644
--- a/src/common/tusb_mcu.h
+++ b/src/common/tusb_mcu.h
@@ -111,6 +111,11 @@
#define TUP_DCD_ENDPOINT_MAX 8
#define TUP_DCD_ENDPOINT_EXCLUSIVE_NUMBER
+#elif TU_CHECK_MCU(OPT_MCU_PIC32MX, OPT_MCU_PIC32MM, OPT_MCU_PIC32MK) || \
+ TU_CHECK_MCU(OPT_MCU_PIC24, OPT_MCU_DSPIC33)
+ #define TUP_DCD_ENDPOINT_MAX 16
+ #define TUP_DCD_ENDPOINT_EXCLUSIVE_NUMBER
+
//------------- ST -------------//
#elif TU_CHECK_MCU(OPT_MCU_STM32F0)
#define TUP_DCD_ENDPOINT_MAX 8