From d9699cf269cdf2813f0a5ac03cd47f8ab3ec4835 Mon Sep 17 00:00:00 2001 From: Paul Szczeanek Date: Wed, 10 Jun 2020 16:20:14 +0100 Subject: [PATCH] asm only for gcc --- .../TARGET_CORDIO_LL/stack/thirdparty/uecc/uECC_ll.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/features/FEATURE_BLE/targets/TARGET_CORDIO_LL/stack/thirdparty/uecc/uECC_ll.h b/features/FEATURE_BLE/targets/TARGET_CORDIO_LL/stack/thirdparty/uecc/uECC_ll.h index d580bf44a8..e1219610f6 100644 --- a/features/FEATURE_BLE/targets/TARGET_CORDIO_LL/stack/thirdparty/uecc/uECC_ll.h +++ b/features/FEATURE_BLE/targets/TARGET_CORDIO_LL/stack/thirdparty/uecc/uECC_ll.h @@ -29,7 +29,11 @@ uECC_asm_fast - Use GCC inline assembly optimized for maximum speed. */ #define uECC_asm_small 1 #define uECC_asm_fast 2 #ifndef uECC_ASM - #define uECC_ASM uECC_asm_fast + #if !defined(__ARMCC_VERSION) && !defined(__ICCARM__) && defined(__GNUC__) /* Only support GCC inline asm for now */ + #define uECC_ASM uECC_asm_fast + #else + #define uECC_ASM uECC_asm_none + #endif #endif /* Curve selection options. */