mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-15 19:34:03 +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:
@@ -144,7 +144,7 @@ static bool test_clear_bits;
|
||||
static void IRAM_ATTR event_group_isr(void *arg)
|
||||
{
|
||||
portBASE_TYPE task_woken = pdFALSE;
|
||||
timer_group_intr_clr_in_isr(TIMER_GROUP_0, TIMER_0);
|
||||
timer_group_clr_intr_status_in_isr(TIMER_GROUP_0, TIMER_0);
|
||||
timer_group_enable_alarm_in_isr(TIMER_GROUP_0, xPortGetCoreID());
|
||||
|
||||
if(test_set_bits){
|
||||
|
||||
Reference in New Issue
Block a user