InfiniSim/sim
Reinhold Gschweicher 7194e3e38e SpiNorFlash: use C++ style struct in C++ only header
`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.

Same fix as in: https://github.com/InfiniTimeOrg/InfiniTime/pull/1046
2022-04-24 19:13:56 +02:00
..
components FS: copy lfs_info and implement FS::Stat() 2022-04-04 21:22:57 +02:00
displayapp Initial InfiniSim project 2022-02-17 22:57:08 +01:00
drivers SpiNorFlash: use C++ style struct in C++ only header 2022-04-24 19:13:56 +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