1 // Copyright 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 // http://www.apache.org/licenses/LICENSE-2.0 7 // 8 // Unless required by applicable law or agreed to in writing, software 9 // distributed under the License is distributed on an "AS IS" BASIS, 10 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 // See the License for the specific language governing permissions and 12 // limitations under the License. 13 14 #pragma once 15 16 #include "soc/soc_caps.h" 17 #include "soc/uart_reg.h" 18 #include "soc/uart_struct.h" 19 #include "soc/periph_defs.h" 20 #include "soc/gpio_sig_map.h" 21 22 #ifdef __cplusplus 23 extern "C" { 24 #endif 25 26 typedef struct { 27 const uint8_t tx_sig; 28 const uint8_t rx_sig; 29 const uint8_t rts_sig; 30 const uint8_t cts_sig; 31 const uint8_t irq; 32 const periph_module_t module; 33 } uart_signal_conn_t; 34 35 extern const uart_signal_conn_t uart_periph_signal[SOC_UART_NUM]; 36 37 #ifdef __cplusplus 38 } 39 #endif 40