diff options
author | Damien George <damien.p.george@gmail.com> | 2016-10-18 14:32:42 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-10-18 14:34:08 +1100 |
commit | d49d81b1675b39c0c29c95b105edbbb7384f9314 (patch) | |
tree | bf84f199d40de596e53cf1e0256a13fef1b70445 /stmhal/i2c.c | |
parent | cd9b14bb11c35e013e47db46bcc73734f0d6cd55 (diff) |
stmhal: Refactor pin usage to use mp_hal_pin API.
Diffstat (limited to 'stmhal/i2c.c')
-rw-r--r-- | stmhal/i2c.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/i2c.c b/stmhal/i2c.c index 1909f8160..07269bce5 100644 --- a/stmhal/i2c.c +++ b/stmhal/i2c.c @@ -238,8 +238,8 @@ void i2c_init(I2C_HandleTypeDef *i2c) { } // init the GPIO lines - mp_hal_gpio_set_af(scl_pin, &GPIO_InitStructure, AF_FN_I2C, i2c_unit); - mp_hal_gpio_set_af(sda_pin, &GPIO_InitStructure, AF_FN_I2C, i2c_unit); + mp_hal_pin_set_af(scl_pin, &GPIO_InitStructure, AF_FN_I2C, i2c_unit); + mp_hal_pin_set_af(sda_pin, &GPIO_InitStructure, AF_FN_I2C, i2c_unit); // init the I2C device if (HAL_I2C_Init(i2c) != HAL_OK) { |