mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-09-25 14:20:54 +02:00
Merge pull request #885 from david-cermak/fix/eppp_uart_channels
[eppp]: Fix getting context for channel API
This commit is contained in:
@@ -3,6 +3,6 @@ commitizen:
|
|||||||
bump_message: 'bump(eppp): $current_version -> $new_version'
|
bump_message: 'bump(eppp): $current_version -> $new_version'
|
||||||
pre_bump_hooks: python ../../ci/changelog.py eppp_link
|
pre_bump_hooks: python ../../ci/changelog.py eppp_link
|
||||||
tag_format: eppp-v$version
|
tag_format: eppp-v$version
|
||||||
version: 1.1.0
|
version: 1.1.1
|
||||||
version_files:
|
version_files:
|
||||||
- idf_component.yml
|
- idf_component.yml
|
||||||
|
@@ -1,5 +1,12 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [1.1.1](https://github.com/espressif/esp-protocols/commits/eppp-v1.1.1)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
- Fix getting context for channel API ([94563cdc](https://github.com/espressif/esp-protocols/commit/94563cdc))
|
||||||
|
- Cover more combinations in build tests ([e0b8de8f](https://github.com/espressif/esp-protocols/commit/e0b8de8f))
|
||||||
|
|
||||||
## [1.1.0](https://github.com/espressif/esp-protocols/commits/eppp-v1.1.0)
|
## [1.1.0](https://github.com/espressif/esp-protocols/commits/eppp-v1.1.0)
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
@@ -157,6 +157,8 @@ static void process_packet(esp_netif_t *netif, uart_port_t uart_port, size_t ava
|
|||||||
esp_netif_receive(netif, in_buf + buf_start + sizeof(struct header), payload_size, NULL);
|
esp_netif_receive(netif, in_buf + buf_start + sizeof(struct header), payload_size, NULL);
|
||||||
} else {
|
} else {
|
||||||
#ifdef CONFIG_EPPP_LINK_CHANNELS_SUPPORT
|
#ifdef CONFIG_EPPP_LINK_CHANNELS_SUPPORT
|
||||||
|
struct eppp_handle *handle = esp_netif_get_io_driver(netif);
|
||||||
|
struct eppp_uart *h = __containerof(handle, struct eppp_uart, parent);
|
||||||
if (h->parent.channel_rx) {
|
if (h->parent.channel_rx) {
|
||||||
h->parent.channel_rx(netif, channel, in_buf + buf_start + sizeof(struct header), payload_size);
|
h->parent.channel_rx(netif, channel, in_buf + buf_start + sizeof(struct header), payload_size);
|
||||||
}
|
}
|
||||||
|
4
components/eppp_link/examples/host/sdkconfig.ci.1
Normal file
4
components/eppp_link/examples/host/sdkconfig.ci.1
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
CONFIG_IDF_TARGET="esp32s3"
|
||||||
|
CONFIG_EPPP_LINK_DEVICE_SPI=y
|
||||||
|
CONFIG_EPPP_LINK_CHANNELS_SUPPORT=y
|
||||||
|
CONFIG_EPPP_LINK_USES_PPP=y
|
3
components/eppp_link/examples/host/sdkconfig.ci.2
Normal file
3
components/eppp_link/examples/host/sdkconfig.ci.2
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
CONFIG_IDF_TARGET="esp32c3"
|
||||||
|
CONFIG_EPPP_LINK_DEVICE_UART=y
|
||||||
|
CONFIG_EPPP_LINK_CHANNELS_SUPPORT=y
|
@@ -1,4 +1 @@
|
|||||||
CONFIG_LWIP_PPP_SUPPORT=y
|
|
||||||
CONFIG_LWIP_PPP_SERVER_SUPPORT=y
|
|
||||||
CONFIG_LWIP_PPP_VJ_HEADER_COMPRESSION=n
|
CONFIG_LWIP_PPP_VJ_HEADER_COMPRESSION=n
|
||||||
CONFIG_LWIP_PPP_DEBUG_ON=y
|
|
||||||
|
4
components/eppp_link/examples/slave/sdkconfig.ci.1
Normal file
4
components/eppp_link/examples/slave/sdkconfig.ci.1
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
CONFIG_IDF_TARGET="esp32s2"
|
||||||
|
CONFIG_EPPP_LINK_DEVICE_SPI=y
|
||||||
|
CONFIG_EPPP_LINK_CHANNELS_SUPPORT=y
|
||||||
|
CONFIG_LWIP_PPP_VJ_HEADER_COMPRESSION=n
|
4
components/eppp_link/examples/slave/sdkconfig.ci.2
Normal file
4
components/eppp_link/examples/slave/sdkconfig.ci.2
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
CONFIG_IDF_TARGET="esp32c2"
|
||||||
|
CONFIG_EPPP_LINK_DEVICE_UART=y
|
||||||
|
CONFIG_LWIP_PPP_VJ_HEADER_COMPRESSION=n
|
||||||
|
CONFIG_EPPP_LINK_USES_PPP=y
|
@@ -1,6 +1,3 @@
|
|||||||
CONFIG_LWIP_IP_FORWARD=y
|
CONFIG_LWIP_IP_FORWARD=y
|
||||||
CONFIG_LWIP_IPV4_NAPT=y
|
CONFIG_LWIP_IPV4_NAPT=y
|
||||||
CONFIG_LWIP_TCPIP_TASK_STACK_SIZE=4096
|
CONFIG_LWIP_TCPIP_TASK_STACK_SIZE=4096
|
||||||
CONFIG_LWIP_PPP_SUPPORT=y
|
|
||||||
CONFIG_LWIP_PPP_SERVER_SUPPORT=y
|
|
||||||
CONFIG_LWIP_PPP_VJ_HEADER_COMPRESSION=n
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
version: 1.1.0
|
version: 1.1.1
|
||||||
url: https://github.com/espressif/esp-protocols/tree/master/components/eppp_link
|
url: https://github.com/espressif/esp-protocols/tree/master/components/eppp_link
|
||||||
description: The component provides a general purpose PPP connectivity, typically used as WiFi-PPP router
|
description: The component provides a general purpose PPP connectivity, typically used as WiFi-PPP router
|
||||||
dependencies:
|
dependencies:
|
||||||
|
Reference in New Issue
Block a user