mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-13 18:39:23 +00:00
Make persistent memory data_t types explicit.
I want the storage types to be reliable, separate from the interface types.
This commit is contained in:
@@ -52,7 +52,7 @@ constexpr ppb_range_t ppb_range { -99000, 99000 };
|
|||||||
|
|
||||||
/* struct must pack the same way on M4 and M0 cores. */
|
/* struct must pack the same way on M4 and M0 cores. */
|
||||||
struct data_t {
|
struct data_t {
|
||||||
ppb_t correction_ppb;
|
int32_t correction_ppb;
|
||||||
};
|
};
|
||||||
|
|
||||||
static_assert(sizeof(data_t) <= 0x100, "Persistent memory structure too large for VBAT-maintained region");
|
static_assert(sizeof(data_t) <= 0x100, "Persistent memory structure too large for VBAT-maintained region");
|
||||||
|
Reference in New Issue
Block a user