mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-06 22:58:55 +00:00
refactor(gptimer): clean up SOC capabilities for GPTIMER and Timer Group
- Remove GPTIMER and TIMG related definitions from soc_caps_full.h files - Move timer peripheral definitions to appropriate HAL layer files - Update references across components to use proper HAL abstractions - Consolidate timer group and GPTIMER capabilities organization - Ensure consistent timer configuration across all ESP32 variants This refactoring improves the separation of concerns between SOC capabilities and HAL implementations for timer-related functionality.
This commit is contained in:
@@ -22,7 +22,7 @@ void __real_esp_cpu_stall(int core_id);
|
||||
static void disable_all_wdts(void)
|
||||
{
|
||||
wdt_hal_context_t wdt0_context = {.inst = WDT_MWDT0, .mwdt_dev = &TIMERG0};
|
||||
#if SOC_MODULE_ATTR(TIMG, INST_NUM) >= 2
|
||||
#if TIMG_LL_GET(INST_NUM) >= 2
|
||||
wdt_hal_context_t wdt1_context = {.inst = WDT_MWDT1, .mwdt_dev = &TIMERG1};
|
||||
#endif
|
||||
|
||||
@@ -32,7 +32,7 @@ static void disable_all_wdts(void)
|
||||
wdt_hal_disable(&wdt0_context);
|
||||
wdt_hal_write_protect_enable(&wdt0_context);
|
||||
|
||||
#if SOC_MODULE_ATTR(TIMG, INST_NUM) >= 2
|
||||
#if TIMG_LL_GET(INST_NUM) >= 2
|
||||
//Interrupt WDT is the Main Watchdog Timer of Timer Group 1
|
||||
wdt_hal_write_protect_disable(&wdt1_context);
|
||||
wdt_hal_disable(&wdt1_context);
|
||||
|
||||
Reference in New Issue
Block a user