Correct NRF SDK11 assembly

pull/4949/head
Jimmy Brisson 2017-08-30 11:27:35 -05:00
parent 4f3f0cc9cc
commit d3b33d75a4
2 changed files with 3 additions and 3 deletions

View File

@ -164,7 +164,7 @@ static __INLINE void nrf_delay_us(uint32_t volatile number_of_us)
{
register uint32_t delay __ASM ("r0") = number_of_us;
__ASM volatile (
#ifdef NRF51
#if defined(NRF51) && !defined(__ARMCC_VERSION)
".syntax unified\n"
#endif
"1:\n"
@ -230,7 +230,7 @@ __ASM volatile (
" NOP\n"
#endif
" BNE 1b\n"
#ifdef NRF51
#if defined(NRF51) && !defined(__ARMCC_VERSION)
".syntax divided\n"
#endif
: "+r" (delay));

View File

@ -91,7 +91,7 @@ void SystemInit (void)
#if defined(__ICCARM__)
#pragma section=".intvec"
#define FLASH_VTOR_BASE ((uint32_t)__section_begin(".intvec"))
#elif defined(__CC_ARM)
#elif defined(__CC_ARM) || (defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050))
extern uint32_t Load$$LR$$LR_IROM1$$Base[];
#define FLASH_VTOR_BASE ((uint32_t)Load$$LR$$LR_IROM1$$Base)
#elif defined(__GNUC__)