问题遇到的现象和发生背景
如图所示,结构体数组的地址回连续不?怎么访问结构体数组的成员?
问题相关代码,请勿粘贴截图
typedef struct {
__IOM uint32_t PCR;
}PCR_Type;
typedef struct {
__O uint32_t VERID; /*< * PORTA Version Number Register offset 0x0 * >*/
__IM uint32_t RESERVED; /*< * reserved offset 0x4 * >*/
__IOM uint32_t GLBDAT; /*< * Global Pin Data Register offset 0x8 * >*/
__IM uint32_t GLBCTL; /*< * Global Pin Control Register offset 0xC * >*/
PCR_Type pcr[18]; /*< * PORT Pin Control Registe offset 40* >*/
}PORT_Type;