Commit Graph

22 Commits

Author SHA1 Message Date
Felix Rusu deed665e02 add found() and regionIsEmpty() 2021-07-20 14:10:28 -04:00
Felix Rusu e80a582218
Merge pull request #28 from JasonC0x0D/update_comment
Updated Comments about sleep()
2021-06-08 08:14:34 -04:00
JasonC0x0D ac7bc9a993
Updated Comments about sleep()
Clarification that after using sleep(), wake() must be the first function used to communicate with the flash chip.
If this isn't the case, a noisy MISO line can cause the code to hang in the while(busy) loop in the command() function.
This is a "fix" for "gitHub bug #26".
2021-06-07 20:07:28 -07:00
Felix Rusu 9031099cdf Update SPIFlash.cpp
Closes #26, Closes #27
2021-06-07 16:44:39 -04:00
Felix Rusu eec4aa34b2 Move SPI.begin() per Issue#20
https://github.com/LowPowerLab/SPIFlash/issues/20
2018-05-23 12:35:20 -04:00
Felix Rusu 09f09b923c protect AVR SPCR & SPSR 2018-04-04 10:36:23 -04:00
LowPowerLab 7885ef3f9e fix wakeup() 2017-08-04 11:44:28 -04:00
LowPowerLab ea8e6132b0 add blockErase64K() 2015-11-10 10:35:25 -05:00
LowPowerLab 6e92ea284a Use SPI_TRANSCTIONS when supported 2015-06-02 15:02:10 -04:00
LowPowerLab 46b3d40a0c void* pointer arithmetic bug 2015-02-08 22:13:47 -05:00
TomWS1 4616a7670c Removed 256 restriction from writeBytes()
Original version was constrained by Flash 256 byte page limits.  This
change allows up to 64K writes and also deals with blocks that cross
pages (even if 2 bytes starting at address = 0xyyFF.
2015-02-06 09:58:42 -05:00
LowPowerLab a349130cc3 Add busy() while() explanation 2015-01-08 20:44:12 -05:00
Felix Rusu 57715ad5c0 Unintrusive SPI transactions & misc fixes 2014-07-29 17:10:06 -04:00
PaulStoffregen aa404fdea8 Use SPI transaction, if supported by SPI library 2014-07-29 10:12:31 -07:00
Felix Rusu 7c4424e08e Fix writeBytes length
Credit to wilsynet
2014-06-30 11:25:09 -04:00
Felix Rusu 0370bec69d Add readUniqueId() to get unique 64 bit MAC
Reads 64 bit MAC unique ID
2014-05-29 14:32:19 -04:00
LowPowerLab 7b054f770f fix infinite loop bug when HIGH-Z MISO stays high (take2) 2013-08-02 10:23:56 -04:00
Felix Rusu 0efea19ac2 fix infinite loop bug when HIGH-Z MISO stays high
When FLASH chip is not present and MISO is in high impedance, other SPI
devices might pull MISO high and the while(busy) loop might never return
because of a false positive busy (actually MISO would return 0XFF for
status register including the BUSY bit)
2013-08-02 00:02:46 -04:00
Felix Rusu 53156895f3 adding sleep/wakeup functions, moving WirelessHEX 2013-07-13 23:07:08 -04:00
LowPowerLab 722fe3c3b8 Fix for SS pin on MoteinoLeo, Atmega32u4, Arduino Leonardo 2013-05-30 17:47:40 -04:00
LowPowerLab 1c7b79b8ea Update SPIFlash.cpp 2013-04-16 16:44:56 -03:00
LowPowerLab 41572cda47 Create SPIFlash.cpp 2013-04-04 19:04:29 -03:00