mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-26 14:54:35 +08:00
[DeviceDriver] Update QSPI driver framework.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user