lib
inertial-sense-sdk
EVB-2
IS_EVB-2
src
ASF
common
services
delay
sam
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
}
UNUSED
#define UNUSED(v)
Marking v as a unused parameter or value.
Definition:
compiler.h:86
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
RAMFUNC
#define RAMFUNC
Definition:
ISConstants.h:251
cycle_counter.h
ARM functions for busy-wait delay loops.
inertial_sense_ros
Author(s):
autogenerated on Sat Sep 19 2020 03:19:04