mini-led-cube/firmware/main.h

35 lines
732 B
C
Raw Normal View History

// Mini-LED-Cube 1.0
//
// Copyright (C) 2009 Paul Wilhelm <paul@mosfetkiller.de>
// http://mosfetkiller.de/?s=miniledcube
//
// Changed by Kai Lauterbach (klaute at web dot de)
//
// Externes Quarz, CKDIV8 Disabled
#ifndef __main_h__
#define __main_h__
// Includes
#include "globals.h"
#include <avr/interrupt.h>
#include <avr/io.h>
2011-11-05 16:52:02 +01:00
#include <util/delay.h>
2011-11-05 16:52:02 +01:00
// Cube-Data
//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
// Prototypen
void init(void);
extern void init_usb(void);
extern void usbPoll(void);
#endif // __main_h__