added GPRS transport UART configuration
This commit is contained in:
parent
fef822aea7
commit
297cb35e83
7
Kconfig
7
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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user