#define SHUTDOWN_HANDLERS_NO 2
static shutdown_handler_t shutdown_handlers[SHUTDOWN_HANDLERS_NO];
-void system_init(void)
-{
-}
-
esp_err_t esp_base_mac_addr_set(uint8_t *mac)
{
if (mac == NULL) {
return ESP_OK;
}
-esp_err_t system_efuse_read_mac(uint8_t *mac) __attribute__((alias("esp_efuse_mac_get_default")));
esp_err_t esp_efuse_read_mac(uint8_t *mac) __attribute__((alias("esp_efuse_mac_get_default")));
esp_err_t esp_derive_local_mac(uint8_t* local_mac, const uint8_t* universal_mac)
}
}
-void system_restart(void) __attribute__((alias("esp_restart")));
-
uint32_t esp_get_free_heap_size( void )
{
return heap_caps_get_free_size( MALLOC_CAP_DEFAULT );
return heap_caps_get_minimum_free_size( MALLOC_CAP_DEFAULT );
}
-uint32_t system_get_free_heap_size(void) __attribute__((alias("esp_get_free_heap_size")));
-
-const char* system_get_sdk_version(void)
-{
- return "master";
-}
-
const char* esp_get_idf_version(void)
{
return IDF_VER;
ESP_RST_SDIO, //!< Reset over SDIO
} esp_reset_reason_t;
-/** @cond */
-/**
- * @attention Applications don't need to call this function anymore. It does nothing and will
- * be removed in future version.
- */
-void system_init(void) __attribute__ ((deprecated));
-
-/**
- * @brief Reset to default settings.
- *
- * Function has been deprecated, please use esp_wifi_restore instead.
- * This name will be removed in a future release.
- */
-void system_restore(void) __attribute__ ((deprecated));
-/** @endcond */
-
/**
* Shutdown handler type
*/
*/
void esp_restart(void) __attribute__ ((noreturn));
-/** @cond */
-/**
- * @brief Restart system.
- *
- * Function has been renamed to esp_restart.
- * This name will be removed in a future release.
- */
-void system_restart(void) __attribute__ ((deprecated, noreturn));
-/** @endcond */
-
/**
* @brief Get reason of last reset
* @return See description of esp_reset_reason_t for explanation of each value.
*/
esp_reset_reason_t esp_reset_reason(void);
-/** @cond */
-/**
- * @brief Get system time, unit: microsecond.
- *
- * This function is deprecated. Use 'gettimeofday' function for 64-bit precision.
- * This definition will be removed in a future release.
- */
-uint32_t system_get_time(void) __attribute__ ((deprecated));
-/** @endcond */
-
/**
* @brief Get the size of available heap.
*
*/
uint32_t esp_get_free_heap_size(void);
-/** @cond */
-/**
- * @brief Get the size of available heap.
- *
- * Function has been renamed to esp_get_free_heap_size.
- * This name will be removed in a future release.
- *
- * @return Available heap size, in bytes.
- */
-uint32_t system_get_free_heap_size(void) __attribute__ ((deprecated));
-/** @endcond */
-
/**
* @brief Get the minimum heap that has ever been available
*
* @return ESP_OK on success
*/
esp_err_t esp_efuse_read_mac(uint8_t *mac) __attribute__ ((deprecated));
-
-/**
- * @brief Read hardware MAC address.
- *
- * Function has been renamed to esp_efuse_mac_get_default.
- * This name will be removed in a future release.
- *
- * @param mac hardware MAC address, length: 6 bytes.
- * @return ESP_OK on success
- */
-esp_err_t system_efuse_read_mac(uint8_t *mac) __attribute__ ((deprecated));
/** @endcond */
/**
*/
esp_err_t esp_derive_local_mac(uint8_t* local_mac, const uint8_t* universal_mac);
-/** @cond */
-/**
- * Get SDK version
- *
- * This function is deprecated and will be removed in a future release.
- *
- * @return constant string "master"
- */
-const char* system_get_sdk_version(void) __attribute__ ((deprecated));
-/** @endcond */
-
/**
* @brief Chip models
*/
+++ /dev/null
-// Copyright 2013-2017 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_system.h"
-#include "esp_wifi.h"
-
-/* This function is in a separate file from the reset of system APIs because
- * it causes link time dependency on WiFi stack.
- */
-void system_restore(void)
-{
- esp_wifi_restore();
-}