From 35552c982086870d97a469be01faecd862d2f54d Mon Sep 17 00:00:00 2001 From: Karl Andersson Date: Sun, 10 Jun 2018 08:31:54 +0200 Subject: [PATCH] Add define for ARDUINO_CORE_STM32 that can be used to identify this Arduino core. --- platform.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform.txt b/platform.txt index 5425382cae..5529fce0bd 100644 --- a/platform.txt +++ b/platform.txt @@ -29,7 +29,7 @@ compiler.c.elf.cmd=arm-none-eabi-gcc compiler.objcopy.cmd=arm-none-eabi-objcopy compiler.elf2hex.cmd=arm-none-eabi-objcopy -compiler.extra_flags=-mcpu={build.mcu} -mthumb "@{build.opt.path}" +compiler.extra_flags=-mcpu={build.mcu} -mthumb "@{build.opt.path}" -DARDUINO_CORE_STM32 compiler.S.flags={compiler.extra_flags} -c -x assembler-with-cpp {compiler.stm.extra_include}