Skip to content

Commit 65e7651

Browse files
committed
Fix configuration_store.h to use right toolchain check flags
1 parent 8624fdf commit 65e7651

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

features/storage/FEATURE_STORAGE/cfstore/configuration-store/configuration_store.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ typedef struct _ARM_CFSTORE_STATUS {
163163
ARM_CFSTORE_HANDLE (__name) = (ARM_CFSTORE_HANDLE) (__name##_buf_cFsToRe); \
164164
memset((__name##_buf_cFsToRe), 0, CFSTORE_HANDLE_BUFSIZE)
165165

166-
#if defined __MBED__ && (defined TOOLCHAIN_GCC_ARM || defined TOOLCHAIN_ARMC6)
166+
#if defined __MBED__ && (defined TOOLCHAIN_GCC_ARM || (defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)))
167167
/** @brief Helper macro to swap 2 handles, which is useful for the Find() idiom. */
168168
#define CFSTORE_HANDLE_SWAP(__a_HaNdLe, __b_HaNdLe) \
169169
do{ ARM_CFSTORE_HANDLE __temp_HaNdLe = (__a_HaNdLe); \
@@ -174,6 +174,7 @@ typedef struct _ARM_CFSTORE_STATUS {
174174
__asm volatile("" ::: "memory"); \
175175
}while(0)
176176

177+
177178
#elif defined __MBED__ && defined TOOLCHAIN_ARM
178179
/** @brief Helper macro to swap 2 handles, which is useful for the Find() idiom. */
179180
#define CFSTORE_HANDLE_SWAP(__a_HaNdLe, __b_HaNdLe) \

0 commit comments

Comments
 (0)