34 clocks = 1 + clocks >> 3;
35 #elif (F_CPU<=100000000)
36 clocks = 1 + clocks >> 2;
37 #elif (F_CPU<=200000000)
38 clocks = 1 + clocks >> 1;
79 #if (F_CPU>1000000000)
82 #if (F_CPU>1100000000)
86 #if (F_CPU>1200000000)
90 #if (F_CPU>1300000000)
94 #if (F_CPU>1400000000)
98 #if (F_CPU>1500000000)
102 #if (F_CPU>1600000000)
106 #if (F_CPU>1700000000)
110 #if (F_CPU>1800000000)
114 #if (F_CPU>1900000000)
118 #if (F_CPU>2000000000)
122 #if (F_CPU>2100000000)
123 #error what uC are you running? function delay20ns only works till 2GHz
void delay20ns(uint8_t clocks)
kinda accurate for CPU ferquencies from 400MHz-2GHz, below the resolution becomes more coarse as it m...