aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/SpiNorFlash.h
Commit message (Collapse)AuthorAgeFilesLines
* Display the SPI flash JEDEC IDs in SystemInformation.Jean-François Milants2024-08-051-1/+4
| | | | This is needed since a new memory chip will be used in future batches of PineTimes.
* Format header filesFinlay Davidson2023-01-091-0/+1
| | | | In my PR updating clang-format, I forgot to also format the headers.
* SpiNorFlash: use C++ style struct in C++ only headerReinhold Gschweicher2022-04-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | `SpiNorFlash.h` is a C++ header, but the `Identification` struct is created in a C style using `typedef struct`. Clang issues a warining about this discrepancy: ``` In file included from /home/nero/repos/pinetime/InfiniSim/InfiniTime/src/systemtask/SystemTask.cpp:13: /home/nero/repos/pinetime/InfiniSim/sim/drivers/SpiNorFlash.h:16:21: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage] typedef struct __attribute__((packed)) { ^ Identification /home/nero/repos/pinetime/InfiniSim/sim/drivers/SpiNorFlash.h:17:9: note: type is not C-compatible due to this default member initializer uint8_t manufacturer = 0; ^~~~~~~~~~~~~~~~~~~~ /home/nero/repos/pinetime/InfiniSim/sim/drivers/SpiNorFlash.h:20:9: note: type is given name 'Identification' for linkage purposes by this typedef declaration } Identification; ^ 1 warning generated. ``` The easy fix is to use a C++ style struct. Also includes code style fix from Riksu9000 Co-authored-by: Riku Isokoski <riksu9000@gmail.com>
* Changed access modified indentationAvamander2021-04-241-2/+2
|
* Reformatted all the files according to clang-format styleAvamander2021-04-241-46/+43
|
* Include cleanup: driversokaestne2020-11-151-0/+1
|
* Re-implement sleep/wakeup for touch panel, display, NOR Flash, SPI and TWI.JF2020-08-221-1/+3
|
* Encapsulate DFU Image buffering and writing into spi flash in DfuImage.JF2020-06-011-1/+1
| | | | Add some const in SPI driver.
* Fix race conditions on SPI and integrate the SPI NOR Flash driver into ↵JF2020-05-111-0/+32
| | | | DFUService (WIP)
* Add SPI NOR Flash driver, WIP.JF2020-05-071-0/+28