mirror of https://github.com/ARMmbed/mbed-os.git
TARGET_MCU_NRF51822 - Fix inline keyword position.
parent
ede837df7c
commit
36c001d0e8
|
|
@ -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 (
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue