Skip to content

Commit c088f44

Browse files
committed
feat(eppp): Make UART port number configurable
1 parent 46e40a9 commit c088f44

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

components/esp_wifi_remote/Kconfig.rpc.in

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ endchoice
1616

1717
if ESP_WIFI_REMOTE_LIBRARY_EPPP
1818

19+
config ESP_WIFI_REMOTE_EPPP_UART_PORT
20+
int "UART port number"
21+
default 1
22+
range 0 3
23+
help
24+
UART Port number.
25+
1926
config ESP_WIFI_REMOTE_EPPP_UART_TX_PIN
2027
int "TXD Pin Number"
2128
default 10

components/esp_wifi_remote/eppp/eppp_init.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ __attribute__((weak)) esp_netif_t *wifi_remote_eppp_init(eppp_type_t role)
1616
config.transport = EPPP_TRANSPORT_UART;
1717
config.uart.tx_io = CONFIG_ESP_WIFI_REMOTE_EPPP_UART_TX_PIN;
1818
config.uart.rx_io = CONFIG_ESP_WIFI_REMOTE_EPPP_UART_RX_PIN;
19+
config.uart.port = CONFIG_ESP_WIFI_REMOTE_EPPP_UART_PORT;
1920
config.ppp.netif_description = CONFIG_ESP_WIFI_REMOTE_EPPP_NETIF_DESCRIPTION;
2021
config.ppp.netif_prio = CONFIG_ESP_WIFI_REMOTE_EPPP_NETIF_PRIORITY;
2122
return eppp_open(role, &config, portMAX_DELAY);

0 commit comments

Comments
 (0)