xmc4500 led blinky, button ok

This commit is contained in:
hathach
2021-11-05 11:40:53 +07:00
parent 310f287f44
commit a3fc107d94
7 changed files with 259 additions and 0 deletions

View File

@@ -188,6 +188,10 @@
#elif TU_CHECK_MCU(OPT_MCU_BCM2711)
#define DCD_ATTR_ENDPOINT_MAX 8
//------------- Broadcom -------------//
#elif TU_CHECK_MCU(OPT_MCU_XMC4000)
#define DCD_ATTR_ENDPOINT_MAX 8
#else
#warning "DCD_ATTR_ENDPOINT_MAX is not defined for this MCU, default to 8"
#define DCD_ATTR_ENDPOINT_MAX 8

View File

@@ -130,6 +130,9 @@
// Broadcom
#define OPT_MCU_BCM2711 1700 ///< Broadcom BCM2711
// Infineon
#define OPT_MCU_XMC4000 1800 ///< Infineon XMC4000
// Helper to check if configured MCU is one of listed
// Apply _TU_CHECK_MCU with || as separator to list of input
#define _TU_CHECK_MCU(_m) (CFG_TUSB_MCU == _m)