48 # include "xmega/cycle_counter.h" 50 # include "mega/cycle_counter.h" 80 # define F_CPU sysclk_get_cpu_hz() 98 #define delay_init(fcpu_hz) 105 #define delay_s(delay) ((delay) ? cpu_delay_ms(1000 * delay, F_CPU) : cpu_delay_us(1, F_CPU)) 112 #define delay_ms(delay) ((delay) ? cpu_delay_ms(delay, F_CPU) : cpu_delay_us(1, F_CPU)) 119 #define delay_us(delay) ((delay) ? cpu_delay_us(delay, F_CPU) : cpu_delay_us(1, F_CPU)) ARM functions for busy-wait delay loops.