aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/NRF5/NRF51822/nrf_delay.h
diff options
context:
space:
mode:
authorStephane D'Alu <sdalu@sdalu.com>2016-07-11 22:42:25 +0200
committerStephane D'Alu <sdalu@sdalu.com>2016-07-11 22:42:25 +0200
commit89b707fd7c353a5d1d6d5fb54efd8eb46ffc8f15 (patch)
treecfeaaa782731fadd5ca1a70e26f7e471e9e06e92 /os/hal/ports/NRF5/NRF51822/nrf_delay.h
parent539338100fffb76e152be37228c4040fa072ba92 (diff)
downloadChibiOS-Contrib-89b707fd7c353a5d1d6d5fb54efd8eb46ffc8f15.tar.gz
ChibiOS-Contrib-89b707fd7c353a5d1d6d5fb54efd8eb46ffc8f15.tar.bz2
ChibiOS-Contrib-89b707fd7c353a5d1d6d5fb54efd8eb46ffc8f15.zip
changed asm to __asm. (is it right?)
Diffstat (limited to 'os/hal/ports/NRF5/NRF51822/nrf_delay.h')
-rw-r--r--os/hal/ports/NRF5/NRF51822/nrf_delay.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/ports/NRF5/NRF51822/nrf_delay.h b/os/hal/ports/NRF5/NRF51822/nrf_delay.h
index 33b68fb..f8668d6 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"