clock.h 338 B

1234567891011121314
  1. #ifndef _CLOCK_H__
  2. #define _CLOCK_H__
  3. #include <stdint.h>
  4. void delay_us(uint32_t us);
  5. uint32_t get_sys_clock(void);
  6. uint32_t get_ahb_clock(void);
  7. uint32_t get_apb1_clock(void);
  8. uint32_t get_apb2_clock(void);
  9. uint32_t get_adc_clock(void);
  10. uint32_t get_apb1_timer_clock(void);
  11. uint32_t get_apb2_timer_clock(void);
  12. #endif /* _CLOCK_H__ */