Subversion Repositories FlightCtrl

Rev

Rev 1475 | Blame | Last modification | View Log | RSS feed



#define VERSION                 "0.45"
#define DEBUG_SIGNAL    0

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 set_pwm_active();


void eeprom_init();
void eeprom_write();

#define I2C_ADDRESS             0x82

#define SERVODDR        DDRB
#define SERVOPORT       PORTB
#define SERVO1          PB0
#define SERVO2          PB1
#define SERVO3          PB2
#define SERVO4          PB3
#define SERVO5          PB4
#define SERVO6          PB5


//#define STK500

#ifdef STK500
#define LED_OFF         PORTD |= (1<<PD7);
#define LED_ON          PORTD &= ~(1<<PD7)
#define LED_IS_ON       !(PORTD & (1<<PD7))
#else
#define LED_ON          PORTD |= (1<<PD7);
#define LED_OFF         PORTD &= ~(1<<PD7)
#define LED_IS_ON       (PORTD & (1<<PD7))
#endif