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.

12 lines
513 B

  1. #include <stdint.h>
  2. #include "driver/timer.h"
  3. #define timer_group0_interval_num 10000
  4. // #define timer_group1_interval_num 5
  5. #define timer_interval_s (uint32_t)1000000
  6. #define timer_interval_ms (uint32_t)1000
  7. #define timer_interval_us (uint32_t)1
  8. #define kbluetooth_baundrate_one_packet_delay_ms 200
  9. void timer_set_pause_and_counter_zero(int group, int timer);
  10. void port_timer_delay_ms(uint64_t delay);
  11. void timer_group_init(int group, int timer, bool auto_reload, int timer_interval, uint32_t timer_unit_time);