use generic avr/libc definition for conditionnal compilation. eg: use #ifdef(PORTG) or #ifdef(TIMER_0_ISRC) instead of #ifdef(Atmega328p) This is more generic and simplify future boards support.
use generic avr/libc definition for conditionnal compilation. eg: use #ifdef(PORTG) or #ifdef(TIMER_0_ISRC) instead of #ifdef(Atmega328p) This is more generic and simplify future boards support.