Subversion Repositories FlightCtrl

Rev

Rev 1947 | Rev 1965 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1947 Rev 1960
Line 1... Line 1...
1
#ifndef _I2C_MASTER_H
1
#ifndef _I2C_MASTER_H
2
#define _I2C_MASTER_H
2
#define _I2C_MASTER_H
Line 3... Line 3...
3
 
3
 
-
 
4
#include <inttypes.h>
Line 4... Line 5...
4
#include <inttypes.h>
5
#include "configuration.h"
5
 
6
 
6
#define TWI_STATE_MOTOR_TX                      0
7
#define TWI_STATE_MOTOR_TX                      0
Line 19... Line 20...
19
        uint8_t Error; // I2C error counter
20
        uint8_t Error; // I2C error counter
20
        uint8_t Current; // read byck from BL
21
        uint8_t Current; // read byck from BL
21
        uint8_t MaxPWM; // read back from BL
22
        uint8_t MaxPWM; // read back from BL
22
}__attribute__((packed)) MotorData_t;
23
}__attribute__((packed)) MotorData_t;
Line 23... Line -...
23
 
-
 
24
#define MAX_MOTORS      12
24
 
Line 25... Line 25...
25
extern MotorData_t motor[MAX_MOTORS];
25
extern MotorData_t motor[MAX_MOTORS];
Line 26... Line 26...
26
 
26