f1.h 518 B

1234567891011121314151617181920
  1. #include "../stm32/f1.h"
  2. #undef CORTEX_M3
  3. #define RISCV 1
  4. #undef FLASH_PAGE_SIZE
  5. extern unsigned int FLASH_PAGE_SIZE;
  6. /* On reset, SYSCLK=HSI at 8MHz. SYSCLK runs at 1MHz. */
  7. void early_fatal(int blinks) __attribute__((noreturn));
  8. #define early_delay_ms(ms) (delay_ticks((ms)*1000))
  9. #define early_delay_us(us) (delay_ticks((us)*1))
  10. #undef SYSCLK_MHZ
  11. #define SYSCLK_MHZ 144
  12. #define AHB_MHZ (SYSCLK_MHZ / 1) /* 144MHz */
  13. #define APB1_MHZ (SYSCLK_MHZ / 2) /* 72MHz */
  14. #define APB2_MHZ (SYSCLK_MHZ / 2) /* 72MHz */