Skip to content

Commit 8695991

Browse files
committed
revise spi_flash_init.c RCC
1 parent 9acd9b7 commit 8695991

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bsp/stm32/stm32f407-micu/board/ports/spi_flash_init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
static int rt_hw_spi_flash_init(void)
2020
{
21-
__HAL_RCC_GPIOB_CLK_ENABLE();
21+
__HAL_RCC_GPIOA_CLK_ENABLE();
2222
rt_hw_spi_device_attach("spi1", "spi10", GET_PIN(A, 4));
2323

2424
if (RT_NULL == rt_sfud_flash_probe("ZD25WQ32", "spi10"))

0 commit comments

Comments
 (0)