rcc 1.0
RCC - RGB LED Color Cube Documentation
|
Main firmware file for RCC RGB LED Color Cube on AVR. More...
#include "main.h"
Functions | |
ISR (PORTA_PORT_vect) | |
Interrupt Service Routine for PORTA pin change or event. | |
ISR (TCA0_OVF_vect) | |
Timer/Counter Overflow Interrupt Service Routine. | |
int | main (void) |
Variables | |
char EEMEM | description [] = "RCC Firmware v1.0 by" |
char EEMEM | author [] = "R. GAECHTER" |
char EEMEM | copyright [] = "Copyright 2025 g.raf engineering" |
char EEMEM | github [] = "github.com/0x007e/rcc" |
LED_Data EEMEM | ee_led1 |
LED_Data EEMEM | ee_led2 |
LED_Data | led1 |
LED_Data | led2 |
volatile unsigned long | systick |
Main firmware file for RCC RGB LED Color Cube on AVR.
This source file implements the main control flow and event handling for the RCC embedded system. It manages system initialization, LEDs and battery management, interrupt handling, EEPROM operations, and execution of user commands triggered by button inputs. Key functionalities include timed LED blinking, system-wide power management including shutdown and restart logic, and processing of button press events for dynamic LED control.
ISR | ( | PORTA_PORT_vect | ) |
Interrupt Service Routine for PORTA pin change or event.
This ISR handles the interrupt triggered by an event on PORTA pins. In this implementation, it only clears the interrupt flag for PIN7 on PORTA to acknowledge and allow further interrupts. This prevents the interrupt from continuously retriggering.
ISR | ( | TCA0_OVF_vect | ) |
Timer/Counter Overflow Interrupt Service Routine.
This ISR is called when the Timer/Counter overflows. It increments the global millisecond tick counter systick used for system timing. The interrupt flag for the overflow is cleared to allow subsequent interrupts.
int main | ( | void | ) |
char EEMEM author[] = "R. GAECHTER" |
char EEMEM copyright[] = "Copyright 2025 g.raf engineering" |
char EEMEM description[] = "RCC Firmware v1.0 by" |
LED_Data EEMEM ee_led1 |
LED_Data EEMEM ee_led2 |
char EEMEM github[] = "github.com/0x007e/rcc" |
LED_Data led1 |
LED_Data led2 |
volatile unsigned long systick |