Subversion Repositories FlightCtrl

Rev

Rev 750 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 ingob 1
#ifndef _MAIN_H
762 killagreg 2
#define _MAIN_H
1 ingob 3
 
762 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
 
683 killagreg 15
#if defined (__AVR_ATmega644P__)
16
#define SYSCLK  20000000L       //Quarz Frequenz in Hz
17
#endif
18
 
687 killagreg 19
#define F_CPU SYSCLK
20
 
21
 
1 ingob 22
// neue Hardware
712 killagreg 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)
1 ingob 29
 
687 killagreg 30
#include <inttypes.h>
513 hbuss 31
 
685 killagreg 32
extern uint8_t BoardRelease;
1 ingob 33
 
34
#endif //_MAIN_H
35
 
36
 
37
 
38
 
39
 
40