HAL_ChibiOS: fixed warning on gcc9

packed structure can be misaligned
This commit is contained in:
Andrew Tridgell 2020-09-21 11:11:08 +10:00
parent 1000371d8a
commit 0ba256f625

View File

@ -49,7 +49,7 @@ private:
uint32_t dmamode;
ICUConfig icucfg;
ICUDriver* _icu_drv = nullptr;
typedef struct PACKED {
typedef struct {
uint32_t w0;
uint32_t w1;
} pulse_t;