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/spi.c | |
parent | cd9b14bb11c35e013e47db46bcc73734f0d6cd55 (diff) |
stmhal: Refactor pin usage to use mp_hal_pin API.
Diffstat (limited to 'stmhal/spi.c')
-rw-r--r-- | stmhal/spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/spi.c b/stmhal/spi.c index 7f805709d..e72810d28 100644 --- a/stmhal/spi.c +++ b/stmhal/spi.c @@ -332,7 +332,7 @@ void spi_init(SPI_HandleTypeDef *spi, bool enable_nss_pin) { } for (uint i = (enable_nss_pin && pins[0] ? 0 : 1); i < 4; i++) { - mp_hal_gpio_set_af(pins[i], &GPIO_InitStructure, AF_FN_SPI, (self - &pyb_spi_obj[0]) + 1); + mp_hal_pin_set_af(pins[i], &GPIO_InitStructure, AF_FN_SPI, (self - &pyb_spi_obj[0]) + 1); } // init the SPI device |