[bsp/rt-spark] fix spi_flash_init.c
This commit is contained in:
parent
82debed3ae
commit
6d506dc5b6
|
@ -18,7 +18,7 @@
|
||||||
static int rt_hw_spi_flash_init(void)
|
static int rt_hw_spi_flash_init(void)
|
||||||
{
|
{
|
||||||
__HAL_RCC_GPIOB_CLK_ENABLE();
|
__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"))
|
if (RT_NULL == rt_sfud_flash_probe("W25Q64", "spi20"))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue