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:
Jared Boone 2015-08-04 10:29:10 -07:00
parent 11c786c4fb
commit 52ba9af1c7

View File

@ -52,7 +52,7 @@ constexpr ppb_range_t ppb_range { -99000, 99000 };
/* struct must pack the same way on M4 and M0 cores. */
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");