2019-06-28 10:47:34 -04:00
|
|
|
// Copyright 2015-2019 Espressif Systems (Shanghai) PTE LTD
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
|
|
|
|
#include "esp_netif.h"
|
|
|
|
#include "esp_wifi_default.h"
|
2019-10-23 10:47:16 -04:00
|
|
|
#if CONFIG_ETH_ENABLED
|
2019-06-28 10:47:34 -04:00
|
|
|
#include "esp_eth.h"
|
2019-10-23 10:47:16 -04:00
|
|
|
#endif
|
2019-06-28 10:47:34 -04:00
|
|
|
|
|
|
|
//
|
|
|
|
// 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
|
|
|
|
//
|
2020-01-30 06:50:52 -05:00
|
|
|
const esp_netif_inherent_config_t _g_esp_netif_inherent_sta_config = ESP_NETIF_INHERENT_DEFAULT_WIFI_STA();
|
2019-06-28 10:47:34 -04:00
|
|
|
|
2020-01-30 06:50:52 -05:00
|
|
|
const esp_netif_inherent_config_t _g_esp_netif_inherent_ap_config = ESP_NETIF_INHERENT_DEFAULT_WIFI_AP();
|
2019-06-28 10:47:34 -04:00
|
|
|
|
2020-01-30 06:50:52 -05:00
|
|
|
const esp_netif_inherent_config_t _g_esp_netif_inherent_eth_config = ESP_NETIF_INHERENT_DEFAULT_ETH();
|
2019-06-28 10:47:34 -04:00
|
|
|
|
2020-01-30 06:50:52 -05:00
|
|
|
const esp_netif_inherent_config_t _g_esp_netif_inherent_ppp_config = ESP_NETIF_INHERENT_DEFAULT_PPP();
|
2019-06-28 10:47:34 -04:00
|
|
|
|
2020-05-21 01:55:56 -04:00
|
|
|
const esp_netif_inherent_config_t _g_esp_netif_inherent_slip_config = ESP_NETIF_INHERENT_DEFAULT_SLIP();
|
|
|
|
|
2021-05-18 23:52:51 -04:00
|
|
|
const esp_netif_inherent_config_t _g_esp_netif_inherent_openthread_config = ESP_NETIF_INHERENT_DEFAULT_OPENTHREAD();
|
|
|
|
|
2020-01-30 06:50:52 -05:00
|
|
|
const esp_netif_ip_info_t _g_esp_netif_soft_ap_ip = {
|
2020-02-19 10:56:07 -05:00
|
|
|
.ip = { .addr = ESP_IP4TOADDR( 192, 168, 4, 1) },
|
|
|
|
.gw = { .addr = ESP_IP4TOADDR( 192, 168, 4, 1) },
|
|
|
|
.netmask = { .addr = ESP_IP4TOADDR( 255, 255, 255, 0) },
|
2019-11-21 07:23:58 -05:00
|
|
|
};
|