clock.h 443 B

12345678910111213141516
  1. #ifndef _CLOCK_H__
  2. #define _CLOCK_H__
  3. #include "libs/shark_types.h"
  4. void delay_us(u32 us);
  5. void task_ticks_enable(void);
  6. void task_udelay(u32 delay); /* 精确延时, 必须在bsp_init后才能使用 */
  7. uint32_t get_sys_clock(void);
  8. uint32_t get_ahb_clock(void);
  9. uint32_t get_apb1_clock(void);
  10. uint32_t get_apb2_clock(void);
  11. uint32_t get_adc_clock(void);
  12. uint32_t get_apb1_timer_clock(void);
  13. uint32_t get_apb2_timer_clock(void);
  14. #endif /* _CLOCK_H__ */