Skip to content

Commit

Permalink
feat(eppp): Make UART port number configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
david-cermak committed Oct 30, 2024
1 parent 46e40a9 commit c088f44
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions components/esp_wifi_remote/Kconfig.rpc.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ endchoice

if ESP_WIFI_REMOTE_LIBRARY_EPPP

config ESP_WIFI_REMOTE_EPPP_UART_PORT
int "UART port number"
default 1
range 0 3
help
UART Port number.

config ESP_WIFI_REMOTE_EPPP_UART_TX_PIN
int "TXD Pin Number"
default 10
Expand Down
1 change: 1 addition & 0 deletions components/esp_wifi_remote/eppp/eppp_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ __attribute__((weak)) esp_netif_t *wifi_remote_eppp_init(eppp_type_t role)
config.transport = EPPP_TRANSPORT_UART;
config.uart.tx_io = CONFIG_ESP_WIFI_REMOTE_EPPP_UART_TX_PIN;
config.uart.rx_io = CONFIG_ESP_WIFI_REMOTE_EPPP_UART_RX_PIN;
config.uart.port = CONFIG_ESP_WIFI_REMOTE_EPPP_UART_PORT;
config.ppp.netif_description = CONFIG_ESP_WIFI_REMOTE_EPPP_NETIF_DESCRIPTION;
config.ppp.netif_prio = CONFIG_ESP_WIFI_REMOTE_EPPP_NETIF_PRIORITY;
return eppp_open(role, &config, portMAX_DELAY);
Expand Down

0 comments on commit c088f44

Please sign in to comment.