30 #define F_CPU 20000000UL
41 #define SWITCH PIN7_bm
44 #ifndef SWITCH_COMMAND_EXECUTE_MS
52 #define SWITCH_COMMAND_EXECUTE_MS 3000UL
55 #ifndef SWITCH_SYSTEM_OFF_TIME_MS
63 #define SWITCH_SYSTEM_OFF_TIME_MS 3000UL
66 #ifndef COLOR_FADE_DELAY_MS
74 #define COLOR_FADE_DELAY_MS 10UL
77 #ifndef COLOR_INTENSITY_DELAY_MS
85 #define COLOR_INTENSITY_DELAY_MS 350UL
88 #ifndef ENABLE_EEPROM_WRITE
96 #define ENABLE_EEPROM_WRITE
100 #include <avr/sleep.h>
101 #include <avr/interrupt.h>
102 #include <avr/eeprom.h>
103 #include <util/delay.h>
Battery monitoring interface for AVR microcontrollers.
LED control interface for AVR microcontrollers using SPI.
Header file with declarations and macros for system clock configuration.