InfiniTime/src/drivers
Reinhold Gschweicher 129dd97b51 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.

Also includes code style fix from Riksu9000

Co-authored-by: Riku Isokoski <riksu9000@gmail.com>
2022-04-24 19:07:46 +03:00
..
Bma421_C Add support for BMA425 acceleration sensor. (#440) 2021-06-19 20:27:59 +02:00
Bma421.cpp Move up file header include to top 2021-11-15 22:02:49 +01:00
Bma421.h Add support for BMA425 acceleration sensor. (#440) 2021-06-19 20:27:59 +02:00
BufferProvider.h Changed access modified indentation 2021-04-24 12:00:45 +03:00
Cst816s.cpp Update includes to to be relative to src directory 2021-11-15 22:02:49 +01:00
Cst816s.h Update includes to to be relative to src directory 2021-11-15 22:02:49 +01:00
DebugPins.cpp Update includes to to be relative to src directory 2021-11-15 22:02:49 +01:00
DebugPins.h Reformatted all the files according to clang-format style 2021-04-24 11:39:53 +03:00
Hrs3300.cpp Merge pull request #531 from hatmajster/heart-rate-gain-setting 2022-01-26 21:44:23 +01:00
Hrs3300.h changed ReadHrs and ReadAls to uint32, and did static_cast instead of hidden cast when using it 2021-12-13 12:47:52 +02:00
InternalFlash.cpp Update includes to to be relative to src directory 2021-11-15 22:02:49 +01:00
InternalFlash.h Changed access modified indentation 2021-04-24 12:00:45 +03:00
PinMap.h Add missing standard includes 2021-11-15 22:02:49 +01:00
Spi.cpp Update includes to to be relative to src directory 2021-11-15 22:02:49 +01:00
Spi.h Update includes to to be relative to src directory 2021-11-15 22:02:49 +01:00
SpiMaster.cpp Update includes to to be relative to src directory 2021-11-15 22:02:49 +01:00
SpiMaster.h Move most of the code from the constructor of the objects statically initialized in main() into Start()/Init() functions to avoid Static Initialization Order Fiasco (https://en.cppreference.com/w/cpp/language/siof). See https://github.com/JF002/InfiniTime/pull/415#issuecomment-859004238. 2021-06-12 10:58:28 +02:00
SpiNorFlash.cpp Update includes to to be relative to src directory 2021-11-15 22:02:49 +01:00
SpiNorFlash.h SpiNorFlash: use C++ style struct in C++ only header 2022-04-24 19:07:46 +03:00
St7789.cpp Update includes to to be relative to src directory 2021-11-15 22:02:49 +01:00
St7789.h Changed access modified indentation 2021-04-24 12:00:45 +03:00
TwiMaster.cpp Update includes to to be relative to src directory 2021-11-15 22:02:49 +01:00
TwiMaster.h Simplify parameters and cleanup 2021-08-16 18:26:10 +03:00
Watchdog.cpp Update includes to to be relative to src directory 2021-11-15 22:02:49 +01:00
Watchdog.h Changed access modified indentation 2021-04-24 12:00:45 +03:00