From 629803c5e527ec2cbf63df19500be117319c4959 Mon Sep 17 00:00:00 2001 From: "Xenofon (Fontas) Fafoutis" Date: Wed, 4 Apr 2018 11:30:10 +0100 Subject: [PATCH] ext-flash driver moved to arch/dev/ --- arch/dev/ext-flash/README.md | 11 +++++++++++ {os/dev => arch/dev/ext-flash}/ext-flash.c | 0 {os/dev => arch/dev/ext-flash}/ext-flash.h | 0 .../srf06-cc26xx/launchpad/Makefile.launchpad | 2 ++ .../srf06-cc26xx/sensortag/Makefile.sensortag | 2 ++ 5 files changed, 15 insertions(+) create mode 100644 arch/dev/ext-flash/README.md rename {os/dev => arch/dev/ext-flash}/ext-flash.c (100%) rename {os/dev => arch/dev/ext-flash}/ext-flash.h (100%) diff --git a/arch/dev/ext-flash/README.md b/arch/dev/ext-flash/README.md new file mode 100644 index 000000000..a16fb9c49 --- /dev/null +++ b/arch/dev/ext-flash/README.md @@ -0,0 +1,11 @@ +# Ext-flash Driver + +This is a generic driver for external SPI flash memories. It has been tested with the following parts: +- Winbond W25X20CL +- Winbond W25X40CL +- Macronix MX25R8035F +- Macronix MX25R1635F +- Macronix MX25R6435F +- Macronix MX25U6435F + +These parts have identical instruction sets; only the manufacturer and device ID differ, which must be specified in `board.h`. \ No newline at end of file diff --git a/os/dev/ext-flash.c b/arch/dev/ext-flash/ext-flash.c similarity index 100% rename from os/dev/ext-flash.c rename to arch/dev/ext-flash/ext-flash.c diff --git a/os/dev/ext-flash.h b/arch/dev/ext-flash/ext-flash.h similarity index 100% rename from os/dev/ext-flash.h rename to arch/dev/ext-flash/ext-flash.h diff --git a/arch/platform/srf06-cc26xx/launchpad/Makefile.launchpad b/arch/platform/srf06-cc26xx/launchpad/Makefile.launchpad index d3f4ab355..09af79c0b 100644 --- a/arch/platform/srf06-cc26xx/launchpad/Makefile.launchpad +++ b/arch/platform/srf06-cc26xx/launchpad/Makefile.launchpad @@ -4,5 +4,7 @@ CONTIKI_TARGET_DIRS += launchpad common BOARD_SOURCEFILES += board.c board-buttons.c xmem.c +MODULES += arch/dev/ext-flash + ### Signal that we can be programmed with cc2538-bsl BOARD_SUPPORTS_BSL=1 diff --git a/arch/platform/srf06-cc26xx/sensortag/Makefile.sensortag b/arch/platform/srf06-cc26xx/sensortag/Makefile.sensortag index 5d528b8dc..5f7712fef 100644 --- a/arch/platform/srf06-cc26xx/sensortag/Makefile.sensortag +++ b/arch/platform/srf06-cc26xx/sensortag/Makefile.sensortag @@ -8,3 +8,5 @@ BOARD_SOURCEFILES += bmp-280-sensor.c tmp-007-sensor.c opt-3001-sensor.c BOARD_SOURCEFILES += hdc-1000-sensor.c mpu-9250-sensor.c xmem.c BOARD_SOURCEFILES += buzzer.c BOARD_SOURCEFILES += board.c board-i2c.c + +MODULES += arch/dev/ext-flash