Atmel Software Framework

delay.h File Reference

Common Delay Service.

Copyright (c) 2012 Atmel Corporation. All rights reserved.

#include <sysclk.h>

Macros

#define delay_init(fcpu_hz)
 Initialize the delay driver. More...
 
#define delay_ms(delay)   cpu_delay_ms(delay, F_CPU)
 Delay in milliseconds. More...
 
#define delay_s(delay)   cpu_delay_ms(1000 * delay, F_CPU)
 Delay in seconds. More...
 
#define delay_us(delay)   cpu_delay_us(delay, F_CPU)
 Delay in microseconds. More...
 
#define F_CPU   sysclk_get_cpu_hz()
 MCU Clock Frequency (Hertz) More...