2014-04-20 19:10:04 -04:00
|
|
|
// use this for OwnAddress1 to configure I2C in master mode
|
|
|
|
#define PYB_I2C_MASTER_ADDRESS (0xfe)
|
|
|
|
|
2014-04-19 19:30:09 -04:00
|
|
|
extern I2C_HandleTypeDef I2CHandle1;
|
|
|
|
extern I2C_HandleTypeDef I2CHandle2;
|
2014-03-25 19:26:14 -04:00
|
|
|
extern const mp_obj_type_t pyb_i2c_type;
|
|
|
|
|
2014-04-19 19:30:09 -04:00
|
|
|
void i2c_init0(void);
|
|
|
|
void i2c_init(I2C_HandleTypeDef *i2c);
|