Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
64 | walter | 1 | #ifndef _MAIN_H |
2 | #define _MAIN_H |
||
3 | |||
4 | |||
5 | #define SYSCLK 8000000L |
||
6 | |||
7 | |||
8 | #include <stdio.h> |
||
9 | #include <stdlib.h> |
||
10 | #include <string.h> |
||
11 | #include <avr/io.h> |
||
12 | #include <avr/interrupt.h> |
||
13 | #include <avr/eeprom.h> |
||
14 | |||
15 | |||
16 | #define setbit |= |
||
17 | #define clrbit &=~ |
||
18 | #define invbit ^= |
||
19 | //#define correction -60 |
||
20 | |||
21 | #define LEDON setbit |
||
22 | #define LEDOFF clrbit |
||
23 | |||
24 | #define ledred (1<<3) //on Port C |
||
25 | #define ledgreen (1<<7) //on Port D |
||
26 | |||
27 | #define CH0_B (1<<3) |
||
28 | #define CH1_B (1<<2) |
||
29 | #define CH2_B (1<<1) |
||
30 | #define CH3_D (1<<3) |
||
31 | #define CH4_D (1<<4) |
||
32 | #define CH5_D (1<<5) |
||
33 | |||
34 | |||
35 | #endif //_MAIN_H |
||
36 | |||
37 | |||
38 | |||
39 | |||
40 |