diff options
| author | Damien George | 2014-03-25 23:26:14 +0000 |
|---|---|---|
| committer | Damien George | 2014-03-25 23:26:14 +0000 |
| commit | 6cfda3084dfef44892e85b1c658f0ad9b0643641 (patch) | |
| tree | cfa5ae14032249d4982cd00e17b9e47df3025fbd /stmhal/i2c.h | |
| parent | 681d0a9ca7acd96a25b41768f98c49e21846074d (diff) | |
stmhal: Add I2C support; change accel driver to use new I2C.
Diffstat (limited to 'stmhal/i2c.h')
| -rw-r--r-- | stmhal/i2c.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/stmhal/i2c.h b/stmhal/i2c.h new file mode 100644 index 000000000..32cba4259 --- /dev/null +++ b/stmhal/i2c.h @@ -0,0 +1,6 @@ +extern I2C_HandleTypeDef I2cHandle_X; +extern I2C_HandleTypeDef I2cHandle_Y; +extern const mp_obj_type_t pyb_i2c_type; + +void i2c_init(void); +void i2c_start(I2C_HandleTypeDef *i2c_handle); |
