Microchip® Advanced Software Framework

cycle_counter.c File Reference

ARM functions for busy-wait delay loops.

Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.

#include "delay.h"

Functions

void delay_init (void)
 Initialize the delay driver. More...
 
OPTIMIZE_HIGH RAMFUNC void portable_delay_cycles (unsigned long n)
 Delay loop to delay n number of cycles. More...
 

OPTIMIZE_HIGH RAMFUNC void portable_delay_cycles ( unsigned long  n)

Delay loop to delay n number of cycles.

Note
The function runs in internal RAM so that flash wait states will not affect the delay time.
Parameters
nNumber of cycles

References UNUSED.