summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/i2c.h
blob: d4f08efb75b5c38864913280ed05b50046e1dade (plain) (blame)
1
2
3
4
5
6
7
8
9
// use this for OwnAddress1 to configure I2C in master mode
#define PYB_I2C_MASTER_ADDRESS (0xfe)

extern I2C_HandleTypeDef I2CHandle1;
extern I2C_HandleTypeDef I2CHandle2;
extern const mp_obj_type_t pyb_i2c_type;

void i2c_init0(void);
void i2c_init(I2C_HandleTypeDef *i2c);