1 /* 2 * SPDX-FileCopyrightText: 2019-2022 Espressif Systems (Shanghai) CO LTD 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #pragma once 8 9 #include <stdint.h> 10 #include "soc/soc_caps.h" 11 #include "soc/periph_defs.h" 12 13 #ifdef __cplusplus 14 extern "C" { 15 #endif 16 17 typedef struct { 18 struct { 19 const periph_module_t module; // peripheral module 20 const int irq_id; // interrupt source ID 21 const int tx_sig; // TX signal ID in GPIO matrix 22 const int rx_sig; // RX signal ID in GPIO matrix 23 const int clk_out_sig; // CLK_OUT signal ID in GPIO matrix 24 const int bus_off_sig; // BUS_OFF status signal ID in GPIO matrix 25 const int stand_by_sig; // STAND_BY signal ID in GPIO matrix 26 } controllers[SOC_TWAI_CONTROLLER_NUM]; 27 } twai_controller_signal_conn_t; 28 29 extern const twai_controller_signal_conn_t twai_controller_periph_signals; 30 31 #ifdef __cplusplus 32 } 33 #endif 34