From d21e7ebe996f5c69159d1e5429521ea3a4848dcf Mon Sep 17 00:00:00 2001 From: Tokita Hiroshi Date: Wed, 16 Sep 2020 08:00:59 +0900 Subject: [PATCH] Add -DARDUINO_BOARD definition --- Arduino.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/Arduino.mk b/Arduino.mk index 729f80a..e4694af 100644 --- a/Arduino.mk +++ b/Arduino.mk @@ -1173,6 +1173,7 @@ endif # Using += instead of =, so that CPPFLAGS can be set per sketch level CPPFLAGS += -$(MCU_FLAG_NAME)=$(MCU) -DF_CPU=$(F_CPU) -DARDUINO=$(ARDUINO_VERSION) -DARDUINO_$(BOARD) $(ARDUINO_ARCH_FLAG) \ + "-DARDUINO_BOARD=\"$(BOARD)\"" \ -I$(ARDUINO_CORE_PATH) -I$(ARDUINO_CORE_PATH)/api -I$(ARDUINO_VAR_PATH)/$(VARIANT) \ $(SYS_INCLUDES) $(PLATFORM_INCLUDES) $(USER_INCLUDES) -Wall -ffunction-sections \ -fdata-sections