Rev 1933 | Rev 2167 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1933 | Rev 2008 | ||
---|---|---|---|
1 | /*####################################################################################### |
1 | /*####################################################################################### |
2 | Derkodieren eines RC Summen Signals |
2 | Derkodieren eines RC Summen Signals |
3 | #######################################################################################*/ |
3 | #######################################################################################*/ |
4 | 4 | ||
5 | #ifndef _RC_H |
5 | #ifndef _RC_H |
6 | #define _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 | 7 | ||
13 | #if defined (__AVR_ATmega644__) |
8 | #if defined (__AVR_ATmega644__) |
14 | #define TIMER_RELOAD_VALUE 250 |
9 | #define TIMER_RELOAD_VALUE 250 |
15 | #endif |
10 | #endif |
16 | 11 | ||
17 | #if defined (__AVR_ATmega644P__) |
12 | #if defined (__AVR_ATmega644P__) |
18 | #define TIMER_RELOAD_VALUE 250 |
13 | #define TIMER_RELOAD_VALUE 250 |
19 | #endif |
14 | #endif |
20 | 15 | ||
21 | #define GAS PPM_in[2] |
16 | #define GAS PPM_in[2] |
22 | 17 | ||
23 | 18 | ||
24 | extern void rc_sum_init (void); |
19 | extern void rc_sum_init (void); |
25 | 20 | ||
26 | extern volatile int PPM_in[26]; |
21 | extern volatile int PPM_in[26]; |
27 | extern volatile int PPM_diff[26]; // das diffenzierte Stick-Signal |
22 | extern volatile int PPM_diff[26]; // das diffenzierte Stick-Signal |
28 | extern volatile unsigned char NewPpmData; |
23 | extern volatile unsigned char NewPpmData; |
29 | extern volatile char Channels,tmpChannels; |
24 | extern volatile char Channels,tmpChannels; |
30 | extern unsigned int PPM_Neutral; |
25 | extern unsigned int PPM_Neutral; |
31 | 26 | ||
32 | #endif //_RC_H |
27 | #endif //_RC_H |
33 | 28 |