MCPcopy Create free account
hub / github.com/LowPowerLab/SPIFlash / unselect

Method unselect

SPIFlash.cpp:76–88  ·  view source on GitHub ↗

UNselect the flash chip

Source from the content-addressed store, hash-verified

74
75/// UNselect the flash chip
76void 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...
91boolean SPIFlash::initialize()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected