timer_periph.h 658 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * SPDX-FileCopyrightText: 2019-2021 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #pragma once
  7. #include <stdint.h>
  8. #include "soc/timer_group_reg.h"
  9. #include "soc/timer_group_struct.h"
  10. #include "soc/soc_caps.h"
  11. #include "soc/periph_defs.h"
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. typedef struct {
  16. struct {
  17. const periph_module_t module; // Peripheral module
  18. const int timer_irq_id[SOC_TIMER_GROUP_TIMERS_PER_GROUP]; // interrupt source ID
  19. } groups[SOC_TIMER_GROUPS];
  20. } timer_group_signal_conn_t;
  21. extern const timer_group_signal_conn_t timer_group_periph_signals;
  22. #ifdef __cplusplus
  23. }
  24. #endif