Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define PERIPH_BASE ((u32)0x40000000)
- #define AHBPERIPH_BASE (PERIPH_BASE + 0x20000)
- #define RCC_BASE (AHBPERIPH_BASE + 0x1000)
- /*------------------------ Reset and Clock Control ---------------------------*/
- typedef struct
- {
- vu32 CR;
- vu32 CFGR;
- vu32 CIR;
- vu32 APB2RSTR;
- vu32 APB1RSTR;
- vu32 AHBENR;
- vu32 APB2ENR;
- vu32 APB1ENR;
- vu32 BDCR;
- vu32 CSR;
- } RCC_TypeDef;
- #define RCC ((RCC_TypeDef *) RCC_BASE)
- typedef volatile unsigned long vu32;
Add Comment
Please, Sign In to add comment