Change i2c_struct to force 32bit access

This commit is contained in:
me-no-dev
2021-05-13 11:26:14 +03:00
parent 0d0e2851f3
commit c31ba2b21b
2 changed files with 4 additions and 4 deletions

View File

@@ -116,8 +116,8 @@ typedef volatile struct {
} fifo_conf;
union {
struct {
uint8_t data;
uint8_t reserved[3];
uint32_t data : 8;
uint32_t reserved8 : 24;
};
uint32_t val;
} fifo_data;