diff --git a/Kconfig b/Kconfig index a8b1b06..c20e180 100644 --- a/Kconfig +++ b/Kconfig @@ -501,6 +501,13 @@ menu "WebGUIApp" Pin to unlock the SIM menu "UART Configuration" + config MODEM_UART_PORT_NUM + int "Modem UART port number" + default 1 + range 0 2 + help + UART port number dedicated to modem + config MODEM_UART_TX_PIN int "TXD Pin Number" default 17 diff --git a/include/NetTransport.h b/include/NetTransport.h index 528af3b..3062f36 100644 --- a/include/NetTransport.h +++ b/include/NetTransport.h @@ -93,9 +93,6 @@ void NextDefaultNetIF(void); void PrintDefaultNetIF(void); void GetDefaultNetIFName(char *name); -void InitRS485(void); -void RS485Task(void *pvParameter); - void PrintNetifs(void); void GotEthIF(void); diff --git a/src/GSMTransport.c b/src/GSMTransport.c index aeea2a0..ac9002b 100644 --- a/src/GSMTransport.c +++ b/src/GSMTransport.c @@ -176,6 +176,7 @@ static void GSMInitTask(void *pvParameter) /* Configure the DTE */ esp_modem_dte_config_t dte_config = ESP_MODEM_DTE_DEFAULT_CONFIG(); /* setup UART specific configuration based on kconfig options */ + //dte_config.uart_config.port_num = CONFIG_MODEM_UART_PORT_NUM; dte_config.uart_config.tx_io_num = CONFIG_MODEM_UART_TX_PIN; dte_config.uart_config.rx_io_num = CONFIG_MODEM_UART_RX_PIN; dte_config.uart_config.rts_io_num = CONFIG_MODEM_UART_RTS_PIN;