diff options
Diffstat (limited to 'stmhal/spi.c')
-rw-r--r-- | stmhal/spi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/stmhal/spi.c b/stmhal/spi.c index 68ae239c94..c318d923c3 100644 --- a/stmhal/spi.c +++ b/stmhal/spi.c @@ -179,6 +179,7 @@ void spi_init(SPI_HandleTypeDef *spi, bool enable_nss_pin) { } for (uint i = (enable_nss_pin ? 0 : 1); i < 4; i++) { + mp_hal_gpio_clock_enable(pins[i]->gpio); GPIO_InitStructure.Pin = pins[i]->pin_mask; HAL_GPIO_Init(pins[i]->gpio, &GPIO_InitStructure); } |