提交 15b2feb6 编写于 作者: armink_ztl's avatar armink_ztl

[DeviceDriver] Update QSPI driver framework.

上级 2ca59951
......@@ -185,6 +185,10 @@ config RT_USING_SPI
config RT_SFUD_USING_FLASH_INFO_TABLE
bool "Using defined supported flash chip information table"
default y
config RT_SFUD_USING_QSPI
bool "Using QSPI mode support"
default n
config RT_DEBUG_SFUD
bool "Show more SFUD debug information"
......
......@@ -144,8 +144,8 @@ struct rt_qspi_configuration
rt_uint32_t medium_size;
/* double data rate mode */
rt_uint8_t ddr_mode;
/* the number of lines connected to the hardware */
rt_uint8_t qspi_hw_lines;
/* the data lines max width which QSPI bus supported, such as 1, 2, 4 */
rt_uint8_t qspi_dl_width ;
};
struct rt_qspi_device
......
......@@ -2,7 +2,7 @@ from building import *
import rtconfig
cwd = GetCurrentDir()
src = ['spi_core.c', 'spi_dev.c']
src = ['spi_core.c', 'spi_dev.c', 'qspi_core.c']
CPPPATH = [cwd, cwd + '/../include']
LOCAL_CCFLAGS = ''
......
......@@ -25,7 +25,7 @@ rt_err_t rt_qspi_configure(struct rt_qspi_device *device, struct rt_qspi_configu
qspi_device->config.parent.reserved = cfg->parent.reserved;
qspi_device->config.medium_size = cfg->medium_size;
qspi_device->config.ddr_mode = cfg->ddr_mode;
qspi_device->config.qspi_hw_lines = cfg->qspi_hw_lines;
qspi_device->config.qspi_dl_width = cfg->qspi_dl_width;
result = rt_spi_configure(&device->parent, &cfg->parent);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册