Skip to content

Commit 9eef644

Browse files
authored
Merge pull request #2662 from SummerGGift/master_spi_flash
[bsp][stm32][atk-f767] 修改 QSPI FLASH 名称以及设备初始化顺序
2 parents 1dd364b + d8b1c7d commit 9eef644

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bsp/stm32/stm32f767-atk-apollo/board/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ menu "Onboard Peripheral Drivers"
2424
default n
2525

2626
config BSP_USING_QSPI_FLASH
27-
bool "Enable QSPI FLASH (w25q128 qspi)"
27+
bool "Enable QSPI FLASH (W25Q256 qspi)"
2828
select BSP_USING_QSPI
2929
select RT_USING_SFUD
3030
select RT_SFUD_USING_QSPI

bsp/stm32/stm32f767-atk-apollo/board/ports/drv_qspi_flash.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@ static int rt_hw_qspi_flash_with_sfud_init(void)
6464
{
6565
stm32_qspi_bus_attach_device("qspi1", "qspi10", RT_NULL, 4, w25qxx_enter_qspi_mode, RT_NULL);
6666

67-
/* init w25q128 */
68-
if (RT_NULL == rt_sfud_flash_probe("W25Q128", "qspi10"))
67+
/* init W25Q256 */
68+
if (RT_NULL == rt_sfud_flash_probe("W25Q256", "qspi10"))
6969
{
7070
return -RT_ERROR;
7171
}
7272

7373
return RT_EOK;
7474
}
75-
INIT_COMPONENT_EXPORT(rt_hw_qspi_flash_with_sfud_init);
75+
INIT_DEVICE_EXPORT(rt_hw_qspi_flash_with_sfud_init);
7676

7777
#endif/* BSP_USING_QSPI_FLASH */

0 commit comments

Comments
 (0)