SAM4SD32 (SAM4S-EK2)
Loading...
Searching...
No Matches
cycle_counter.c
Go to the documentation of this file.
1
33
/*
34
* Support and FAQ: visit <a href="https://www.microchip.com/support/">Microchip Support</a>
35
*/
36
37
#include "
cycle_counter.h
"
38
39
// Delay loop is put to SRAM so that FWS will not affect delay time
40
OPTIMIZE_HIGH
41
RAMFUNC
42
void
portable_delay_cycles
(
unsigned
long
n)
43
{
44
UNUSED(n);
45
46
__asm (
47
"loop: DMB \n"
48
"SUBS R0, R0, #1 \n"
49
"BNE.N loop "
50
);
51
}
portable_delay_cycles
OPTIMIZE_HIGH RAMFUNC void portable_delay_cycles(unsigned long n)
Delay loop to delay n number of cycles.
Definition
cycle_counter.c:42
cycle_counter.h
ARM functions for busy-wait delay loops.
common
services
delay
sam
cycle_counter.c
Generated by
1.16.1