2014-03-01 03:50:09 +01:00
|
|
|
|
2014-03-01 03:54:52 +01:00
|
|
|
/*
|
|
|
|
* ----------------------------------------------------------------------------
|
|
|
|
* "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
|
|
|
|
* ----------------------------------------------------------------------------
|
|
|
|
*/
|
2014-03-01 03:50:09 +01:00
|
|
|
|
|
|
|
#include <avr/io.h>
|
|
|
|
#include "timer.h"
|
|
|
|
#include "lcd.h"
|
|
|
|
#include "rgbyteclock.h"
|
2014-03-01 18:03:19 +01:00
|
|
|
#include "spi.h"
|
2014-03-02 07:18:48 +01:00
|
|
|
#include "ledcontroller.h"
|
2014-03-01 03:50:09 +01:00
|
|
|
|
|
|
|
int main(void)
|
|
|
|
{
|
|
|
|
|
|
|
|
timer_init();
|
2014-03-01 18:03:19 +01:00
|
|
|
spi_slave_init();
|
2014-03-02 07:18:48 +01:00
|
|
|
ledcontroller_init();
|
2014-03-01 03:50:09 +01:00
|
|
|
lcd_init();
|
|
|
|
|
|
|
|
rgbyteclock();
|
|
|
|
// rgbyteclock() should never end, but who knows...
|
|
|
|
while (1) { ; }
|
|
|
|
|
|
|
|
}
|