1 // Copyright 2015-2019 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/uart_periph.h" 16 17 /* 18 Bunch of constants for every UART peripheral: GPIO signals, irqs, hw addr of registers etc 19 */ 20 const uart_signal_conn_t uart_periph_signal[SOC_UART_NUM] = { 21 { 22 .tx_sig = U0TXD_OUT_IDX, 23 .rx_sig = U0RXD_IN_IDX, 24 .rts_sig = U0RTS_OUT_IDX, 25 .cts_sig = U0CTS_IN_IDX, 26 .irq = ETS_UART0_INTR_SOURCE, 27 .module = PERIPH_UART0_MODULE, 28 }, 29 { 30 .tx_sig = U1TXD_OUT_IDX, 31 .rx_sig = U1RXD_IN_IDX, 32 .rts_sig = U1RTS_OUT_IDX, 33 .cts_sig = U1CTS_IN_IDX, 34 .irq = ETS_UART1_INTR_SOURCE, 35 .module = PERIPH_UART1_MODULE, 36 }, 37 { 38 .tx_sig = U2TXD_OUT_IDX, 39 .rx_sig = U2RXD_IN_IDX, 40 .rts_sig = U2RTS_OUT_IDX, 41 .cts_sig = U2CTS_IN_IDX, 42 .irq = ETS_UART2_INTR_SOURCE, 43 .module = PERIPH_UART2_MODULE, 44 }, 45 }; 46