Subversion Repositories FlightCtrl

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 ingob 1
#ifndef _MAIN_H
886 killagreg 2
#define _MAIN_H
1 ingob 3
 
886 killagreg 4
#include <avr/io.h>
5
 
1 ingob 6
//Hier die Quarz Frequenz einstellen
7
#if defined (__AVR_ATmega32__)
8
#define SYSCLK  20000000L       //Quarz Frequenz in Hz
9
#endif
10
 
11
#if defined (__AVR_ATmega644__)
12
#define SYSCLK  20000000L       //Quarz Frequenz in Hz
13
#endif
14
 
886 killagreg 15
#if defined (__AVR_ATmega644P__)
16
#define SYSCLK  20000000L       //Quarz Frequenz in Hz
17
#endif
1 ingob 18
 
304 ingob 19
#define F_CPU SYSCLK
1 ingob 20
 
21
 
886 killagreg 22
// neue Hardware
23
#define ROT_OFF   {if(BoardRelease == 10) PORTB &=~(1<<PORTB0); else  PORTB |= (1<<PORTB0);}
24
#define ROT_ON    {if(BoardRelease == 10) PORTB |= (1<<PORTB0); else  PORTB &=~(1<<PORTB0);}
25
#define ROT_FLASH PORTB ^= (1<<PORTB0)
26
#define GRN_OFF   PORTB &=~(1<<PORTB1)
27
#define GRN_ON    PORTB |= (1<<PORTB1)
28
#define GRN_FLASH PORTB ^= (1<<PORTB1)
513 hbuss 29
 
886 killagreg 30
#include <inttypes.h>
1 ingob 31
 
886 killagreg 32
extern uint8_t BoardRelease;
1 ingob 33
 
34
#endif //_MAIN_H
35
 
36
 
37
 
38
 
39
 
40