Subversion Repositories FlightCtrl

Rev

Rev 1462 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1455 acid 1
 
1459 acid 2
 
1464 acid 3
#define VERSION                 "0.3"
1459 acid 4
 
1461 acid 5
extern volatile uint8_t pwm_position[6];
6
extern volatile uint8_t pwm_neutral_position[6];
7
extern volatile uint16_t pwm_limit[6];
8
extern volatile uint8_t pwm_active;
1455 acid 9
 
1459 acid 10
 
1455 acid 11
void set_pwm();
12
void set_pwm_neutral();
1461 acid 13
void pwm_check_active();
1455 acid 14
 
1461 acid 15
 
1459 acid 16
void eeprom_init();
17
void eeprom_write();
18
 
1464 acid 19
#define I2C_ADDRESS             0x82
1459 acid 20
 
21
#define SERVODDR        DDRB
22
#define SERVOPORT       PORTB
23
#define SERVO1          PB0
24
#define SERVO2          PB1
25
#define SERVO3          PB2
26
#define SERVO4          PB3
27
#define SERVO5          PB4
28
#define SERVO6          PB5
29
 
1462 acid 30
//#define STK500
31
 
32
#ifdef STK500
1461 acid 33
#define LED_OFF         PORTD |= 0x80;
34
#define LED_ON          PORTD &= ~0x80
35
#define LED_IS_ON       !(PORTD & 0x80)
1462 acid 36
#else
37
#define LED_ON          PORTD |= 0x80;
38
#define LED_OFF         PORTD &= ~0x80
39
#define LED_IS_ON       (PORTD & 0x80)
40
#endif