2011-12-09 23:15:06 +01:00
|
|
|
/* CTHN.de MiniLEDCube
|
|
|
|
*
|
|
|
|
* Kai Lauterbach (klaute at web dot de)
|
|
|
|
*
|
|
|
|
* Based on http://mosfetkiller.de/?s=miniledcube
|
|
|
|
*
|
|
|
|
* License: General Public License (GPL v3)
|
|
|
|
*
|
|
|
|
*/
|
2011-10-15 11:32:43 +02:00
|
|
|
|
|
|
|
#ifndef __main_h__
|
|
|
|
#define __main_h__
|
|
|
|
|
2011-10-19 00:04:59 +02:00
|
|
|
// Includes
|
|
|
|
#include "globals.h"
|
2011-10-15 11:32:43 +02:00
|
|
|
|
|
|
|
#include <avr/interrupt.h>
|
|
|
|
#include <avr/io.h>
|
2011-11-05 16:52:02 +01:00
|
|
|
#include <util/delay.h>
|
2011-10-15 11:32:43 +02:00
|
|
|
|
2011-11-05 16:52:02 +01:00
|
|
|
// Cube-Data
|
2011-11-30 20:45:22 +01:00
|
|
|
//volatile uint32_t cube = 0x07007007; // Aktuelles Frame
|
|
|
|
volatile uint32_t cube = 0xffffffff; // Aktuelles Frame
|
|
|
|
//volatile uint32_t cube = 0x00000000; // Aktuelles Frame
|
2011-11-05 16:52:02 +01:00
|
|
|
// Bit Offset in Cube-Data
|
2011-11-30 00:16:21 +01:00
|
|
|
volatile uint8_t cube_level = 0; // Ebene
|
2011-10-15 11:32:43 +02:00
|
|
|
|
2011-10-19 00:04:59 +02:00
|
|
|
// Prototypen
|
2011-10-15 11:32:43 +02:00
|
|
|
void init(void);
|
|
|
|
|
|
|
|
extern void init_usb(void);
|
|
|
|
extern void usbPoll(void);
|
|
|
|
|
|
|
|
#endif // __main_h__
|
|
|
|
|