3. Is there a code example on how to do this?
Somebody recently flashed it and didn't set the CPU Speed properly, and I would like to prevent that in the future.
#if F_CPU != 120000000
#error "This code requires 120 MHz CPU speed, use Tools > CPU Speed menu"
#endif