TARGET_MCU_NRF51822 - Fix inline keyword position.

pull/2785/head
Vincent Coubard 2016-09-22 16:08:05 +01:00
parent ede837df7c
commit 36c001d0e8
2 changed files with 3 additions and 3 deletions

View File

@ -191,8 +191,8 @@ __STATIC_INLINE void nrf_delay_us(uint32_t volatile number_of_us)
#elif defined ( __GNUC__ )
static void __INLINE nrf_delay_us(uint32_t volatile number_of_us) __attribute__((always_inline));
static void __INLINE nrf_delay_us(uint32_t volatile number_of_us)
static __INLINE void nrf_delay_us(uint32_t volatile number_of_us) __attribute__((always_inline));
static __INLINE void nrf_delay_us(uint32_t volatile number_of_us)
{
register uint32_t delay __ASM ("r0") = number_of_us;
__ASM volatile (

View File

@ -45,7 +45,7 @@ __ASM (
" BNE loop\n\t");
}
#elif defined ( __GNUC__ )
__INLINE static void nrf_delay_us(uint32_t volatile number_of_us)
static __INLINE void nrf_delay_us(uint32_t volatile number_of_us)
{
do
{