Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1227 | killagreg | 1 | #ifndef _MAIN_H |
2 | #define _MAIN_H |
||
3 | |||
4 | #include <avr/io.h> |
||
5 | |||
6 | #define ATMEGA644 0 |
||
7 | #define ATMEGA644P 1 |
||
8 | |||
9 | #define SYSCLK F_CPU |
||
10 | |||
11 | |||
12 | // neue Hardware |
||
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);} |
||
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);} |
||
18 | #define GRN_FLASH PORTB ^= (1<<PORTB1) |
||
19 | |||
20 | #include <inttypes.h> |
||
21 | |||
22 | extern uint8_t BoardRelease; |
||
23 | extern uint8_t CPUType; |
||
24 | |||
25 | #endif //_MAIN_H |
||
26 | |||
27 | |||
28 | |||
29 | |||
30 | |||
31 |