You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
498 B

2 years ago
  1. #pragma once
  2. #include <stdint.h>
  3. #include "basic_h/basic.hpp"
  4. extern "C" {
  5. // ΢���ӳٶ�ʱ����ע������ʱ��ʱ����Ҫ���������ĵ���������
  6. // http://192.168.1.3:3000/zwikipedia/iflytop_wikipedia/src/branch/master/doc/stm32cubemx_us_timer.md
  7. typedef struct {
  8. zchip_tim_t* usdleaytim;
  9. } zchip_clock_cfg_t;
  10. uint32_t zchip_clock_init(zchip_clock_cfg_t* cfg);
  11. uint32_t zchip_clock_get_ticket(void);
  12. uint32_t zchip_clock_hasspassed(uint32_t ticket);
  13. void zchip_clock_early_delayus(uint32_t us);
  14. }