Rev 51 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
28 | 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 ledred 3 //on Port C |
||
20 | #define ledgreen 7 //on Port D |
||
21 | #define correction -60 |
||
22 | |||
23 | #define CH0_B (1<<3) |
||
24 | #define CH1_B (1<<2) |
||
25 | #define CH2_B (1<<1) |
||
26 | #define CH3_D (1<<3) |
||
27 | #define CH4_D (1<<4) |
||
28 | #define CH5_D (1<<5) |
||
29 | |||
30 | |||
31 | #endif //_MAIN_H |
||
32 | |||
33 | |||
34 | |||
35 | |||
36 |