removes attribute packed as it disables word access generation by gcc
This commit is contained in:
parent
46d55f353e
commit
5d78f839a5
@ -12,7 +12,7 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct __attribute((__packed__)) {
|
||||
typedef struct {
|
||||
volatile uint32_t MSIP0;
|
||||
uint8_t fill0[16380];
|
||||
volatile uint32_t MTIMECMP0LO;
|
||||
@ -88,4 +88,4 @@ inline void set_aclint_mtime_hi(volatile aclint_t* reg, uint32_t value){
|
||||
reg->MTIME_HI = (reg->MTIME_HI & ~(0xffffffffU << 0)) | (value << 0);
|
||||
}
|
||||
|
||||
#endif /* _BSP_ACLINT_H */
|
||||
#endif /* _BSP_ACLINT_H */
|
||||
|
@ -12,22 +12,22 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct __attribute((__packed__)) {
|
||||
typedef struct {
|
||||
volatile uint32_t DATA;
|
||||
volatile uint32_t STATUS;
|
||||
volatile uint32_t CONFIG;
|
||||
volatile uint32_t INTR;
|
||||
uint8_t fill0[16];
|
||||
uint32_t fill0[4];
|
||||
volatile uint32_t SCLK_CONFIG;
|
||||
volatile uint32_t SSGEN_SETUP;
|
||||
volatile uint32_t SSGEN_HOLD;
|
||||
volatile uint32_t SSGEN_DISABLE;
|
||||
volatile uint32_t SSGEN_ACTIVE_HIGH;
|
||||
uint8_t fill1[12];
|
||||
uint32_t fill1[3];
|
||||
volatile uint32_t XIP_ENABLE;
|
||||
volatile uint32_t XIP_CONFIG;
|
||||
volatile uint32_t XIP_MODE;
|
||||
uint8_t fill2[4];
|
||||
uint32_t fill2[1];
|
||||
volatile uint32_t XIP_WRITE;
|
||||
volatile uint32_t XIP_READ_WRITE;
|
||||
volatile uint32_t XIP_READ;
|
||||
@ -421,4 +421,4 @@ inline uint32_t get_apb3spi_xip_read_data(volatile apb3spi_t* reg){
|
||||
return (reg->XIP_READ >> 0) & 0xff;
|
||||
}
|
||||
|
||||
#endif /* _BSP_APB3SPI_H */
|
||||
#endif /* _BSP_APB3SPI_H */
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct __attribute((__packed__)) {
|
||||
typedef struct {
|
||||
volatile uint32_t PIXEL;
|
||||
volatile uint32_t CONTROL;
|
||||
volatile uint32_t STATUS;
|
||||
@ -157,4 +157,4 @@ inline void set_camera_ip_frame_finished_irq_pend(volatile camera_t* reg, uint8_
|
||||
reg->IP = (reg->IP & ~(0x1U << 1)) | (value << 1);
|
||||
}
|
||||
|
||||
#endif /* _BSP_CAMERA_H */
|
||||
#endif /* _BSP_CAMERA_H */
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct __attribute((__packed__)) {
|
||||
typedef struct {
|
||||
volatile uint32_t CONTROL;
|
||||
volatile uint32_t STATUS;
|
||||
volatile uint32_t IE;
|
||||
@ -451,4 +451,4 @@ inline void set_dma_ch1_dst_addr_inc_dst_stride(volatile dma_t* reg, uint32_t va
|
||||
reg->CH1_DST_ADDR_INC = (reg->CH1_DST_ADDR_INC & ~(0xfffffU << 12)) | (value << 12);
|
||||
}
|
||||
|
||||
#endif /* _BSP_DMA_H */
|
||||
#endif /* _BSP_DMA_H */
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct __attribute((__packed__)) {
|
||||
typedef struct {
|
||||
volatile uint32_t VALUE;
|
||||
volatile uint32_t WRITE;
|
||||
volatile uint32_t WRITEENABLE;
|
||||
@ -116,4 +116,4 @@ inline uint32_t get_gpio_boot_sel_bootSel(volatile gpio_t* reg){
|
||||
return (reg->BOOT_SEL >> 0) & 0x7;
|
||||
}
|
||||
|
||||
#endif /* _BSP_GPIO_H */
|
||||
#endif /* _BSP_GPIO_H */
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct __attribute((__packed__)) {
|
||||
typedef struct {
|
||||
volatile uint32_t LEFT_CH;
|
||||
volatile uint32_t RIGHT_CH;
|
||||
volatile uint32_t CONTROL;
|
||||
@ -215,4 +215,4 @@ inline uint32_t get_i2s_ip_right_sample_avail(volatile i2s_t* reg){
|
||||
return (reg->IP >> 1) & 0x1;
|
||||
}
|
||||
|
||||
#endif /* _BSP_I2S_H */
|
||||
#endif /* _BSP_I2S_H */
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct __attribute((__packed__)) {
|
||||
typedef struct {
|
||||
volatile uint32_t PRESCALER;
|
||||
volatile uint32_t T0_CTRL;
|
||||
volatile uint32_t T0_OVERFLOW;
|
||||
@ -138,4 +138,4 @@ inline uint32_t get_timercounter_t1_value(volatile timercounter_t* reg){
|
||||
return (reg->T1_VALUE >> 0) & 0xffffffff;
|
||||
}
|
||||
|
||||
#endif /* _BSP_TIMERCOUNTER_H */
|
||||
#endif /* _BSP_TIMERCOUNTER_H */
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct __attribute((__packed__)) {
|
||||
typedef struct {
|
||||
volatile uint32_t RX_TX_REG;
|
||||
volatile uint32_t INT_CTRL_REG;
|
||||
volatile uint32_t CLK_DIVIDER_REG;
|
||||
@ -233,4 +233,4 @@ inline void set_uart_status_reg_clear_break(volatile uart_t* reg, uint8_t value)
|
||||
reg->STATUS_REG = (reg->STATUS_REG & ~(0x1U << 11)) | (value << 11);
|
||||
}
|
||||
|
||||
#endif /* _BSP_UART_H */
|
||||
#endif /* _BSP_UART_H */
|
||||
|
Loading…
Reference in New Issue
Block a user