summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Davill <[email protected]>2022-03-22 23:31:20 +1030
committerGreg Davill <[email protected]>2022-03-22 23:31:20 +1030
commita09c1648f56580bcdb59b08af255442d9240281c (patch)
tree3b484ad166f526412f23a11bdcfb24355feb5ddc
parentd828d203fcdc9f6839330e1007a331f740224ab8 (diff)
Fix typo
-rw-r--r--hw/bsp/ch32v307/family.mk2
-rw-r--r--src/common/tusb_mcu.h2
-rw-r--r--src/portable/wch/ch32v307/usb_dc_usbhs.c2
-rw-r--r--src/tusb_option.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/hw/bsp/ch32v307/family.mk b/hw/bsp/ch32v307/family.mk
index dfb4853d9..ef2af26e6 100644
--- a/hw/bsp/ch32v307/family.mk
+++ b/hw/bsp/ch32v307/family.mk
@@ -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
diff --git a/src/common/tusb_mcu.h b/src/common/tusb_mcu.h
index 84d629eac..9de092e34 100644
--- a/src/common/tusb_mcu.h
+++ b/src/common/tusb_mcu.h
@@ -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
diff --git a/src/portable/wch/ch32v307/usb_dc_usbhs.c b/src/portable/wch/ch32v307/usb_dc_usbhs.c
index 32645dc5f..3a2c9979e 100644
--- a/src/portable/wch/ch32v307/usb_dc_usbhs.c
+++ b/src/portable/wch/ch32v307/usb_dc_usbhs.c
@@ -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"
diff --git a/src/tusb_option.h b/src/tusb_option.h
index ffeec2241..28bf8a60d 100644
--- a/src/tusb_option.h
+++ b/src/tusb_option.h
@@ -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