Subversion Repositories FlightCtrl

Rev

Rev 1465 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1465 Rev 1475
Line 1... Line 1...
1
 
1
 
2
 
-
 
3
#define VERSION                 "0.32"
-
 
4
 
-
 
5
extern uint8_t pwm_position[6];
-
 
6
extern uint8_t pwm_neutral_position[6];
-
 
7
extern uint16_t pwm_limit[6];
2
 
Line -... Line 3...
-
 
3
#define VERSION                 "0.40"
-
 
4
#define DEBUG_SIGNAL    1
-
 
5
 
-
 
6
extern volatile uint8_t pwm_position[6];
-
 
7
extern volatile uint8_t pwm_neutral_position[6];
-
 
8
extern volatile uint16_t pwm_limit[6];
Line 8... Line 9...
8
extern uint8_t pwm_active;
9
#if DEBUG_SIGNAL
9
extern uint8_t pwm_status;
10
extern volatile uint8_t display_values;
10
 
11
#endif
Line 26... Line 27...
26
#define SERVO3          PB2
27
#define SERVO3          PB2
27
#define SERVO4          PB3
28
#define SERVO4          PB3
28
#define SERVO5          PB4
29
#define SERVO5          PB4
29
#define SERVO6          PB5
30
#define SERVO6          PB5
Line -... Line 31...
-
 
31
 
30
 
32
 
Line 31... Line 33...
31
//#define STK500
33
//#define STK500
32
 
34
 
33
#ifdef STK500
35
#ifdef STK500
34
#define LED_OFF         PORTD |= 0x80;
36
#define LED_OFF         PORTD |= (1<<PD7);
35
#define LED_ON          PORTD &= ~0x80
37
#define LED_ON          PORTD &= ~(1<<PD7)
36
#define LED_IS_ON       !(PORTD & 0x80)
38
#define LED_IS_ON       !(PORTD & (1<<PD7))
37
#else
39
#else
38
#define LED_ON          PORTD |= 0x80;
40
#define LED_ON          PORTD |= (1<<PD7);
39
#define LED_OFF         PORTD &= ~0x80
41
#define LED_OFF         PORTD &= ~(1<<PD7)