mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
5c383d7b73
Fix dependency tree so that lwip doesn't depend on any specific network interface component. Network interface drivers shall depend on esp_netif. esp_netif shall depend on lwip (but not on any specific interface driver) -- it optionally depends on vfs and esp_eth (need ethernet header for L2/bridge mode)
37 lines
1.2 KiB
C
37 lines
1.2 KiB
C
/*
|
|
* SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include "esp_netif.h"
|
|
#include "lwip/esp_netif_net_stack.h"
|
|
|
|
//
|
|
// Purpose of this module is to provide
|
|
// - general esp-netif definitions of default objects for STA, AP, ETH
|
|
// - default init / create functions for basic default interfaces
|
|
//
|
|
|
|
|
|
//
|
|
// Default configuration of common interfaces, such as STA, AP, ETH
|
|
//
|
|
const esp_netif_inherent_config_t _g_esp_netif_inherent_sta_config = ESP_NETIF_INHERENT_DEFAULT_WIFI_STA();
|
|
|
|
#ifdef CONFIG_ESP_WIFI_SOFTAP_SUPPORT
|
|
const esp_netif_ip_info_t _g_esp_netif_soft_ap_ip = {
|
|
.ip = { .addr = ESP_IP4TOADDR( 192, 168, 4, 1) },
|
|
.gw = { .addr = ESP_IP4TOADDR( 192, 168, 4, 1) },
|
|
.netmask = { .addr = ESP_IP4TOADDR( 255, 255, 255, 0) },
|
|
};
|
|
|
|
const esp_netif_inherent_config_t _g_esp_netif_inherent_ap_config = ESP_NETIF_INHERENT_DEFAULT_WIFI_AP();
|
|
#endif
|
|
|
|
const esp_netif_inherent_config_t _g_esp_netif_inherent_eth_config = ESP_NETIF_INHERENT_DEFAULT_ETH();
|
|
|
|
const esp_netif_inherent_config_t _g_esp_netif_inherent_ppp_config = ESP_NETIF_INHERENT_DEFAULT_PPP();
|
|
|
|
const esp_netif_inherent_config_t _g_esp_netif_inherent_slip_config = ESP_NETIF_INHERENT_DEFAULT_SLIP();
|