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.
14 lines
526 B
14 lines
526 B
#pragma once
|
|
#include <stdint.h>
|
|
#include "driver/timer.h"
|
|
|
|
#define timer_group0_interval_num 10000
|
|
// #define timer_group1_interval_num 5
|
|
#define timer_interval_s (uint32_t)1000000
|
|
#define timer_interval_ms (uint32_t)1000
|
|
#define timer_interval_us (uint32_t)1
|
|
#define kbluetooth_baundrate_one_packet_delay_ms 200
|
|
|
|
void timer_set_pause_and_counter_zero(int group, int timer);
|
|
void port_timer_delay_ms(uint64_t delay);
|
|
void timer_group_init(int group, int timer, bool auto_reload, int timer_interval, uint32_t timer_unit_time);
|