File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 1
1
OPTION (USE_GD32F103 "Use GD32F103 MCU" FALSE )
2
2
OPTION (USE_GD32F303 "Use GD32F303 MCU" FALSE )
3
+ OPTION (USE_USB "Enable USB MCU" FALSE )
3
4
# Select platform and installation for extra arduino files AND toolchain (compiler...)
4
5
SET (PLATFORM_ARCHITECTURE "STM32F1" )
5
6
@@ -24,6 +25,7 @@ ELSEIF(USE_GD32F303)
24
25
set (X_ARDUINO_DEFAULT_BOARD genericGD32F303C ) # Default Board ID, when not specified
25
26
set (X_ARDUINO_CPU GD32F303C8 )
26
27
SET (USE_FPU TRUE )
28
+ SET (USE_USB TRUE )
27
29
IF (USE_FPU )
28
30
# FPU
29
31
ADD_DEFINITIONS ("-DUSE_FPU=1" )
@@ -36,6 +38,7 @@ ELSEIF(USE_GD32F303)
36
38
SET (ARDUINO_LD_SCRIPT "-T${CMAKE_CURRENT_SOURCE_DIR} /ldScript/GD32F3/gd32f3.ld -L${CMAKE_CURRENT_SOURCE_DIR} /ldScript/common " )
37
39
ELSE ()
38
40
SET (EXTENSION "STM32F103" )
41
+ SET (USE_USB TRUE )
39
42
set (X_ARDUINO_LD_FILE jtag ) # Use that instead of default jtag-c8 to get the full 128 kB
40
43
set (X_ARDUINO_DEFAULT_BOARD genericSTM32F103C ) # Default Board ID, when not specified
41
44
set (X_ARDUINO_CPU STM32F103C8 )
You can’t perform that action at this time.
0 commit comments