From 89b707fd7c353a5d1d6d5fb54efd8eb46ffc8f15 Mon Sep 17 00:00:00 2001 From: Stephane D'Alu Date: Mon, 11 Jul 2016 22:42:25 +0200 Subject: [PATCH] changed asm to __asm. (is it right?) --- os/hal/ports/NRF5/NRF51822/nrf_delay.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/hal/ports/NRF5/NRF51822/nrf_delay.h b/os/hal/ports/NRF5/NRF51822/nrf_delay.h index 33b68fb7..f8668d6e 100644 --- a/os/hal/ports/NRF5/NRF51822/nrf_delay.h +++ b/os/hal/ports/NRF5/NRF51822/nrf_delay.h @@ -27,7 +27,7 @@ inline static void nrf_delay_us(uint32_t volatile number_of_us) __attribute__((always_inline)); inline static void nrf_delay_us(uint32_t volatile number_of_us) { -register uint32_t delay asm ("r0") = number_of_us; +register uint32_t delay __asm ("r0") = number_of_us; __asm volatile ( ".syntax unified\n" "1:\n"