error on incompatible hardware

This commit is contained in:
r4 2022-04-18 23:04:53 +02:00
parent 6599bf151d
commit 25d7967d69

View File

@ -61,6 +61,10 @@
END USER CONFIGURATION
**********************/
#if !defined(__AVR_ATmega328P__) || F_CPU != 16000000
#error "This program only works on ATmega328P devices with a clock frequency of 16MHz!"
#endif
void (*full_reset)() = nullptr;
static int serial_putch(char c, FILE *f) {