diff options
| author | Stefan Kerkmann <[email protected]> | 2021-08-07 09:01:01 +0200 |
|---|---|---|
| committer | Stefan Kerkmann <[email protected]> | 2021-08-07 09:01:01 +0200 |
| commit | 768282982039001128cecfe125d88f58ce640713 (patch) | |
| tree | b2fa20f3d09a9f515b34b1b4f90f1fb99c562239 /src/device | |
| parent | c6d495d6436c797b4efd029bd16ee8f19ff0a9f0 (diff) | |
Add correct endpoint count for GD32VF103
This controller family only supports USB FS with four endpoints
Diffstat (limited to 'src/device')
| -rw-r--r-- | src/device/dcd_attr.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/device/dcd_attr.h b/src/device/dcd_attr.h index 18f369332..7772a6d96 100644 --- a/src/device/dcd_attr.h +++ b/src/device/dcd_attr.h @@ -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 |
