rcc 1.0
RCC - RGB LED Color Cube Documentation
Loading...
Searching...
No Matches
main.h
Go to the documentation of this file.
1
18
19#ifndef MAIN_H_
20#define MAIN_H_
21
22 #ifndef F_CPU
30 #define F_CPU 20000000UL
31 #endif
32
33 #ifndef SWITCH
41 #define SWITCH PIN7_bm
42 #endif
43
44 #ifndef SWITCH_COMMAND_EXECUTE_MS
52 #define SWITCH_COMMAND_EXECUTE_MS 3000UL
53 #endif
54
55 #ifndef SWITCH_SYSTEM_OFF_TIME_MS
63 #define SWITCH_SYSTEM_OFF_TIME_MS 3000UL
64 #endif
65
66 #ifndef COLOR_FADE_DELAY_MS
74 #define COLOR_FADE_DELAY_MS 10UL
75 #endif
76
77 #ifndef COLOR_INTENSITY_DELAY_MS
85 #define COLOR_INTENSITY_DELAY_MS 350UL
86 #endif
87
88 #ifndef ENABLE_EEPROM_WRITE
96 #define ENABLE_EEPROM_WRITE
97 #endif
98
99 #include <avr/io.h>
100 #include <avr/sleep.h>
101 #include <avr/interrupt.h>
102 #include <avr/eeprom.h>
103 #include <util/delay.h>
104
106 #include "./battery/battery.h"
107 #include "./led/led.h"
108
109#endif /* MAIN_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.