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