Subversion Repositories FlightCtrl

Rev

Rev 750 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 750 Rev 762
Line 1... Line 1...
1
#ifndef _MAIN_H
1
#ifndef _MAIN_H
2
 #define _MAIN_H
2
#define _MAIN_H
-
 
3
 
-
 
4
#include <avr/io.h>
Line 3... Line 5...
3
 
5
 
4
//Hier die Quarz Frequenz einstellen
6
//Hier die Quarz Frequenz einstellen
5
#if defined (__AVR_ATmega32__)
7
#if defined (__AVR_ATmega32__)
6
#define SYSCLK  20000000L       //Quarz Frequenz in Hz
8
#define SYSCLK  20000000L       //Quarz Frequenz in Hz
Line 23... Line 25...
23
#define ROT_FLASH PORTB ^= (1<<PORTB0)
25
#define ROT_FLASH PORTB ^= (1<<PORTB0)
24
#define GRN_OFF   PORTB &=~(1<<PORTB1)
26
#define GRN_OFF   PORTB &=~(1<<PORTB1)
25
#define GRN_ON    PORTB |= (1<<PORTB1)
27
#define GRN_ON    PORTB |= (1<<PORTB1)
26
#define GRN_FLASH PORTB ^= (1<<PORTB1)
28
#define GRN_FLASH PORTB ^= (1<<PORTB1)
Line 27... Line -...
27
 
-
 
28
#define J16_ON   PORTC |=  (1<<PORTC2)
-
 
29
#define J16_OFF  PORTC &= ~(1<<PORTC2)
-
 
30
#define J17_ON   PORTC |=  (1<<PORTC3)
-
 
31
#define J17_OFF  PORTC &= ~(1<<PORTC3)
-
 
32
 
29
 
Line 33... Line 30...
33
#include <inttypes.h>
30
#include <inttypes.h>
Line 34... Line 31...
34
 
31