Skip to content

Commit de9c139

Browse files
committed
[EC] Add QSPIF support
1 parent 097b8af commit de9c139

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

variants/EDGE_CONTROL/defines.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
-DCMSIS_VECTAB_VIRTUAL
55
-DCMSIS_VECTAB_VIRTUAL_HEADER_FILE=\"cmsis_nvic.h\"
66
-DCOMPONENT_FLASHIAP=1
7+
-DCOMPONENT_QSPIF=1
78
-DCOMPONENT_SD=1
89
-DCOMPONENT_SPIF=1
910
-DCONFIG_GPIO_AS_PINRESET
@@ -18,6 +19,7 @@
1819
-DDEVICE_PORTINOUT=1
1920
-DDEVICE_PORTOUT=1
2021
-DDEVICE_PWMOUT=1
22+
-DDEVICE_QSPI=1
2123
-DDEVICE_SERIAL=1
2224
-DDEVICE_SERIAL_ASYNCH=1
2325
-DDEVICE_SERIAL_FC=1
@@ -33,7 +35,7 @@
3335
-DFEATURE_CRYPTOCELL310=1
3436
-DFEATURE_STORAGE=1
3537
-DMBEDTLS_CONFIG_HW_SUPPORT
36-
-DMBED_BUILD_TIMESTAMP=1601647818.56444
38+
-DMBED_BUILD_TIMESTAMP=1604413788.0904589
3739
-DMBED_MPU_CUSTOM
3840
-DMBED_TICKLESS
3941
-DNRF52840_XXAA

variants/EDGE_CONTROL/includes.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@
338338
-iwithprefixbefore/mbed/components/wifi
339339
-iwithprefixbefore/mbed/components/storage/blockdevice/COMPONENT_SPIF
340340
-iwithprefixbefore/mbed/components/storage/blockdevice/COMPONENT_SD
341+
-iwithprefixbefore/mbed/components/storage/blockdevice/COMPONENT_QSPIF
341342
-iwithprefixbefore/mbed/components/storage/blockdevice/COMPONENT_FLASHIAP/COMMON
342343
-iwithprefixbefore/mbed/components/storage/blockdevice/COMPONENT_FLASHIAP
343344
-iwithprefixbefore/mbed/components/802.15.4_RF/stm-s2lp-rf-driver/stm-s2lp-rf-driver
287 KB
Binary file not shown.

variants/EDGE_CONTROL/mbed_config.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,16 @@
315315
#define MBED_CONF_PPP_IPV6_ENABLED 0 // set by library:ppp
316316
#define MBED_CONF_PPP_MBED_EVENT_QUEUE 0 // set by library:ppp
317317
#define MBED_CONF_PPP_THREAD_STACKSIZE 816 // set by library:ppp
318+
#define MBED_CONF_QSPIF_QSPI_CSN MBED_CONF_DRIVERS_QSPI_CSN // set by library:qspif
319+
#define MBED_CONF_QSPIF_QSPI_FREQ 32000000 // set by library:qspif[MCU_NRF52840]
320+
#define MBED_CONF_QSPIF_QSPI_IO0 MBED_CONF_DRIVERS_QSPI_IO0 // set by library:qspif
321+
#define MBED_CONF_QSPIF_QSPI_IO1 MBED_CONF_DRIVERS_QSPI_IO1 // set by library:qspif
322+
#define MBED_CONF_QSPIF_QSPI_IO2 MBED_CONF_DRIVERS_QSPI_IO2 // set by library:qspif
323+
#define MBED_CONF_QSPIF_QSPI_IO3 MBED_CONF_DRIVERS_QSPI_IO3 // set by library:qspif
324+
#define MBED_CONF_QSPIF_QSPI_MIN_PROG_SIZE 256 // set by library:qspif[MCU_NRF52840]
325+
#define MBED_CONF_QSPIF_QSPI_MIN_READ_SIZE 4 // set by library:qspif[MCU_NRF52840]
326+
#define MBED_CONF_QSPIF_QSPI_POLARITY_MODE 0 // set by library:qspif
327+
#define MBED_CONF_QSPIF_QSPI_SCK MBED_CONF_DRIVERS_QSPI_SCK // set by library:qspif
318328
#define MBED_CONF_QUECTEL_BC95_BAUDRATE 9600 // set by library:QUECTEL_BC95
319329
#define MBED_CONF_QUECTEL_BC95_PROVIDE_DEFAULT 0 // set by library:QUECTEL_BC95
320330
#define MBED_CONF_QUECTEL_BG96_BAUDRATE 115200 // set by library:QUECTEL_BG96

0 commit comments

Comments
 (0)