aboutsummaryrefslogtreecommitdiffstats
path: root/testex
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2018-01-14 11:09:44 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2018-01-14 11:09:44 +0000
commitf6b807fd5a089607a1e21dbcad3c060363650fa1 (patch)
treee59c957012766f8cb19382f6116edcaf4edfdf06 /testex
parente00c841efc36e181da8867176a82ad32c9e186c6 (diff)
downloadChibiOS-f6b807fd5a089607a1e21dbcad3c060363650fa1.tar.gz
ChibiOS-f6b807fd5a089607a1e21dbcad3c060363650fa1.tar.bz2
ChibiOS-f6b807fd5a089607a1e21dbcad3c060363650fa1.zip
Fixed build problem.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11272 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testex')
-rw-r--r--testex/STM32/STM32F3xx/SPI-N25Q128/Makefile1
-rw-r--r--testex/STM32/STM32F3xx/SPI-N25Q128/main.c7
2 files changed, 4 insertions, 4 deletions
diff --git a/testex/STM32/STM32F3xx/SPI-N25Q128/Makefile b/testex/STM32/STM32F3xx/SPI-N25Q128/Makefile
index bc34444bd..40fdc3429 100644
--- a/testex/STM32/STM32F3xx/SPI-N25Q128/Makefile
+++ b/testex/STM32/STM32F3xx/SPI-N25Q128/Makefile
@@ -99,7 +99,6 @@ include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
# Other files (optional).
include $(CHIBIOS)/os/ex/Micron/m25q.mk
-include $(CHIBIOS)/os/ex/subsystems/mfs/mfs.mk
# Define linker script file here
LDSCRIPT= $(STARTUPLD)/STM32F303xC.ld
diff --git a/testex/STM32/STM32F3xx/SPI-N25Q128/main.c b/testex/STM32/STM32F3xx/SPI-N25Q128/main.c
index 836e26956..1cec3f524 100644
--- a/testex/STM32/STM32F3xx/SPI-N25Q128/main.c
+++ b/testex/STM32/STM32F3xx/SPI-N25Q128/main.c
@@ -23,6 +23,7 @@
* Maximum speed SPI configuration (18MHz, CPHA=0, CPOL=0, MSb first).
*/
static const SPIConfig hs_spicfg = {
+ false,
NULL,
GPIOB,
12,
@@ -114,12 +115,12 @@ int main(void) {
m25qStart(&flash, &flashcfg);
/* Programming a pattern.*/
- err = flashProgram(&flash, 0, pattern, 128);
+ err = flashProgram(&flash, 0, 128, pattern);
if (err != FLASH_NO_ERROR)
chSysHalt("program error");
/* Reading it back.*/
- err = flashRead(&flash, 0, buffer, 128);
+ err = flashRead(&flash, 0, 128, buffer);
if (err != FLASH_NO_ERROR)
chSysHalt("read error");
@@ -135,7 +136,7 @@ int main(void) {
chSysHalt("verify erase error");
/* Reading back for confirmation.*/
- err = flashRead(&flash, 0, buffer, 128);
+ err = flashRead(&flash, 0, 128, buffer);
if (err != FLASH_NO_ERROR)
chSysHalt("read error");