diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2018-11-02 21:14:35 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2018-11-02 21:14:35 +0000 |
commit | 6620e65927443454f881d706a69ea8c9af71e296 (patch) | |
tree | a9864cfe9ef43863a67d9b0a8d319865caa36ef8 /testhal/STM32/multi/WSPI-MFS/cfg/stm32l476_discovery | |
parent | 5087d58f1ca762b5b4c7a2fc81642b1de3d3e3f3 (diff) | |
download | ChibiOS-6620e65927443454f881d706a69ea8c9af71e296.tar.gz ChibiOS-6620e65927443454f881d706a69ea8c9af71e296.tar.bz2 ChibiOS-6620e65927443454f881d706a69ea8c9af71e296.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12403 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'testhal/STM32/multi/WSPI-MFS/cfg/stm32l476_discovery')
-rw-r--r-- | testhal/STM32/multi/WSPI-MFS/cfg/stm32l476_discovery/portab.c | 6 | ||||
-rw-r--r-- | testhal/STM32/multi/WSPI-MFS/cfg/stm32l476_discovery/portab.h | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/testhal/STM32/multi/WSPI-MFS/cfg/stm32l476_discovery/portab.c b/testhal/STM32/multi/WSPI-MFS/cfg/stm32l476_discovery/portab.c index 878e69c05..893711661 100644 --- a/testhal/STM32/multi/WSPI-MFS/cfg/stm32l476_discovery/portab.c +++ b/testhal/STM32/multi/WSPI-MFS/cfg/stm32l476_discovery/portab.c @@ -34,6 +34,12 @@ /* Module exported variables. */
/*===========================================================================*/
+const WSPIConfig WSPIcfg1 = {
+ .end_cb = NULL,
+ .dcr = STM32_DCR_FSIZE(24U) | /* 16MB device. */
+ STM32_DCR_CSHT(1U) /* NCS 2 cycles delay. */
+};
+
/*===========================================================================*/
/* Module local types. */
/*===========================================================================*/
diff --git a/testhal/STM32/multi/WSPI-MFS/cfg/stm32l476_discovery/portab.h b/testhal/STM32/multi/WSPI-MFS/cfg/stm32l476_discovery/portab.h index 25f3c4d4c..6985d659d 100644 --- a/testhal/STM32/multi/WSPI-MFS/cfg/stm32l476_discovery/portab.h +++ b/testhal/STM32/multi/WSPI-MFS/cfg/stm32l476_discovery/portab.h @@ -38,6 +38,7 @@ #define PORTAB_BUTTON_PRESSED PAL_HIGH
#define PORTAB_SD1 SD2
+#define PORTAB_WSPI1 WSPID1
/*===========================================================================*/
/* Module pre-compile time settings. */
@@ -59,6 +60,8 @@ /* External declarations. */
/*===========================================================================*/
+extern const WSPIConfig WSPIcfg1;
+
#ifdef __cplusplus
extern "C" {
#endif
|