From d97435a1c8f63a7d43f1f3402c553e78bdd59fe9 Mon Sep 17 00:00:00 2001 From: "Dirk H. R." Date: Sun, 22 May 2016 20:17:27 +0200 Subject: [PATCH 1/3] Updated SPI-Flash to support SST25 Series of SPI Flash, which does not support page programming with opcode 0x02, but Automatic Address Increment Word programming with opcode 0xAD. Use #define SPIFLASH_SST25TYPE for SST25 Type Flash Memory and AAI Word Programming. --- .../MySensors/drivers/SPIFlash/SPIFlash.cpp | 49 ++++++++++++++++++- .../MySensors/drivers/SPIFlash/SPIFlash.h | 7 ++- 2 files changed, 53 insertions(+), 3 deletions(-) diff --git a/libraries/MySensors/drivers/SPIFlash/SPIFlash.cpp b/libraries/MySensors/drivers/SPIFlash/SPIFlash.cpp index 9fa26ad2b..3590216cd 100644 --- a/libraries/MySensors/drivers/SPIFlash/SPIFlash.cpp +++ b/libraries/MySensors/drivers/SPIFlash/SPIFlash.cpp @@ -7,6 +7,8 @@ // > Updated Jan. 5, 2015, TomWS1, modified writeBytes to allow blocks > 256 bytes and handle page misalignment. // > Updated Feb. 26, 2015 TomWS1, added support for SPI Transactions (Arduino 1.5.8 and above) // > Selective merge by Felix after testing in IDE 1.0.6, 1.6.4 +// > Updated May 19, 2016 D-H-R, added support for SST25/Microchip Flash which does not support Page programming with OPCode 0x02, +// > use #define SPIFLASH_SST25TYPE for SST25 Type Flash Memory // ********************************************************************************** // License // ********************************************************************************** @@ -230,8 +232,50 @@ void SPIFlash::writeByte(uint32_t addr, uint8_t byt) { /// WARNING: you can only write to previously erased memory locations (see datasheet) /// use the block erase commands to first clear memory (write 0xFFs) /// This version handles both page alignment and data blocks larger than 256 bytes. -/// +/// SST25 Family Flash does not support programming multiple Bytes with opcode 0x02 SPIFLASH_BYTEPROGRAM, +/// If #define SPIFLASH_SST25TYPE is set and writeBytes is called, it calls writeByte to do the job +/// (i.e. before each bytes the address where it goes to is sent, use writeWords for better performance with SST25. void SPIFlash::writeBytes(uint32_t addr, const void* buf, uint16_t len) { +#ifdef SPIFLASH_SST25TYPE + //SST25 Type of Flash does not support Page Programming but AAI Word Programming + uint16_t i=0; + uint8_t oddAdr=0; + char s[5]; + + command(SPIFLASH_AAIWORDPROGRAM, true); // Byte/Page Program + SPI.transfer(addr >> 16); + SPI.transfer(addr >> 8); + SPI.transfer(addr); + + if (addr%2){ + //start address is not even, i.e. first byte of word must be 0xff + SPI.transfer(0xff); + SPI.transfer(((uint8_t*) buf)[0]); + unselect(); + oddAdr=1; //following addresses must all be shifted one off + len--; + if (len > 0) command(SPIFLASH_AAIWORDPROGRAM); //If for loop will run issue Wordprogram command + } + + for (i=0;i<(len/2);i++){ + //AAI command must be set before every new word + if (i>0) command(SPIFLASH_AAIWORDPROGRAM); //Wordprogram command for first write has been issued before + SPI.transfer(((uint8_t*) buf)[i*2+oddAdr]); + SPI.transfer(((uint8_t*) buf)[i*2+1+oddAdr]); + unselect(); + } + + if (len-i*2 == 1){ + //There is one byte (i.e. half word) left. This happens if len was odd or (len was even and addr odd) + if (i>0) command(SPIFLASH_AAIWORDPROGRAM); //if for loop had not run wordprogram command from before is still valid + SPI.transfer(((uint8_t*) buf)[i*2+oddAdr]); + SPI.transfer(0xff); + unselect(); + } + + command(SPIFLASH_WRITEDISABLE); //end AAI programming + unselect(); +#else uint16_t n; uint16_t maxBytes = 256-(addr%256); // force the first set of bytes to stay within the first page uint16_t offset = 0; @@ -244,7 +288,7 @@ void SPIFlash::writeBytes(uint32_t addr, const void* buf, uint16_t len) { SPI.transfer(addr); for (uint16_t i = 0; i < n; i++) - SPI.transfer(((uint8_t*) buf)[offset + i]); + SPI.transfer(((uint8_t*) buf)[offset + i]); unselect(); addr+=n; // adjust the addresses and remaining bytes by what we've just transferred. @@ -252,6 +296,7 @@ void SPIFlash::writeBytes(uint32_t addr, const void* buf, uint16_t len) { len -= n; maxBytes = 256; // now we can do up to 256 bytes per loop } +#endif } /// erase entire flash memory array diff --git a/libraries/MySensors/drivers/SPIFlash/SPIFlash.h b/libraries/MySensors/drivers/SPIFlash/SPIFlash.h index f9aebdb2d..f2a3115e5 100644 --- a/libraries/MySensors/drivers/SPIFlash/SPIFlash.h +++ b/libraries/MySensors/drivers/SPIFlash/SPIFlash.h @@ -7,6 +7,8 @@ // > Updated Jan. 5, 2015, TomWS1, modified writeBytes to allow blocks > 256 bytes and handle page misalignment. // > Updated Feb. 26, 2015 TomWS1, added support for SPI Transactions (Arduino 1.5.8 and above) // > Selective merge by Felix after testing in IDE 1.0.6, 1.6.4 +// > Updated May 19, 2016 D-H-R, added support for SST25/Microchip Flash which does not support Page programming with OPCode 0x02, +// > use #define SPIFLASH_SST25TYPE for SST25 Type Flash Memory // ********************************************************************************** // License // ********************************************************************************** @@ -82,6 +84,9 @@ #define SPIFLASH_SLEEP 0xB9 // deep power down #define SPIFLASH_WAKE 0xAB // deep power wake up #define SPIFLASH_BYTEPAGEPROGRAM 0x02 // write (1 to 256bytes) +#define SPIFLASH_AAIWORDPROGRAM 0xAD // Auto Address Increment Programming on Microchip SST Family Devices which do not support page program + // use #define SPIFLASH_SST25TYPE to use AAI prog instead of Bytepageprogram which does not work on SST Family Chips + // tested with SST25PF020B80 http://ww1.microchip.com/downloads/en/DeviceDoc/20005135B.pdf #define SPIFLASH_IDREAD 0x9F // read JEDEC manufacturer and device ID (2 bytes, specific bytes for each manufacturer and device) // Example for Atmel-Adesto 4Mbit AT25DF041A: 0x1F44 (page 27: http://www.adestotech.com/sites/default/files/datasheets/doc3668.pdf) // Example for Winbond 4Mbit W25X40CL: 0xEF30 (page 14: http://www.winbond.com/NR/rdonlyres/6E25084C-0BFE-4B25-903D-AE10221A0929/0/W25X40CL.pdf) @@ -98,7 +103,7 @@ class SPIFlash { uint8_t readByte(uint32_t addr); //!< read 1 byte from flash memory void readBytes(uint32_t addr, void* buf, uint16_t len); //!< read unlimited # of bytes void writeByte(uint32_t addr, uint8_t byt); //!< Write 1 byte to flash memory - void writeBytes(uint32_t addr, const void* buf, uint16_t len); //!< write multiple bytes to flash memory (up to 64K) + void writeBytes(uint32_t addr, const void* buf, uint16_t len); //!< write multiple bytes to flash memory (up to 64K), if #define SPIFLASH_SST25TYPE is set AAI Word Programming will be used boolean busy(); //!< check if the chip is busy erasing/writing void chipErase(); //!< erase entire flash memory array void blockErase4K(uint32_t address); //!< erase a 4Kbyte block From 4e3cbdb9d01900f31b8faaf2485c63dc7a5fedde Mon Sep 17 00:00:00 2001 From: "Dirk H. R." Date: Sun, 22 May 2016 20:46:34 +0200 Subject: [PATCH 2/3] removed # in comments (doxygen seems to not like it..) --- libraries/MySensors/drivers/SPIFlash/SPIFlash.cpp | 4 ++-- libraries/MySensors/drivers/SPIFlash/SPIFlash.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libraries/MySensors/drivers/SPIFlash/SPIFlash.cpp b/libraries/MySensors/drivers/SPIFlash/SPIFlash.cpp index 3590216cd..02af7a2c1 100644 --- a/libraries/MySensors/drivers/SPIFlash/SPIFlash.cpp +++ b/libraries/MySensors/drivers/SPIFlash/SPIFlash.cpp @@ -8,7 +8,7 @@ // > Updated Feb. 26, 2015 TomWS1, added support for SPI Transactions (Arduino 1.5.8 and above) // > Selective merge by Felix after testing in IDE 1.0.6, 1.6.4 // > Updated May 19, 2016 D-H-R, added support for SST25/Microchip Flash which does not support Page programming with OPCode 0x02, -// > use #define SPIFLASH_SST25TYPE for SST25 Type Flash Memory +// > use define SPIFLASH_SST25TYPE for SST25 Type Flash Memory // ********************************************************************************** // License // ********************************************************************************** @@ -233,7 +233,7 @@ void SPIFlash::writeByte(uint32_t addr, uint8_t byt) { /// use the block erase commands to first clear memory (write 0xFFs) /// This version handles both page alignment and data blocks larger than 256 bytes. /// SST25 Family Flash does not support programming multiple Bytes with opcode 0x02 SPIFLASH_BYTEPROGRAM, -/// If #define SPIFLASH_SST25TYPE is set and writeBytes is called, it calls writeByte to do the job +/// If define SPIFLASH_SST25TYPE is set and writeBytes is called, it calls writeByte to do the job /// (i.e. before each bytes the address where it goes to is sent, use writeWords for better performance with SST25. void SPIFlash::writeBytes(uint32_t addr, const void* buf, uint16_t len) { #ifdef SPIFLASH_SST25TYPE diff --git a/libraries/MySensors/drivers/SPIFlash/SPIFlash.h b/libraries/MySensors/drivers/SPIFlash/SPIFlash.h index f2a3115e5..981ccd6c3 100644 --- a/libraries/MySensors/drivers/SPIFlash/SPIFlash.h +++ b/libraries/MySensors/drivers/SPIFlash/SPIFlash.h @@ -8,7 +8,7 @@ // > Updated Feb. 26, 2015 TomWS1, added support for SPI Transactions (Arduino 1.5.8 and above) // > Selective merge by Felix after testing in IDE 1.0.6, 1.6.4 // > Updated May 19, 2016 D-H-R, added support for SST25/Microchip Flash which does not support Page programming with OPCode 0x02, -// > use #define SPIFLASH_SST25TYPE for SST25 Type Flash Memory +// > use define SPIFLASH_SST25TYPE for SST25 Type Flash Memory // ********************************************************************************** // License // ********************************************************************************** @@ -85,7 +85,7 @@ #define SPIFLASH_WAKE 0xAB // deep power wake up #define SPIFLASH_BYTEPAGEPROGRAM 0x02 // write (1 to 256bytes) #define SPIFLASH_AAIWORDPROGRAM 0xAD // Auto Address Increment Programming on Microchip SST Family Devices which do not support page program - // use #define SPIFLASH_SST25TYPE to use AAI prog instead of Bytepageprogram which does not work on SST Family Chips + // use define SPIFLASH_SST25TYPE to use AAI prog instead of Bytepageprogram which does not work on SST Family Chips // tested with SST25PF020B80 http://ww1.microchip.com/downloads/en/DeviceDoc/20005135B.pdf #define SPIFLASH_IDREAD 0x9F // read JEDEC manufacturer and device ID (2 bytes, specific bytes for each manufacturer and device) // Example for Atmel-Adesto 4Mbit AT25DF041A: 0x1F44 (page 27: http://www.adestotech.com/sites/default/files/datasheets/doc3668.pdf) @@ -103,7 +103,7 @@ class SPIFlash { uint8_t readByte(uint32_t addr); //!< read 1 byte from flash memory void readBytes(uint32_t addr, void* buf, uint16_t len); //!< read unlimited # of bytes void writeByte(uint32_t addr, uint8_t byt); //!< Write 1 byte to flash memory - void writeBytes(uint32_t addr, const void* buf, uint16_t len); //!< write multiple bytes to flash memory (up to 64K), if #define SPIFLASH_SST25TYPE is set AAI Word Programming will be used + void writeBytes(uint32_t addr, const void* buf, uint16_t len); //!< write multiple bytes to flash memory (up to 64K), if define SPIFLASH_SST25TYPE is set AAI Word Programming will be used boolean busy(); //!< check if the chip is busy erasing/writing void chipErase(); //!< erase entire flash memory array void blockErase4K(uint32_t address); //!< erase a 4Kbyte block From 56af99904315603979be512fcc100654115fe90f Mon Sep 17 00:00:00 2001 From: "Dirk H. R." Date: Tue, 24 May 2016 09:02:04 +0200 Subject: [PATCH 3/3] changed define "SPIFLASH_SST25TYPE" to "MY_SPIFLASH_SST25TYPE". Added doxygen comments, in order to build a good/better SPIFlash.h doxygen site. Added "MY_SPIFLASH_SST25TYPE" to keywords.txt. --- .../MySensors/drivers/SPIFlash/SPIFlash.cpp | 8 +- .../MySensors/drivers/SPIFlash/SPIFlash.h | 107 +++++++++++------- libraries/MySensors/keywords.txt | 3 +- 3 files changed, 68 insertions(+), 50 deletions(-) diff --git a/libraries/MySensors/drivers/SPIFlash/SPIFlash.cpp b/libraries/MySensors/drivers/SPIFlash/SPIFlash.cpp index 02af7a2c1..1d4205ccc 100644 --- a/libraries/MySensors/drivers/SPIFlash/SPIFlash.cpp +++ b/libraries/MySensors/drivers/SPIFlash/SPIFlash.cpp @@ -8,7 +8,7 @@ // > Updated Feb. 26, 2015 TomWS1, added support for SPI Transactions (Arduino 1.5.8 and above) // > Selective merge by Felix after testing in IDE 1.0.6, 1.6.4 // > Updated May 19, 2016 D-H-R, added support for SST25/Microchip Flash which does not support Page programming with OPCode 0x02, -// > use define SPIFLASH_SST25TYPE for SST25 Type Flash Memory +// > use define MY_SPIFLASH_SST25TYPE for SST25 Type Flash Memory // ********************************************************************************** // License // ********************************************************************************** @@ -232,11 +232,9 @@ void SPIFlash::writeByte(uint32_t addr, uint8_t byt) { /// WARNING: you can only write to previously erased memory locations (see datasheet) /// use the block erase commands to first clear memory (write 0xFFs) /// This version handles both page alignment and data blocks larger than 256 bytes. -/// SST25 Family Flash does not support programming multiple Bytes with opcode 0x02 SPIFLASH_BYTEPROGRAM, -/// If define SPIFLASH_SST25TYPE is set and writeBytes is called, it calls writeByte to do the job -/// (i.e. before each bytes the address where it goes to is sent, use writeWords for better performance with SST25. +/// See documentation of #MY_SPIFLASH_SST25TYPE define for more information void SPIFlash::writeBytes(uint32_t addr, const void* buf, uint16_t len) { -#ifdef SPIFLASH_SST25TYPE +#ifdef MY_SPIFLASH_SST25TYPE //SST25 Type of Flash does not support Page Programming but AAI Word Programming uint16_t i=0; uint8_t oddAdr=0; diff --git a/libraries/MySensors/drivers/SPIFlash/SPIFlash.h b/libraries/MySensors/drivers/SPIFlash/SPIFlash.h index 981ccd6c3..e08b6d51a 100644 --- a/libraries/MySensors/drivers/SPIFlash/SPIFlash.h +++ b/libraries/MySensors/drivers/SPIFlash/SPIFlash.h @@ -8,7 +8,7 @@ // > Updated Feb. 26, 2015 TomWS1, added support for SPI Transactions (Arduino 1.5.8 and above) // > Selective merge by Felix after testing in IDE 1.0.6, 1.6.4 // > Updated May 19, 2016 D-H-R, added support for SST25/Microchip Flash which does not support Page programming with OPCode 0x02, -// > use define SPIFLASH_SST25TYPE for SST25 Type Flash Memory +// > use define MY_SPIFLASH_SST25TYPE for SST25 Type Flash Memory. Added / changed comments to better suit doxygen // ********************************************************************************** // License // ********************************************************************************** @@ -34,6 +34,35 @@ // Please maintain this license information along with authorship // and copyright notices in any redistribution of this code +/// +/// @file SPIFlash.h +/// +/// @brief SPIFlash provides access to a SPI Flash IC for OTA update or storing data +/// +/// IMPORTANT: NAND FLASH memory requires erase before write, because +/// it can only transition from 1s to 0s and only the erase command can reset all 0s to 1s +/// See http://en.wikipedia.org/wiki/Flash_memory +/// The smallest range that can be erased is a sector (4K, 32K, 64K); there is also a chip erase command +/// +/// Standard SPI flash commands
+/// Assuming the WP pin is pulled up (to disable hardware write protection).
+/// To use any write commands the WEL bit in the status register must be set to 1.
+/// This is accomplished by sending a 0x06 command before any such write/erase command.
+/// The WEL bit in the status register resets to the logical ?0? state after a device power-up or reset. +/// In addition, the WEL bit will be reset to the logical ?0? state automatically under the following conditions:
+/// - Write Disable operation completes successfully
+/// - Write Status Register operation completes successfully or aborts
+/// - Protect Sector operation completes successfully or aborts
+/// - Unprotect Sector operation completes successfully or aborts
+/// - Byte/Page Program operation completes successfully or aborts
+/// - Sequential Program Mode reaches highest unprotected memory location
+/// - Sequential Program Mode reaches the end of the memory array
+/// - Sequential Program Mode aborts
+/// - Block Erase operation completes successfully or aborts
+/// - Chip Erase operation completes successfully or aborts
+/// - Hold condition aborts +/// + #ifndef _SPIFLASH_H_ #define _SPIFLASH_H_ @@ -46,52 +75,42 @@ #include -/// IMPORTANT: NAND FLASH memory requires erase before write, because -/// it can only transition from 1s to 0s and only the erase command can reset all 0s to 1s -/// See http://en.wikipedia.org/wiki/Flash_memory -/// The smallest range that can be erased is a sector (4K, 32K, 64K); there is also a chip erase command - -/// Standard SPI flash commands -/// Assuming the WP pin is pulled up (to disable hardware write protection) -/// To use any write commands the WEL bit in the status register must be set to 1. -/// This is accomplished by sending a 0x06 command before any such write/erase command. -/// The WEL bit in the status register resets to the logical ?0? state after a -/// device power-up or reset. In addition, the WEL bit will be reset to the logical ?0? state automatically under the following conditions: -/// ? Write Disable operation completes successfully -/// ? Write Status Register operation completes successfully or aborts -/// ? Protect Sector operation completes successfully or aborts -/// ? Unprotect Sector operation completes successfully or aborts -/// ? Byte/Page Program operation completes successfully or aborts -/// ? Sequential Program Mode reaches highest unprotected memory location -/// ? Sequential Program Mode reaches the end of the memory array -/// ? Sequential Program Mode aborts -/// ? Block Erase operation completes successfully or aborts -/// ? Chip Erase operation completes successfully or aborts -/// ? Hold condition aborts -#define SPIFLASH_WRITEENABLE 0x06 // write enable -#define SPIFLASH_WRITEDISABLE 0x04 // write disable +#define SPIFLASH_WRITEENABLE 0x06 //!< write enable +#define SPIFLASH_WRITEDISABLE 0x04 //!< write disable -#define SPIFLASH_BLOCKERASE_4K 0x20 // erase one 4K block of flash memory -#define SPIFLASH_BLOCKERASE_32K 0x52 // erase one 32K block of flash memory -#define SPIFLASH_BLOCKERASE_64K 0xD8 // erase one 64K block of flash memory -#define SPIFLASH_CHIPERASE 0x60 // chip erase (may take several seconds depending on size) - // but no actual need to wait for completion (instead need to check the status register BUSY bit) -#define SPIFLASH_STATUSREAD 0x05 // read status register -#define SPIFLASH_STATUSWRITE 0x01 // write status register -#define SPIFLASH_ARRAYREAD 0x0B // read array (fast, need to add 1 dummy byte after 3 address bytes) -#define SPIFLASH_ARRAYREADLOWFREQ 0x03 // read array (low frequency) +#define SPIFLASH_BLOCKERASE_4K 0x20 //!< erase one 4K block of flash memory +#define SPIFLASH_BLOCKERASE_32K 0x52 //!< erase one 32K block of flash memory +#define SPIFLASH_BLOCKERASE_64K 0xD8 //!< erase one 64K block of flash memory +#define SPIFLASH_CHIPERASE 0x60 //!< @brief chip erase (may take several seconds depending on size) + //!< Chip is erased but not actually waited for completion (instead need to check the status register BUSY bit) +#define SPIFLASH_STATUSREAD 0x05 //!< read status register +#define SPIFLASH_STATUSWRITE 0x01 //!< write status register +#define SPIFLASH_ARRAYREAD 0x0B //!< read array (fast, need to add 1 dummy byte after 3 address bytes) +#define SPIFLASH_ARRAYREADLOWFREQ 0x03 //!< read array (low frequency) -#define SPIFLASH_SLEEP 0xB9 // deep power down -#define SPIFLASH_WAKE 0xAB // deep power wake up -#define SPIFLASH_BYTEPAGEPROGRAM 0x02 // write (1 to 256bytes) -#define SPIFLASH_AAIWORDPROGRAM 0xAD // Auto Address Increment Programming on Microchip SST Family Devices which do not support page program - // use define SPIFLASH_SST25TYPE to use AAI prog instead of Bytepageprogram which does not work on SST Family Chips - // tested with SST25PF020B80 http://ww1.microchip.com/downloads/en/DeviceDoc/20005135B.pdf -#define SPIFLASH_IDREAD 0x9F // read JEDEC manufacturer and device ID (2 bytes, specific bytes for each manufacturer and device) - // Example for Atmel-Adesto 4Mbit AT25DF041A: 0x1F44 (page 27: http://www.adestotech.com/sites/default/files/datasheets/doc3668.pdf) - // Example for Winbond 4Mbit W25X40CL: 0xEF30 (page 14: http://www.winbond.com/NR/rdonlyres/6E25084C-0BFE-4B25-903D-AE10221A0929/0/W25X40CL.pdf) -#define SPIFLASH_MACREAD 0x4B // read unique ID number (MAC) +#define SPIFLASH_SLEEP 0xB9 //!< deep power down +#define SPIFLASH_WAKE 0xAB //!< deep power wake up +#define SPIFLASH_BYTEPAGEPROGRAM 0x02 //!< write (1 to 256bytes). Writing more than one Byte is not supported on all devices (e.g. SST25 Series) +#define SPIFLASH_AAIWORDPROGRAM 0xAD //!< @brief Auto Address Increment Programming on Microchip SST Family Devices which do not support page program.
+ //!< Use define #MY_SPIFLASH_SST25TYPE to use AAI prog instead of Bytepageprogram which does not work on SST Family Chips + //!< tested with SST25PF020B80 http://ww1.microchip.com/downloads/en/DeviceDoc/20005135B.pdf +#define SPIFLASH_IDREAD 0x9F //!< @brief read JEDEC manufacturer and device ID (2 bytes, specific bytes for each manufacturer and device) + //!< Example for Atmel-Adesto 4Mbit AT25DF041A: 0x1F44 (page 27: http://www.adestotech.com/sites/default/files/datasheets/doc3668.pdf) + //!< Example for Winbond 4Mbit W25X40CL: 0xEF30 (page 14: http://www.winbond.com/NR/rdonlyres/6E25084C-0BFE-4B25-903D-AE10221A0929/0/W25X40CL.pdf) +#define SPIFLASH_MACREAD 0x4B //!< read unique ID number (MAC) +/// +/// @def MY_SPIFLASH_SST25TYPE +/// @brief If set AAI Word Programming is used to support SST25 Family SPI Flash. +/// +/// SST25 Family Flash does not support programming multiple Bytes with opcode 0x02 #SPIFLASH_BYTEPAGEPROGRAM.
+/// If SPIFLASH_SST25TYPE is set and writeBytes is called, it will use opcode 0xAD #SPIFLASH_AAIWORDPROGRAM and care for Byte alignment.
+/// Note: AAI Wordprogramming is independent of Pages, so pagebreaking is not an issue when using AAI Wordprogramming. +/// + #ifdef DOXYGEN //needed to tell doxygen not to ignore the define which is actually made somewhere else + #define MY_SPIFLASH_SST25TYPE + #endif + /** SPIFlash class */ class SPIFlash { public: diff --git a/libraries/MySensors/keywords.txt b/libraries/MySensors/keywords.txt index 7b184862d..2f9ef7367 100644 --- a/libraries/MySensors/keywords.txt +++ b/libraries/MySensors/keywords.txt @@ -115,4 +115,5 @@ MY_SIGNING_REQUEST_SIGNATURES LITERAL1 MY_SMART_SLEEP_WAIT_DURATION LITERAL1 MY_NODE_LOCK_FEATURE LITERAL1 MY_NODE_UNLOCK_PIN LITERAL1 -MY_NODE_LOCK_COUNTER_MAX LITERAL1 \ No newline at end of file +MY_NODE_LOCK_COUNTER_MAX LITERAL1 +MY_SPIFLASH_SST25TYPE LITERAL1 \ No newline at end of file