Guest User

Untitled

a guest
Jul 19th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. #define PERIPH_BASE ((u32)0x40000000)
  2. #define AHBPERIPH_BASE (PERIPH_BASE + 0x20000)
  3. #define RCC_BASE (AHBPERIPH_BASE + 0x1000)
  4.  
  5. /*------------------------ Reset and Clock Control ---------------------------*/
  6. typedef struct
  7. {
  8. vu32 CR;
  9. vu32 CFGR;
  10. vu32 CIR;
  11. vu32 APB2RSTR;
  12. vu32 APB1RSTR;
  13. vu32 AHBENR;
  14. vu32 APB2ENR;
  15. vu32 APB1ENR;
  16. vu32 BDCR;
  17. vu32 CSR;
  18. } RCC_TypeDef;
  19.  
  20. #define RCC ((RCC_TypeDef *) RCC_BASE)
  21.  
  22. typedef volatile unsigned long vu32;
Add Comment
Please, Sign In to add comment