2023-06-29 23:29:39 -04:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "soc/twai_periph.h"
|
|
|
|
#include "soc/gpio_sig_map.h"
|
|
|
|
|
|
|
|
const twai_controller_signal_conn_t twai_controller_periph_signals = {
|
2023-10-19 02:43:17 -04:00
|
|
|
.controllers = {
|
|
|
|
[0] = {
|
|
|
|
.module = PERIPH_TWAI0_MODULE,
|
|
|
|
.irq_id = ETS_TWAI0_INTR_SOURCE,
|
|
|
|
.tx_sig = TWAI0_TX_PAD_OUT_IDX,
|
|
|
|
.rx_sig = TWAI0_RX_PAD_IN_IDX,
|
|
|
|
.bus_off_sig = TWAI0_BUS_OFF_ON_PAD_OUT_IDX,
|
|
|
|
.clk_out_sig = TWAI0_CLKOUT_PAD_OUT_IDX,
|
|
|
|
.stand_by_sig = TWAI0_STANDBY_PAD_OUT_IDX,
|
|
|
|
},
|
|
|
|
[1] = {
|
|
|
|
.module = PERIPH_TWAI1_MODULE,
|
|
|
|
.irq_id = ETS_TWAI1_INTR_SOURCE,
|
|
|
|
.tx_sig = TWAI1_TX_PAD_OUT_IDX,
|
|
|
|
.rx_sig = TWAI1_RX_PAD_IN_IDX,
|
|
|
|
.bus_off_sig = TWAI1_BUS_OFF_ON_PAD_OUT_IDX,
|
|
|
|
.clk_out_sig = TWAI1_CLKOUT_PAD_OUT_IDX,
|
|
|
|
.stand_by_sig = TWAI1_STANDBY_PAD_OUT_IDX,
|
|
|
|
},
|
|
|
|
[2] = {
|
|
|
|
.module = PERIPH_TWAI2_MODULE,
|
|
|
|
.irq_id = ETS_TWAI2_INTR_SOURCE,
|
|
|
|
.tx_sig = TWAI2_TX_PAD_OUT_IDX,
|
|
|
|
.rx_sig = TWAI2_RX_PAD_IN_IDX,
|
|
|
|
.bus_off_sig = TWAI2_BUS_OFF_ON_PAD_OUT_IDX,
|
|
|
|
.clk_out_sig = TWAI2_CLKOUT_PAD_OUT_IDX,
|
|
|
|
.stand_by_sig = TWAI2_STANDBY_PAD_OUT_IDX,
|
|
|
|
}
|
|
|
|
}
|
2023-06-29 23:29:39 -04:00
|
|
|
};
|