12,21 → 12,21 |
extern uint8_t missingMotor; |
|
typedef struct { |
uint8_t throttle; // written by attitude controller |
uint8_t throttle; |
uint8_t current; |
uint8_t maxPWM; |
uint8_t present; // 0 if BL was found |
uint8_t error; // I2C error counter |
uint8_t current; // read back from BL |
uint8_t maxPWM; // read back from BL |
}__attribute__((packed)) motorData_t; |
}__attribute__((packed)) MLBLC_t; |
|
extern motorData_t motor[MAX_MOTORS]; |
extern MLBLC_t mkblcs[MAX_I2CCHANNELS]; |
|
extern volatile uint16_t I2CTimeout; |
|
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_Reset(void); // Reset I2C |
extern void I2C_start(uint8_t startState); // Start I2C |
extern void I2C_stop(uint8_t startState); // Stop I2C |
extern void I2C_reset(void); // Reset I2C |
extern void twi_diagnostics(void); |
|
#endif |