mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
45 lines
1.1 KiB
C
45 lines
1.1 KiB
C
/*
|
|
* SPDX-FileCopyrightText: 2019-2022 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include "soc/soc_caps.h"
|
|
#include "soc/periph_defs.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#if SOC_MCPWM_SUPPORTED
|
|
typedef struct {
|
|
struct {
|
|
const periph_module_t module; // Peripheral module
|
|
const int irq_id;
|
|
struct {
|
|
struct {
|
|
const uint32_t pwm_sig;
|
|
} generators[SOC_MCPWM_GENERATORS_PER_OPERATOR];
|
|
} operators[SOC_MCPWM_OPERATORS_PER_GROUP];
|
|
struct {
|
|
const uint32_t fault_sig;
|
|
} gpio_faults[SOC_MCPWM_GPIO_FAULTS_PER_GROUP];
|
|
struct {
|
|
const uint32_t cap_sig;
|
|
} captures[SOC_MCPWM_CAPTURE_CHANNELS_PER_TIMER];
|
|
struct {
|
|
const uint32_t sync_sig;
|
|
} gpio_synchros[SOC_MCPWM_GPIO_SYNCHROS_PER_GROUP];
|
|
} groups[SOC_MCPWM_GROUPS];
|
|
} mcpwm_signal_conn_t;
|
|
|
|
extern const mcpwm_signal_conn_t mcpwm_periph_signals;
|
|
#endif // SOC_MCPWM_SUPPORTED
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|