f4_regs.h 568 B

12345678910111213141516171819
  1. #include "../stm32/f1_regs.h"
  2. #define RCC_CFGR_PLLRANGE_GT72MHZ (1u<<31)
  3. #define RCC_CFGR_PLLMUL_18 ((uint32_t)0x20040000)
  4. #define RCC_CFGR_USBPSC_3 ((uint32_t)0x08400000)
  5. #define RCC_CFGR_HSE_PREDIV2 (1u<<17)
  6. #define RCC_CFGR_APB2PSC_2 (4u<<11)
  7. #define RCC_CFGR_APB1PSC_2 (4u<< 8)
  8. #define RCC_PLL (&rcc->cfgr2)
  9. #define RCC_PLL_PLLCFGEN (1u<<31)
  10. #define RCC_PLL_FREF_MASK (7u<<24)
  11. #define RCC_PLL_FREF_8M (2u<<24)
  12. static volatile uint32_t * const RCC_MISC2 = (uint32_t *)(RCC_BASE + 0x54);
  13. #define RCC_MISC2_AUTOSTEP_EN (3u<< 4)
  14. #define TIM_CR1_PMEN (1u<<10)