arch: convert to using newly introduced integer sized types
Convert code to use u{8,16,32,64}_t and s{8,16,32,64}_t instead of C99 integer types. There are few places we dont convert over to the new types because of compatiability with ext/HALs or for ease of transition at this point. Fixup a few of the PRI formatters so we build with newlib. Jira: ZEP-2051 Change-Id: I7d2d3697cad04f20aaa8f6e77228f502cd9c8286 Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
99a7168b08
commit
bf53ebf2c8
85 changed files with 965 additions and 966 deletions
|
@ -66,58 +66,58 @@ enum {
|
|||
};
|
||||
|
||||
union __rcc_cr {
|
||||
uint32_t val;
|
||||
u32_t val;
|
||||
struct {
|
||||
uint32_t hsion :1 __packed;
|
||||
uint32_t hsirdy :1 __packed;
|
||||
uint32_t rsvd__2 :1 __packed;
|
||||
uint32_t hsitrim :5 __packed;
|
||||
uint32_t hsical :8 __packed;
|
||||
uint32_t hseon :1 __packed;
|
||||
uint32_t hserdy :1 __packed;
|
||||
uint32_t hsebyp :1 __packed;
|
||||
uint32_t csson :1 __packed;
|
||||
uint32_t rsvd__20_23 :4 __packed;
|
||||
uint32_t pllon :1 __packed;
|
||||
uint32_t pllrdy :1 __packed;
|
||||
uint32_t plli2son :1 __packed;
|
||||
uint32_t plli2srdy :1 __packed;
|
||||
uint32_t pllsaion :1 __packed;
|
||||
uint32_t pllsairdy :1 __packed;
|
||||
uint32_t rsvd__30_31 :2 __packed;
|
||||
u32_t hsion :1 __packed;
|
||||
u32_t hsirdy :1 __packed;
|
||||
u32_t rsvd__2 :1 __packed;
|
||||
u32_t hsitrim :5 __packed;
|
||||
u32_t hsical :8 __packed;
|
||||
u32_t hseon :1 __packed;
|
||||
u32_t hserdy :1 __packed;
|
||||
u32_t hsebyp :1 __packed;
|
||||
u32_t csson :1 __packed;
|
||||
u32_t rsvd__20_23 :4 __packed;
|
||||
u32_t pllon :1 __packed;
|
||||
u32_t pllrdy :1 __packed;
|
||||
u32_t plli2son :1 __packed;
|
||||
u32_t plli2srdy :1 __packed;
|
||||
u32_t pllsaion :1 __packed;
|
||||
u32_t pllsairdy :1 __packed;
|
||||
u32_t rsvd__30_31 :2 __packed;
|
||||
} bit;
|
||||
};
|
||||
|
||||
union __rcc_pllcfgr {
|
||||
uint32_t val;
|
||||
u32_t val;
|
||||
struct {
|
||||
uint32_t pllm :6 __packed;
|
||||
uint32_t plln :9 __packed;
|
||||
uint32_t rsvd__15 :1 __packed;
|
||||
uint32_t pllp :2 __packed;
|
||||
uint32_t rsvd__18_21 :4 __packed;
|
||||
uint32_t pllsrc :1 __packed;
|
||||
uint32_t rsvd__23 :1 __packed;
|
||||
uint32_t pllq :4 __packed;
|
||||
uint32_t rsvd__28_31 :4 __packed;
|
||||
u32_t pllm :6 __packed;
|
||||
u32_t plln :9 __packed;
|
||||
u32_t rsvd__15 :1 __packed;
|
||||
u32_t pllp :2 __packed;
|
||||
u32_t rsvd__18_21 :4 __packed;
|
||||
u32_t pllsrc :1 __packed;
|
||||
u32_t rsvd__23 :1 __packed;
|
||||
u32_t pllq :4 __packed;
|
||||
u32_t rsvd__28_31 :4 __packed;
|
||||
} bit;
|
||||
};
|
||||
|
||||
union __rcc_cfgr {
|
||||
uint32_t val;
|
||||
u32_t val;
|
||||
struct {
|
||||
uint32_t sw :2 __packed;
|
||||
uint32_t sws :2 __packed;
|
||||
uint32_t hpre :4 __packed;
|
||||
uint32_t rsvd__8_9 :2 __packed;
|
||||
uint32_t ppre1 :3 __packed;
|
||||
uint32_t ppre2 :3 __packed;
|
||||
uint32_t rtcpre :5 __packed;
|
||||
uint32_t mco1 :2 __packed;
|
||||
uint32_t i2sscr :1 __packed;
|
||||
uint32_t mco1pre :3 __packed;
|
||||
uint32_t mco2pre :3 __packed;
|
||||
uint32_t mco2 :2 __packed;
|
||||
u32_t sw :2 __packed;
|
||||
u32_t sws :2 __packed;
|
||||
u32_t hpre :4 __packed;
|
||||
u32_t rsvd__8_9 :2 __packed;
|
||||
u32_t ppre1 :3 __packed;
|
||||
u32_t ppre2 :3 __packed;
|
||||
u32_t rtcpre :5 __packed;
|
||||
u32_t mco1 :2 __packed;
|
||||
u32_t i2sscr :1 __packed;
|
||||
u32_t mco1pre :3 __packed;
|
||||
u32_t mco2pre :3 __packed;
|
||||
u32_t mco2 :2 __packed;
|
||||
} bit;
|
||||
};
|
||||
|
||||
|
@ -125,35 +125,35 @@ struct stm32f4x_rcc {
|
|||
union __rcc_cr cr;
|
||||
union __rcc_pllcfgr pllcfgr;
|
||||
union __rcc_cfgr cfgr;
|
||||
uint32_t cir;
|
||||
uint32_t ahb1rstr;
|
||||
uint32_t ahb2rstr;
|
||||
uint32_t ahb3rstr;
|
||||
uint32_t rsvd0;
|
||||
uint32_t apb1rstr;
|
||||
uint32_t apb2rstr;
|
||||
uint32_t rsvd1[2];
|
||||
uint32_t ahb1enr;
|
||||
uint32_t ahb2enr;
|
||||
uint32_t ahb3enr;
|
||||
uint32_t rsvd2;
|
||||
uint32_t apb1enr;
|
||||
uint32_t apb2enr;
|
||||
uint32_t rsvd3[2];
|
||||
uint32_t ahb1lpenr;
|
||||
uint32_t ahb2lpenr;
|
||||
uint32_t ahb3lpenr;
|
||||
uint32_t rsvd4;
|
||||
uint32_t apb1lpenr;
|
||||
uint32_t apb2lpenr;
|
||||
uint32_t rsvd5[2];
|
||||
uint32_t bdcr;
|
||||
uint32_t csr;
|
||||
uint32_t rsvd6[2];
|
||||
uint32_t sscgr;
|
||||
uint32_t plli2scfgr;
|
||||
uint32_t rsvd7;
|
||||
uint32_t dckcfgr;
|
||||
u32_t cir;
|
||||
u32_t ahb1rstr;
|
||||
u32_t ahb2rstr;
|
||||
u32_t ahb3rstr;
|
||||
u32_t rsvd0;
|
||||
u32_t apb1rstr;
|
||||
u32_t apb2rstr;
|
||||
u32_t rsvd1[2];
|
||||
u32_t ahb1enr;
|
||||
u32_t ahb2enr;
|
||||
u32_t ahb3enr;
|
||||
u32_t rsvd2;
|
||||
u32_t apb1enr;
|
||||
u32_t apb2enr;
|
||||
u32_t rsvd3[2];
|
||||
u32_t ahb1lpenr;
|
||||
u32_t ahb2lpenr;
|
||||
u32_t ahb3lpenr;
|
||||
u32_t rsvd4;
|
||||
u32_t apb1lpenr;
|
||||
u32_t apb2lpenr;
|
||||
u32_t rsvd5[2];
|
||||
u32_t bdcr;
|
||||
u32_t csr;
|
||||
u32_t rsvd6[2];
|
||||
u32_t sscgr;
|
||||
u32_t plli2scfgr;
|
||||
u32_t rsvd7;
|
||||
u32_t dckcfgr;
|
||||
};
|
||||
|
||||
#endif /* _STM32F4X_CLOCK_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue