Add correct endpoint count for GD32VF103

This controller family only supports USB FS with four endpoints
This commit is contained in:
Stefan Kerkmann 2021-08-07 09:01:01 +02:00
parent c6d495d643
commit 7682829820
1 changed files with 4 additions and 0 deletions

View File

@ -147,6 +147,10 @@
//#elif TU_CHECK_MCU(MM32F327X)
// #define DCD_ATTR_ENDPOINT_MAX not known yet
//------------- GigaDevice -------------//
#elif TU_CHECK_MCU(GD32VF103)
#define DCD_ATTR_ENDPOINT_MAX 4
#else
#warning "DCD_ATTR_ENDPOINT_MAX is not defined for this MCU, default to 8"
#define DCD_ATTR_ENDPOINT_MAX 8