rgbyteclock-code/main.c

46 lines
983 B
C

/*
* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* <struppi@struppi.name> wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can buy me a beer in return.
* (c) 2014 Stefan Rupp
* ----------------------------------------------------------------------------
*/
#include <avr/io.h>
#include <avr/interrupt.h>
#include "timer.h"
#include "lcd.h"
#include "rgbyteclock.h"
#include "spi.h"
#include "ledcontroller.h"
#include "rtc.h"
#include <util/delay.h>
int main(void)
{
timer_init();
//rtc_init(0);
//spi_slave_init();
ledcontroller_init();
sei();
//lcd_init();
DDRC |= (1<<PC5);
/*
while (1) {
PORTC ^= (1<<PC5);
timer_wait(5000);
//_delay_ms(100);
}
*/
rgbyteclock();
// rgbyteclock() should never end, but who knows...
while (1) { ; }
}