Skip to content

Commit 99ce6b3

Browse files
committed
ARDUINO_ARCH_STM32 should not be defined
The ARDUINO_ARCH_{build.arch} is used to differentiate core. See: https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification#working-with-multiple-architectures Defining ARDUINO_ARCH_STM32 will raised several issues on library supporting both cores: * ARDUINO_ARCH_STM32 * ARDUINO_ARCH_STM32F1 Signed-off-by: Frederic Pillon <[email protected]>
1 parent 7da2d82 commit 99ce6b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

STM32F1/platform.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ compiler.define=-DARDUINO=
3636
# this can be overriden in boards.txt
3737
build.f_cpu=72000000L
3838
build.mcu=cortex-m3
39-
build.common_flags=-mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32
39+
build.common_flags=-mthumb -march=armv7-m -D__STM32F1__
4040
build.variant_system_lib=libmaple.a
4141
## LED stuff is not really used but is still required in the code
4242
build.error_led_port=GPIOB

0 commit comments

Comments
 (0)