Skip to content

Commit

Permalink
Generic driver selection for GD32 FSDEV
Browse files Browse the repository at this point in the history
- Assigning the driver selection via the general MCU config
- Removing the individual driver selection from the driver source file
  • Loading branch information
RockyZeroFour committed Mar 26, 2024
1 parent 03599ed commit a740813
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/common/tusb_mcu.h
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@
#define TUP_DCD_ENDPOINT_MAX 4

#elif TU_CHECK_MCU(OPT_MCU_GD32F303)
#define TUP_USBIP_FSDEV
#define TUP_DCD_ENDPOINT_MAX 8

//------------- Broadcom -------------//
Expand Down
2 changes: 1 addition & 1 deletion src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
#if CFG_TUD_ENABLED && \
( TU_CHECK_MCU(OPT_MCU_STM32F0, OPT_MCU_STM32F3, OPT_MCU_STM32L0, OPT_MCU_STM32L1, OPT_MCU_STM32G4, OPT_MCU_STM32WB) || \
(TU_CHECK_MCU(OPT_MCU_STM32F1) && defined(STM32F1_FSDEV)) || \
(TU_CHECK_MCU(OPT_MCU_GD32F303) && defined(GD32F3_FSDEV)) \
defined(TUP_USBIP_FSDEV) \
)

// In order to reduce the dependance on HAL, we undefine this.
Expand Down

0 comments on commit a740813

Please sign in to comment.