This commit is contained in:
Greg Davill 2022-03-22 23:31:20 +10:30
parent d828d203fc
commit a09c1648f5
4 changed files with 4 additions and 4 deletions

View File

@ -28,7 +28,7 @@ CFLAGS += \
-ffunction-sections \
-fdata-sections \
-nostdlib -nostartfiles \
-DCFG_TUSB_MCU=OPT_MCU_CH32VF307 \
-DCFG_TUSB_MCU=OPT_MCU_CH32V307 \
-Xlinker --gc-sections \
-DBOARD_DEVICE_RHPORT_SPEED=OPT_MODE_HIGH_SPEED

View File

@ -267,7 +267,7 @@
#define TUP_DCD_ENDPOINT_MAX 4
//------------- WCH -------------//
#elif TU_CHECK_MCU(OPT_MCU_CH32VF307)
#elif TU_CHECK_MCU(OPT_MCU_CH32V307)
#define TUP_DCD_ENDPOINT_MAX 8
#endif

View File

@ -26,7 +26,7 @@
#include "tusb_option.h"
#if CFG_TUD_ENABLED && (CFG_TUSB_MCU == OPT_MCU_CH32VF307)
#if CFG_TUD_ENABLED && (CFG_TUSB_MCU == OPT_MCU_CH32V307)
#include "device/dcd.h"
#include "usb_ch32_usbhs_reg.h"

View File

@ -150,7 +150,7 @@
#define OPT_MCU_F1C100S 2100 ///< Allwinner F1C100s family
// WCH
#define OPT_MCU_CH32VF307 2200 ///< WCH CH32V307 config
#define OPT_MCU_CH32V307 2200 ///< WCH CH32V307 config
// Helper to check if configured MCU is one of listed
// Apply _TU_CHECK_MCU with || as separator to list of input