Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 1820 → Rev 1821

/branches/dongfang_FC_rewrite/twimaster.h
14,12 → 14,12
volatile extern uint8_t DACValues[4];
 
typedef struct {
uint8_t SetPoint; // written by attitude controller
uint8_t Present; // 0 if BL was found
uint8_t Error; // I2C error counter
uint8_t Current; // read byck from BL
uint8_t MaxPWM; // read back from BL
} __attribute__((packed)) MotorData_t;
uint8_t SetPoint; // written by attitude controller
uint8_t Present; // 0 if BL was found
uint8_t Error; // I2C error counter
uint8_t Current; // read byck from BL
uint8_t MaxPWM; // read back from BL
}__attribute__((packed)) MotorData_t;
 
#define MAX_MOTORS 12
extern MotorData_t motor[MAX_MOTORS];
26,9 → 26,9
 
extern volatile uint16_t I2CTimeout;
 
extern void I2C_init (void); // Initialize I2C
extern void I2C_init(void); // Initialize I2C
extern void I2C_Start(uint8_t start_state); // Start I2C
extern void I2C_Stop (uint8_t start_state); // Stop I2C
extern void I2C_Stop(uint8_t start_state); // Stop I2C
extern void I2C_Reset(void); // Reset I2C
extern void twi_diagnostics(void);