From 57dc5965cc28e488969cf3c1d742840bd185e35f Mon Sep 17 00:00:00 2001 From: zylx Date: Wed, 13 Feb 2019 17:33:27 +0800 Subject: [PATCH] [components][driver]fix qspi bug --- components/drivers/spi/spi_flash_sfud.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/drivers/spi/spi_flash_sfud.c b/components/drivers/spi/spi_flash_sfud.c index fb18b820c0..4f9b7abd57 100644 --- a/components/drivers/spi/spi_flash_sfud.c +++ b/components/drivers/spi/spi_flash_sfud.c @@ -388,9 +388,10 @@ rt_spi_flash_device_t rt_sfud_flash_probe(const char *spi_flash_dev_name, const rt_qspi_configure(qspi_dev, &qspi_cfg); if(qspi_dev->enter_qspi_mode != RT_NULL) qspi_dev->enter_qspi_mode(qspi_dev); + + /* set data lines width */ + sfud_qspi_fast_read_enable(sfud_dev, qspi_dev->config.qspi_dl_width); } - /* set data lines width */ - sfud_qspi_fast_read_enable(sfud_dev, qspi_dev->config.qspi_dl_width); #endif /* SFUD_USING_QSPI */ }