Remove 'packed' attribute from all regs structs

This commit is contained in:
Alex Stewart 2015-08-25 17:13:13 -07:00
parent b76bf99d7c
commit 0155632dd3
7 changed files with 7 additions and 7 deletions

View file

@ -45,7 +45,7 @@ struct DPORT_REGS {
uint32_t volatile OTP_MAC1; // 0x54 uint32_t volatile OTP_MAC1; // 0x54
uint32_t volatile OTP_CHIPID; // 0x58 uint32_t volatile OTP_CHIPID; // 0x58
uint32_t volatile OTP_MAC2; // 0x5c uint32_t volatile OTP_MAC2; // 0x5c
} __attribute__ (( packed )); };
_Static_assert(sizeof(struct DPORT_REGS) == 0x60, "DPORT_REGS is the wrong size"); _Static_assert(sizeof(struct DPORT_REGS) == 0x60, "DPORT_REGS is the wrong size");

View file

@ -57,7 +57,7 @@ struct GPIO_REGS {
uint32_t volatile PWM; // 0x68 uint32_t volatile PWM; // 0x68
uint32_t volatile RTC_CALIB; // 0x6c uint32_t volatile RTC_CALIB; // 0x6c
uint32_t volatile RTC_CALIB_RESULT; // 0x70 uint32_t volatile RTC_CALIB_RESULT; // 0x70
} __attribute__ (( packed )); };
_Static_assert(sizeof(struct GPIO_REGS) == 0x74, "GPIO_REGS is the wrong size"); _Static_assert(sizeof(struct GPIO_REGS) == 0x74, "GPIO_REGS is the wrong size");

View file

@ -20,7 +20,7 @@
struct IOMUX_REGS { struct IOMUX_REGS {
uint32_t volatile CONF; // 0x00 uint32_t volatile CONF; // 0x00
uint32_t volatile PIN[16]; // 0x04 - 0x40 uint32_t volatile PIN[16]; // 0x04 - 0x40
} __attribute__ (( packed )); };
_Static_assert(sizeof(struct IOMUX_REGS) == 0x44, "IOMUX_REGS is the wrong size"); _Static_assert(sizeof(struct IOMUX_REGS) == 0x44, "IOMUX_REGS is the wrong size");

View file

@ -67,7 +67,7 @@ struct SPI_REGS {
uint32_t volatile EXT1; // 0xf4 uint32_t volatile EXT1; // 0xf4
uint32_t volatile EXT2; // 0xf8 uint32_t volatile EXT2; // 0xf8
uint32_t volatile EXT3; // 0xfc uint32_t volatile EXT3; // 0xfc
} __attribute__ (( packed )); };
_Static_assert(sizeof(struct SPI_REGS) == 0x100, "SPI_REGS is the wrong size"); _Static_assert(sizeof(struct SPI_REGS) == 0x100, "SPI_REGS is the wrong size");

View file

@ -36,7 +36,7 @@ struct TIMER_REGS { // FRC1 FRC2
uint32_t volatile CTRL; // 0x08 0x28 uint32_t volatile CTRL; // 0x08 0x28
uint32_t volatile STATUS; // 0x0c 0x2c uint32_t volatile STATUS; // 0x0c 0x2c
uint32_t volatile ALARM; // 0x30 uint32_t volatile ALARM; // 0x30
} __attribute__ (( packed )); };
_Static_assert(sizeof(struct TIMER_REGS) == 0x14, "TIMER_REGS is the wrong size"); _Static_assert(sizeof(struct TIMER_REGS) == 0x14, "TIMER_REGS is the wrong size");

View file

@ -46,7 +46,7 @@ struct UART_REGS {
uint32_t volatile _unused[17]; // 0x34 - 0x74 uint32_t volatile _unused[17]; // 0x34 - 0x74
uint32_t volatile DATE; // 0x78 uint32_t volatile DATE; // 0x78
uint32_t volatile ID; // 0x7c uint32_t volatile ID; // 0x7c
} __attribute__ (( packed )); };
_Static_assert(sizeof(struct UART_REGS) == 0x80, "UART_REGS is the wrong size"); _Static_assert(sizeof(struct UART_REGS) == 0x80, "UART_REGS is the wrong size");

View file

@ -27,7 +27,7 @@ struct WDT_REGS {
uint32_t volatile REG2; // 0x08 uint32_t volatile REG2; // 0x08
uint32_t volatile _unused[2]; // 0x0c - 0x10 uint32_t volatile _unused[2]; // 0x0c - 0x10
uint32_t volatile FEED; // 0x14 uint32_t volatile FEED; // 0x14
} __attribute__ (( packed )); };
_Static_assert(sizeof(struct WDT_REGS) == 0x18, "WDT_REGS is the wrong size"); _Static_assert(sizeof(struct WDT_REGS) == 0x18, "WDT_REGS is the wrong size");