From 32bd25e8dfb6ce978e0e8f309b3c9311ff530556 Mon Sep 17 00:00:00 2001 From: adbridge Date: Tue, 12 Sep 2017 16:41:11 +0100 Subject: [PATCH] Fix include file for ARMCC 6, should use cmsis_armclang.h --- .../TARGET_AMEBA/TARGET_RTL8195A/device/rtl8195a_init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/targets/TARGET_Realtek/TARGET_AMEBA/TARGET_RTL8195A/device/rtl8195a_init.c b/targets/TARGET_Realtek/TARGET_AMEBA/TARGET_RTL8195A/device/rtl8195a_init.c index 8b8de93545..50ea18db16 100644 --- a/targets/TARGET_Realtek/TARGET_AMEBA/TARGET_RTL8195A/device/rtl8195a_init.c +++ b/targets/TARGET_Realtek/TARGET_AMEBA/TARGET_RTL8195A/device/rtl8195a_init.c @@ -17,6 +17,8 @@ #if defined(__CC_ARM) #include "cmsis_armcc.h" +#elif (defined(__ARMCC_VERSION) && __ARMCC_VERSION >= 6010050) +#include "cmsis_armclang.h" #elif defined(__GNUC__) #include "cmsis_gcc.h" #else