diff options
-rwxr-xr-x | nuttx/arch/arm/src/stm32/stm32_spi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_spi.c b/nuttx/arch/arm/src/stm32/stm32_spi.c index 6cd75a1f2..581c02f69 100755 --- a/nuttx/arch/arm/src/stm32/stm32_spi.c +++ b/nuttx/arch/arm/src/stm32/stm32_spi.c @@ -771,12 +771,13 @@ FAR struct spi_dev_s *up_spiinitialize(int port) { FAR struct stm32_spidev_s *priv = NULL; irqstate_t flags; - uint32 mapr; flags = irqsave(); #ifdef CONFIG_STM32_SPI1 if (port == 0) { + uint32 mapr; + /* Select SPI1 */ priv = &g_spi1dev; |