File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/drivers_nrf/delay
TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/device Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ static __INLINE void nrf_delay_us(uint32_t volatile number_of_us)
164
164
{
165
165
register uint32_t delay __ASM ("r0" ) = number_of_us ;
166
166
__ASM volatile (
167
- #ifdef NRF51
167
+ #if defined( NRF51 ) && !defined( __ARMCC_VERSION )
168
168
".syntax unified\n"
169
169
#endif
170
170
"1:\n"
@@ -230,7 +230,7 @@ __ASM volatile (
230
230
" NOP\n"
231
231
#endif
232
232
" BNE 1b\n"
233
- #ifdef NRF51
233
+ #if defined( NRF51 ) && !defined( __ARMCC_VERSION )
234
234
".syntax divided\n"
235
235
#endif
236
236
: "+r" (delay ));
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ void SystemInit (void)
91
91
#if defined(__ICCARM__ )
92
92
#pragma section=".intvec"
93
93
#define FLASH_VTOR_BASE ((uint32_t)__section_begin(".intvec"))
94
- #elif defined(__CC_ARM )
94
+ #elif defined(__CC_ARM ) || (defined( __ARMCC_VERSION ) && ( __ARMCC_VERSION >= 6010050 ))
95
95
extern uint32_t Load$$LR$$LR_IROM1$$Base [];
96
96
#define FLASH_VTOR_BASE ((uint32_t)Load$$LR$$LR_IROM1$$Base)
97
97
#elif defined(__GNUC__ )
You can’t perform that action at this time.
0 commit comments