Subversion Repositories FlightCtrl

Rev

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

Rev Author Line No. Line
1 ingob 1
/*#######################################################################################
683 killagreg 2
Derkodieren eines RC Summen Signals
1 ingob 3
#######################################################################################*/
4
 
5
#ifndef _RC_H
6
#define _RC_H
7
 
8
#if defined (__AVR_ATmega32__)
9
#define TIMER_TEILER        CK64
10
#define TIMER_RELOAD_VALUE  250
11
#endif
12
 
13
#if defined (__AVR_ATmega644__)
14
//#define TIMER_TEILER        CK64
15
#define TIMER_RELOAD_VALUE  250
16
//#define TIMER_TEILER        CK256                 // bei 20MHz
17
//#define TIMER_RELOAD_VALUE  -78                                       // bei 20MHz
18
#endif
19
 
683 killagreg 20
#if defined (__AVR_ATmega644P__)
21
//#define TIMER_TEILER        CK64
22
#define TIMER_RELOAD_VALUE  250
23
//#define TIMER_TEILER        CK256                 // bei 20MHz
24
//#define TIMER_RELOAD_VALUE  -78                                       // bei 20MHz
25
#endif
26
 
1 ingob 27
#define GAS   PPM_in[2]
28
 
29
 
30
extern void rc_sum_init (void);
31
 
32
extern volatile int PPM_in[11];
33
extern volatile int PPM_diff[11];  // das diffenzierte Stick-Signal
34
extern volatile unsigned char NewPpmData;
35
 
36
#endif //_RC_H