1 // Copyright 2020 Espressif Systems (Shanghai) PTE LTD 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 #include "soc/rmt_periph.h" 16 #include "soc/gpio_sig_map.h" 17 #include "soc/soc.h" 18 19 const rmt_signal_conn_t rmt_periph_signals = { 20 .module = PERIPH_RMT_MODULE, 21 .irq = ETS_RMT_INTR_SOURCE, 22 .channels = { 23 [0] = { 24 .tx_sig = RMT_SIG_OUT0_IDX, 25 .rx_sig = RMT_SIG_IN0_IDX 26 }, 27 [1] = { 28 .tx_sig = RMT_SIG_OUT1_IDX, 29 .rx_sig = RMT_SIG_IN1_IDX 30 }, 31 [2] = { 32 .tx_sig = RMT_SIG_OUT2_IDX, 33 .rx_sig = RMT_SIG_IN2_IDX 34 }, 35 [3] = { 36 .tx_sig = RMT_SIG_OUT3_IDX, 37 .rx_sig = RMT_SIG_IN3_IDX 38 }, 39 [4] = { 40 .tx_sig = RMT_SIG_OUT4_IDX, 41 .rx_sig = RMT_SIG_IN4_IDX 42 }, 43 [5] = { 44 .tx_sig = RMT_SIG_OUT5_IDX, 45 .rx_sig = RMT_SIG_IN5_IDX 46 }, 47 [6] = { 48 .tx_sig = RMT_SIG_OUT6_IDX, 49 .rx_sig = RMT_SIG_IN6_IDX 50 }, 51 [7] = { 52 .tx_sig = RMT_SIG_OUT7_IDX, 53 .rx_sig = RMT_SIG_IN7_IDX 54 } 55 } 56 }; 57