Answers for "#define f_cpu"

C
0

#define f_cpu

#define F_CPU 1000000                   // We start with 8x prescaler on 8Mhz clock

#define delay_ms_1Mhz(x) (_delay_ms(x))   // Delay when prescaller set to 8x
#define delay_ms_8Mhz(x) (_delay_ms(x*8)) // Delay when prescaller set to 1x so we need to burn 8x as many cycles
Posted by: Guest on June-26-2021

Code answers related to "C"

Browse Popular Code Answers by Language