Rev 624 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 624 | Rev 683 | ||
---|---|---|---|
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 | 7 | ||
8 | #if defined (__AVR_ATmega32__) |
8 | #if defined (__AVR_ATmega32__) |
9 | #define TIMER_TEILER CK64 |
9 | #define TIMER_TEILER CK64 |
10 | #define TIMER_RELOAD_VALUE 250 |
10 | #define TIMER_RELOAD_VALUE 250 |
11 | #endif |
11 | #endif |
12 | 12 | ||
13 | #if defined (__AVR_ATmega644__) |
13 | #if defined (__AVR_ATmega644__) |
14 | //#define TIMER_TEILER CK64 |
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 | ||
- | 20 | #if defined (__AVR_ATmega644P__) |
|
- | 21 | //#define TIMER_TEILER CK64 |
|
15 | #define TIMER_RELOAD_VALUE 250 |
22 | #define TIMER_RELOAD_VALUE 250 |
16 | //#define TIMER_TEILER CK256 // bei 20MHz |
23 | //#define TIMER_TEILER CK256 // bei 20MHz |
17 | //#define TIMER_RELOAD_VALUE -78 // bei 20MHz |
24 | //#define TIMER_RELOAD_VALUE -78 // bei 20MHz |
18 | #endif |
25 | #endif |
19 | 26 | ||
20 | #define GAS PPM_in[2] |
27 | #define GAS PPM_in[2] |
21 | 28 | ||
22 | 29 | ||
23 | extern void rc_sum_init (void); |
30 | extern void rc_sum_init (void); |
24 | 31 | ||
25 | extern volatile int PPM_in[11]; |
32 | extern volatile int PPM_in[11]; |
26 | extern volatile int PPM_diff[11]; // das diffenzierte Stick-Signal |
33 | extern volatile int PPM_diff[11]; // das diffenzierte Stick-Signal |
27 | extern volatile unsigned char NewPpmData; |
34 | extern volatile unsigned char NewPpmData; |
28 | 35 | ||
29 | #endif //_RC_H |
36 | #endif //_RC_H |
30 | 37 |