Rev 28 |
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 correction -60
#define LEDON setbit
#define LEDOFF clrbit
#define ledred (1<<3) //on Port C
#define ledgreen (1<<7) //on Port D
#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