Skip to content

Commit 6d506dc

Browse files
committed
[bsp/rt-spark] fix spi_flash_init.c
1 parent 82debed commit 6d506dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bsp/stm32/stm32f407-rt-spark/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
static int rt_hw_spi_flash_init(void)
1919
{
2020
__HAL_RCC_GPIOB_CLK_ENABLE();
21-
rt_hw_spi_device_attach("spi2", "spi20", GPIOB, GPIO_PIN_12);
21+
rt_hw_spi_device_attach("spi2", "spi20", GET_PIN(B, 12));
2222

2323
if (RT_NULL == rt_sfud_flash_probe("W25Q64", "spi20"))
2424
{

0 commit comments

Comments
 (0)