From 7b9ad96ec023902ef9eecf13e46618cad4565db8 Mon Sep 17 00:00:00 2001
From: Simon John <git@the-jedi.co.uk>
Date: Wed, 3 Jul 2019 13:54:05 +0100
Subject: [PATCH] Added c/cpp sources as per PR #599

---
 Arduino.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Arduino.mk b/Arduino.mk
index 89683c7..a403342 100644
--- a/Arduino.mk
+++ b/Arduino.mk
@@ -925,6 +925,10 @@ ifeq ($(strip $(NO_CORE)),)
         CORE_CPP_SRCS   = $(wildcard $(ARDUINO_CORE_PATH)/*.cpp)
         CORE_AS_SRCS    = $(wildcard $(ARDUINO_CORE_PATH)/*.S)
 
+        # ArduinoCore-API
+        CORE_C_SRCS    += $(wildcard $(ARDUINO_CORE_PATH)/api/*.c)
+        CORE_CPP_SRCS  += $(wildcard $(ARDUINO_CORE_PATH)/api/*.cpp)
+
         # USB Core if samd or sam
         ifeq ($(findstring sam, $(strip $(ARCHITECTURE))), sam)
             CORE_C_SRCS    += $(wildcard $(ARDUINO_CORE_PATH)/avr/*.c) # avr core emulation files