UNselect the flash chip
| 74 | |
| 75 | /// UNselect the flash chip |
| 76 | void SPIFlash::unselect() { |
| 77 | digitalWrite(_slaveSelectPin, HIGH); |
| 78 | //restore SPI settings to what they were before talking to the FLASH chip |
| 79 | #ifdef SPI_HAS_TRANSACTION |
| 80 | SPI.endTransaction(); |
| 81 | #else |
| 82 | interrupts(); |
| 83 | #endif |
| 84 | #if defined (SPCR) && defined (SPSR) |
| 85 | SPCR = _SPCR; |
| 86 | SPSR = _SPSR; |
| 87 | #endif |
| 88 | } |
| 89 | |
| 90 | /// setup SPI, read device ID etc... |
| 91 | boolean SPIFlash::initialize() |
nothing calls this directly
no outgoing calls
no test coverage detected