aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/SpiNorFlash.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Power optimization - Improve SPI sleep modeJean-François Milants2023-06-041-3/+0
| | | | | Calls to Spi::Init() are not needed, pin initialization is already done in ctor(). Remove calls to Spi::Sleep()/Spi::Wakeup() to ensure that SPI CS pins are kept high even in sleep mode.
* Power optimization - Improve SPI sleep modeJean-François Milants2023-06-041-0/+3
| | | | | | Ensure that all pins are set to their default configuration during sleep mode. Disable the workaround for FTPAN58 (SPI freezes when transfering a single byte) at the end of the transfer. This disables the resources needed for the workaround. Those changes reduce the power usage by 430-490µA.
* Replace C-style casts with static_castFinlay Davidson2022-06-051-7/+15
|
* Update includes to to be relative to src directoryReinhold Gschweicher2021-11-151-2/+2
| | | | | | | Don't use relative imports like `../foo.h` as those depend on the relative position of both files. Rather than that use imports relative to the `src` directory, which explicitly is part of the include directories.
* Reformatted all the files according to clang-format styleAvamander2021-04-241-27/+28
|
* Include cleanup: driversokaestne2020-11-151-1/+1
|
* Disable sleep mode on the SPI NOR Flash when the version is unknown. This is ↵JF2020-10-271-3/+3
| | | | | | because the current bootloader (which does not exposes its version) cannot initialize the chip when it's in sleep mode. This feature will be re-enabled when the bootloader expses it's version.
* Re-implement sleep/wakeup for touch panel, display, NOR Flash, SPI and TWI.JF2020-08-221-4/+18
|
* Encapsulate DFU Image buffering and writing into spi flash in DfuImage.JF2020-06-011-2/+2
| | | | Add some const in SPI driver.
* Fix race conditions on SPI and integrate the SPI NOR Flash driver into ↵JF2020-05-111-10/+98
| | | | DFUService (WIP)
* Add SPI NOR Flash driver, WIP.JF2020-05-071-0/+36