Subversion Repositories FlightCtrl

Rev

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
 
1180 killagreg 6
#define ATMEGA644       0
7
#define ATMEGA644P      1
1 ingob 8
 
1180 killagreg 9
#define SYSCLK F_CPU
1 ingob 10
 
11
 
886 killagreg 12
// neue Hardware
1078 killagreg 13
#define RED_OFF   {if((BoardRelease == 10)||(BoardRelease == 20)) PORTB &=~(1<<PORTB0); else  PORTB |= (1<<PORTB0);}
14
#define RED_ON    {if((BoardRelease == 10)||(BoardRelease == 20)) PORTB |= (1<<PORTB0); else  PORTB &=~(1<<PORTB0);}
936 killagreg 15
#define RED_FLASH PORTB ^= (1<<PORTB0)
16
#define GRN_OFF   {if(BoardRelease  < 12) PORTB &=~(1<<PORTB1); else PORTB |= (1<<PORTB1);}
17
#define GRN_ON    {if(BoardRelease  < 12) PORTB |= (1<<PORTB1); else PORTB &=~(1<<PORTB1);}
886 killagreg 18
#define GRN_FLASH PORTB ^= (1<<PORTB1)
513 hbuss 19
 
886 killagreg 20
#include <inttypes.h>
1 ingob 21
 
886 killagreg 22
extern uint8_t BoardRelease;
1180 killagreg 23
extern uint8_t CPUType;
1 ingob 24
 
25
#endif //_MAIN_H
26
 
27
 
28
 
29
 
30
 
31