FreeCalypso > hg > freecalypso-tools
view target-utils/libbase/waitarm.S @ 470:1d5bd9a06781
rvinterf tree Makefiles: split CPPFLAGS from CFLAGS
This change is in preparation for allowing CFLAGS to be overridden
by users and package builders.
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Tue, 12 Feb 2019 00:00:18 +0000 |
| parents | 6228d27738d1 |
| children | 06ad5e30e8d0 |
line wrap: on
line source
/* * This assembly module provides a wait_ARM_cycles() function just like * in TI's firmware; it is meant to gradually replace and phase out * osmo_delay_ms(). One loop count for this function equals 5 ARM clock * cycles when running out of IRAM. */ .text .code 32 .globl wait_ARM_cycles wait_ARM_cycles: cmp r0, #0 bxeq lr 1: sub r0, r0, #1 cmp r0, #0 bne 1b bx lr
