Subversion Repositories Projects

Rev

Rev 51 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

#ifndef _MAIN_H
 #define _MAIN_H


#define SYSCLK  8000000L


#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/eeprom.h>


#define setbit |=
#define clrbit &=~
#define invbit ^=
#define ledred          3       //on Port C
#define ledgreen        7       //on Port D
#define correction      -60

#define CH0_B   (1<<3)
#define CH1_B   (1<<2)
#define CH2_B   (1<<1)
#define CH3_D   (1<<3)
#define CH4_D   (1<<4)
#define CH5_D   (1<<5)


#endif //_MAIN_H