Merge pull request #2662 from SummerGGift/master_spi_flash
[bsp][stm32][atk-f767] 修改 QSPI FLASH 名称以及设备初始化顺序
This commit is contained in:
commit
9eef644169
|
@ -24,7 +24,7 @@ menu "Onboard Peripheral Drivers"
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config BSP_USING_QSPI_FLASH
|
config BSP_USING_QSPI_FLASH
|
||||||
bool "Enable QSPI FLASH (w25q128 qspi)"
|
bool "Enable QSPI FLASH (W25Q256 qspi)"
|
||||||
select BSP_USING_QSPI
|
select BSP_USING_QSPI
|
||||||
select RT_USING_SFUD
|
select RT_USING_SFUD
|
||||||
select RT_SFUD_USING_QSPI
|
select RT_SFUD_USING_QSPI
|
||||||
|
|
|
@ -64,14 +64,14 @@ static int rt_hw_qspi_flash_with_sfud_init(void)
|
||||||
{
|
{
|
||||||
stm32_qspi_bus_attach_device("qspi1", "qspi10", RT_NULL, 4, w25qxx_enter_qspi_mode, RT_NULL);
|
stm32_qspi_bus_attach_device("qspi1", "qspi10", RT_NULL, 4, w25qxx_enter_qspi_mode, RT_NULL);
|
||||||
|
|
||||||
/* init w25q128 */
|
/* init W25Q256 */
|
||||||
if (RT_NULL == rt_sfud_flash_probe("W25Q128", "qspi10"))
|
if (RT_NULL == rt_sfud_flash_probe("W25Q256", "qspi10"))
|
||||||
{
|
{
|
||||||
return -RT_ERROR;
|
return -RT_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
return RT_EOK;
|
||||||
}
|
}
|
||||||
INIT_COMPONENT_EXPORT(rt_hw_qspi_flash_with_sfud_init);
|
INIT_DEVICE_EXPORT(rt_hw_qspi_flash_with_sfud_init);
|
||||||
|
|
||||||
#endif/* BSP_USING_QSPI_FLASH */
|
#endif/* BSP_USING_QSPI_FLASH */
|
||||||
|
|
Loading…
Reference in New Issue