Skip to content

Commit 36c001d

Browse files
committed
TARGET_MCU_NRF51822 - Fix inline keyword position.
1 parent ede837d commit 36c001d

File tree

2 files changed

+3
-3
lines changed
  • features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/sdk/source/drivers_nrf/delay
  • hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822

2 files changed

+3
-3
lines changed

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/sdk/source/drivers_nrf/delay/nrf_delay.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ __STATIC_INLINE void nrf_delay_us(uint32_t volatile number_of_us)
191191

192192
#elif defined ( __GNUC__ )
193193

194-
static void __INLINE nrf_delay_us(uint32_t volatile number_of_us) __attribute__((always_inline));
195-
static void __INLINE nrf_delay_us(uint32_t volatile number_of_us)
194+
static __INLINE void nrf_delay_us(uint32_t volatile number_of_us) __attribute__((always_inline));
195+
static __INLINE void nrf_delay_us(uint32_t volatile number_of_us)
196196
{
197197
register uint32_t delay __ASM ("r0") = number_of_us;
198198
__ASM volatile (

hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/nrf_delay.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ __ASM (
4545
" BNE loop\n\t");
4646
}
4747
#elif defined ( __GNUC__ )
48-
__INLINE static void nrf_delay_us(uint32_t volatile number_of_us)
48+
static __INLINE void nrf_delay_us(uint32_t volatile number_of_us)
4949
{
5050
do
5151
{

0 commit comments

Comments
 (0)