mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-16 04:22:22 +00:00
feat(timer): refator timer group driver
1. add hal and low-level layer for timer group 2. add callback functions to handle interrupt 3. add timer deinit function 4. add timer spinlock take function
This commit is contained in:
@@ -103,7 +103,7 @@ static void receiver_task (void* arg){
|
||||
static void IRAM_ATTR sender_ISR (void *arg)
|
||||
{
|
||||
int curcore = xPortGetCoreID();
|
||||
timer_group_intr_clr_in_isr(TIMER_GROUP_0, curcore);
|
||||
timer_group_clr_intr_status_in_isr(TIMER_GROUP_0, curcore);
|
||||
timer_group_set_counter_enable_in_isr(TIMER_GROUP_0, curcore, TIMER_PAUSE);
|
||||
//Re-enable alarm
|
||||
timer_group_enable_alarm_in_isr(TIMER_GROUP_0, curcore);
|
||||
|
||||
Reference in New Issue
Block a user