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.

13 lines
526 B

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