Rev 1179 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1179 | Rev 1180 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #ifndef _MAIN_H |
1 | #ifndef _MAIN_H |
2 | #define _MAIN_H |
2 | #define _MAIN_H |
Line 3... | Line 3... | ||
3 | 3 | ||
Line 4... | Line -... | ||
4 | #include <avr/io.h> |
- | |
5 | 4 | #include <avr/io.h> |
|
6 | //set crystal frequency here |
- | |
7 | #if defined (__AVR_ATmega644__) |
- | |
8 | #define SYSCLK 20000000L //crystal freqency in Hz |
- | |
9 | #endif |
5 | |
10 | - | ||
11 | #if defined (__AVR_ATmega644P__) |
- | |
Line 12... | Line 6... | ||
12 | #define SYSCLK 20000000L //crystal freqency in Hz |
6 | #define ATMEGA644 0 |
Line 13... | Line 7... | ||
13 | #endif |
7 | #define ATMEGA644P 1 |
14 | 8 | ||
15 | #define F_CPU SYSCLK |
9 | #define SYSCLK F_CPU |
Line 24... | Line 18... | ||
24 | #define GRN_FLASH PORTB ^= (1<<PORTB1) |
18 | #define GRN_FLASH PORTB ^= (1<<PORTB1) |
Line 25... | Line 19... | ||
25 | 19 | ||
Line 26... | Line 20... | ||
26 | #include <inttypes.h> |
20 | #include <inttypes.h> |
- | 21 | ||
Line 27... | Line 22... | ||
27 | 22 | extern uint8_t BoardRelease; |