소스 검색

[bsp/rt-spark] fix spi_flash_init.c

guozhanxin 1 년 전
부모
커밋
6d506dc5b6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      bsp/stm32/stm32f407-rt-spark/board/ports/spi_flash_init.c

+ 1 - 1
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"))
     {