1,14 → 1,15 |
|
|
#define VERSION "0.32" |
#define VERSION "0.40" |
#define DEBUG_SIGNAL 1 |
|
extern uint8_t pwm_position[6]; |
extern uint8_t pwm_neutral_position[6]; |
extern uint16_t pwm_limit[6]; |
extern uint8_t pwm_active; |
extern uint8_t pwm_status; |
extern volatile uint8_t pwm_position[6]; |
extern volatile uint8_t pwm_neutral_position[6]; |
extern volatile uint16_t pwm_limit[6]; |
#if DEBUG_SIGNAL |
extern volatile uint8_t display_values; |
#endif |
|
|
void set_pwm(); |
void set_pwm_neutral(); |
void pwm_check_active(); |
28,14 → 29,15 |
#define SERVO5 PB4 |
#define SERVO6 PB5 |
|
|
//#define STK500 |
|
#ifdef STK500 |
#define LED_OFF PORTD |= 0x80; |
#define LED_ON PORTD &= ~0x80 |
#define LED_IS_ON !(PORTD & 0x80) |
#define LED_OFF PORTD |= (1<<PD7); |
#define LED_ON PORTD &= ~(1<<PD7) |
#define LED_IS_ON !(PORTD & (1<<PD7)) |
#else |
#define LED_ON PORTD |= 0x80; |
#define LED_OFF PORTD &= ~0x80 |
#define LED_IS_ON (PORTD & 0x80) |
#define LED_ON PORTD |= (1<<PD7); |
#define LED_OFF PORTD &= ~(1<<PD7) |
#define LED_IS_ON (PORTD & (1<<PD7)) |
#endif |