Files
esp-idf/components/esp_hal_timg/include/hal/timer_periph.h
T
morris 3ca5ff43a2 feat(gptimer): move gptimer retention info from esp_hal_timg to esp_driver_gptimer
- Add gptimer_priv.h with retention type definitions
- Create timer_periph.c files for 8 chips in esp_driver_gptimer
- Remove retention code from esp_hal_timg timer_periph.c (keep signals)
2026-04-21 13:36:17 +08:00

32 lines
793 B
C

/*
* SPDX-FileCopyrightText: 2019-2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include <stdint.h>
#include <stddef.h>
#include "soc/timer_group_reg.h"
#include "soc/timer_group_struct.h"
#include "soc/soc_caps.h"
#include "soc/periph_defs.h"
#include "hal/timer_ll.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
const char *module_name; // Module name
const shared_periph_module_t parent_module; // GPTimer is a submodule under the timer group
const int irq_id; // interrupt source ID
} soc_timg_gptimer_signal_desc_t;
extern const soc_timg_gptimer_signal_desc_t soc_timg_gptimer_signals[TIMG_LL_GET(INST_NUM)][TIMG_LL_GET(GPTIMERS_PER_INST)];
#ifdef __cplusplus
}
#endif