From f6b807fd5a089607a1e21dbcad3c060363650fa1 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sun, 14 Jan 2018 11:09:44 +0000 Subject: Fixed build problem. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11272 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- testex/STM32/STM32F3xx/SPI-N25Q128/Makefile | 1 - testex/STM32/STM32F3xx/SPI-N25Q128/main.c | 7 ++++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'testex') 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"); -- cgit v1.2.3