InfiniSim/sim
JF 644431cbc4
Add support for SpiNorFlash and FS (#30)
The external SPI flash is implemented as a 4MB on the local filesystem.
This allows the FS (littleFS) and settings to work properly.

Remove the simulated `FS.h` and `FS.cpp`, because we can now use
the files from InfiniTime directly as the heavy lifting is done in the simulated
`SpiNorFlash.h` and cpp files.

`SpiNorFlash.h` provides read and write functions with `uint8_t` buffer, but
`fs::fstream` expects `char` buffer. Use `reinterpret_cast` and check if by
any chance the `char` type on a platform is implemented with more
than one byte. Then the `reinterpret_cast<char *>(buffer)` would change the
meaning of the `size` parameter, which could lead to garbage data.

Co-authored-by: Reinhold Gschweicher <pyro4hell@gmail.com>
2022-05-15 22:15:19 +02:00
..
components Add support for SpiNorFlash and FS (#30) 2022-05-15 22:15:19 +02:00
displayapp Initial InfiniSim project 2022-02-17 22:57:08 +01:00
drivers Add support for SpiNorFlash and FS (#30) 2022-05-15 22:15:19 +02:00
heartratetask Initial InfiniSim project 2022-02-17 22:57:08 +01:00
libraries Initial InfiniSim project 2022-02-17 22:57:08 +01:00
nrfx add missing <string> and <cmath> includes 2022-02-26 21:37:21 +01:00
FreeRTOS.cpp Initial InfiniSim project 2022-02-17 22:57:08 +01:00
FreeRTOS.h add missing <string> and <cmath> includes 2022-02-26 21:37:21 +01:00
portmacro_cmsis.cpp Initial InfiniSim project 2022-02-17 22:57:08 +01:00
portmacro_cmsis.h Initial InfiniSim project 2022-02-17 22:57:08 +01:00
queue.cpp Initial InfiniSim project 2022-02-17 22:57:08 +01:00
queue.h Initial InfiniSim project 2022-02-17 22:57:08 +01:00
task.cpp Initial InfiniSim project 2022-02-17 22:57:08 +01:00
task.h Initial InfiniSim project 2022-02-17 22:57:08 +01:00
timers.cpp sim/timers: implement xTimerGetExpiryTime, xTimerIsActive, more accurate 2022-03-29 22:41:09 +02:00
timers.h sim/timers: implement xTimerGetExpiryTime, xTimerIsActive, more accurate 2022-03-29 22:41:09 +02:00