mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-04 11:00:58 +02:00
return ESP_ERR_NOT_SUPPORTED if these signals are required from user but not available in SOC
32 lines
820 B
C
32 lines
820 B
C
/*
|
|
* SPDX-FileCopyrightText: 2024-2025 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include "soc/twai_periph.h"
|
|
#include "soc/gpio_sig_map.h"
|
|
|
|
const twai_signal_conn_t twai_periph_signals[2] = {
|
|
[0] = {
|
|
.module_name = "TWAI0",
|
|
.irq_id = ETS_TWAI0_INTR_SOURCE,
|
|
.timer_irq_id = ETS_TWAI0_TIMER_INTR_SOURCE,
|
|
.tx_sig = TWAI0_TX_IDX,
|
|
.rx_sig = TWAI0_RX_IDX,
|
|
.bus_off_sig = -1,
|
|
.clk_out_sig = -1,
|
|
.stand_by_sig = -1,
|
|
},
|
|
[1] = {
|
|
.module_name = "TWAI1",
|
|
.irq_id = ETS_TWAI1_INTR_SOURCE,
|
|
.timer_irq_id = ETS_TWAI1_TIMER_INTR_SOURCE,
|
|
.tx_sig = TWAI1_TX_IDX,
|
|
.rx_sig = TWAI1_RX_IDX,
|
|
.bus_off_sig = -1,
|
|
.clk_out_sig = -1,
|
|
.stand_by_sig = -1,
|
|
},
|
|
};
|