mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 23:23:34 +08:00
LPC11C24 C_CAN paranoid offset checks
This commit is contained in:
@@ -85,6 +85,9 @@ struct Type
|
||||
std::uint32_t CLKDIV; // 0x180
|
||||
};
|
||||
|
||||
static_assert(offsetof(Type, CNTL) == 0x000, "C_CAN offset");
|
||||
static_assert(offsetof(Type, STAT) == 0x004, "C_CAN offset");
|
||||
static_assert(offsetof(Type, TEST) == 0x014, "C_CAN offset");
|
||||
static_assert(offsetof(Type, BRPE) == 0x018, "C_CAN offset");
|
||||
static_assert(offsetof(Type, IF[0]) == 0x020, "C_CAN offset");
|
||||
static_assert(offsetof(Type, IF[1]) == 0x080, "C_CAN offset");
|
||||
|
||||
Reference in New Issue
Block a user