summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorguozhanxin <[email protected]>2023-09-26 14:37:32 +0800
committerguo <[email protected]>2023-09-27 10:16:46 +0800
commit6d506dc5b6ba67f87b0a0a9c5728933e9a39e935 (patch)
tree599aed79b4c53eeb221602dd892cab4a2b030c8c
parent82debed3ae918f1126b914efd84256609db9141a (diff)
[bsp/rt-spark] fix spi_flash_init.c
-rw-r--r--bsp/stm32/stm32f407-rt-spark/board/ports/spi_flash_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsp/stm32/stm32f407-rt-spark/board/ports/spi_flash_init.c b/bsp/stm32/stm32f407-rt-spark/board/ports/spi_flash_init.c
index a8c1b41e28..06d107c1ff 100644
--- a/bsp/stm32/stm32f407-rt-spark/board/ports/spi_flash_init.c
+++ b/bsp/stm32/stm32f407-rt-spark/board/ports/spi_flash_init.c
@@ -18,7 +18,7 @@
static int rt_hw_spi_flash_init(void)
{
__HAL_RCC_GPIOB_CLK_ENABLE();
- rt_hw_spi_device_attach("spi2", "spi20", GPIOB, GPIO_PIN_12);
+ rt_hw_spi_device_attach("spi2", "spi20", GET_PIN(B, 12));
if (RT_NULL == rt_sfud_flash_probe("W25Q64", "spi20"))
{