File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,13 @@ IF(NOT DEFINED ARDUINO_CFLAGS_SET)
10
10
IF (NOT DEFINED MCU_SPEED )
11
11
SET (MCU_SPEED 72000000L )
12
12
ENDIF (NOT DEFINED MCU_SPEED )
13
-
14
- SET (ARDUINO_DEFAULT_CFLAGS " -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -w -mcpu=cortex-m3 -mthumb -g " )
13
+
14
+ IF (DEFINED ARDUINO_MCU_FLAGS )
15
+ ELSE (DEFINED ARDUINO_MCU_FLAGS )
16
+ SET (ARDUINO_MCU_FLAGS " -mcpu=cortex-m3" )
17
+ ENDIF (DEFINED ARDUINO_MCU_FLAGS )
18
+
19
+ SET (ARDUINO_DEFAULT_CFLAGS " -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -w ${ARDUINO_MCU_FLAGS} -mthumb -g " )
15
20
SET (ARDUINO_DEFAULT_CFLAGS " ${ARDUINO_DEFAULT_CFLAGS} -DGENERIC_BOOTLOADER -DF_CPU=${MCU_SPEED} L -DARDUINO_ARCH_STM32F1 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG " )
16
21
#SET(ARDUINO_DEFAULT_CFLAGS " ${ARDUINO_DEFAULT_CFLAGS} -DF_CPU=72000000L -DARDUINO_ARCH_STM32F1 ")
17
22
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ ELSEIF(USE_GD32F303)
17
17
SET (EXTENSION "GD32F303" )
18
18
set (X_ARDUINO_DEFAULT_BOARD genericGD32F303C ) # Default Board ID, when not specified
19
19
set (X_ARDUINO_CPU GD32F303C8 )
20
+ SET (ARDUINO_MCU_FLAGS " -mcpu=cortex-m4 " )
20
21
ADD_DEFINITIONS ("-DHIGH_SPEED_ADC" )
21
22
SET (X_ARDUINO_UPLOAD_METHOD BMP ) # Use blackmagic link, if you comment it out you'll use DFU => 8kB flash
22
23
ELSE ()
You can’t perform that action at this time.
0 commit comments