Chapter 2. API Reference
ESP_DRAM_LOGI(tag, format, ...)
macro to output logs when the cache is disabled at ESP_LOG_INFO level.
See ESP_DRAM_LOGI,ESP_LOGI, esp_rom_printf
ESP_DRAM_LOGD(tag, format, ...)
macro to output logs when the cache is disabled at ESP_LOG_DEBUG level.
See ESP_DRAM_LOGD,ESP_LOGD, esp_rom_printf
ESP_DRAM_LOGV(tag, format, ...)
macro to output logs when the cache is disabled at ESP_LOG_VERBOSE level.
See ESP_DRAM_LOGV,ESP_LOGV, esp_rom_printf
Type Definitions
typedef int (*vprintf_like_t)(const char *, va_list)
Enumerations
enum esp_log_level_t
Log level.
Values:
ESP_LOG_NONE
No log output
ESP_LOG_ERROR
Critical errors, software module can not recover on its own
ESP_LOG_WARN
Error conditions from which recovery measures have been taken
ESP_LOG_INFO
Information messages which describe normal flow of events
ESP_LOG_DEBUG
Extra information which is not necessary for normal use (values, pointers, sizes, etc).
ESP_LOG_VERBOSE
Bigger chunks of debugging information, or frequent messages which can potentially flood the output.
2.6.18 Miscellaneous System APIs
Software reset
To perform software reset of the chip, esp_restart() function is provided. When the function is called, exe-
cution of the program will stop, both CPUs will be reset, application will be loaded by the bootloader and started
again.
Additionally, esp_register_shutdown_handler() function is provided to register a routine which needs
to be called prior to restart (when done by esp_restart()). This is similar to the functionality of atexit
POSIX function.
Reset reason
ESP-IDF application can be started or restarted due to a variety of reasons. To get the last reset reason, call
esp_reset_reason() function. See description of esp_reset_reason_t for the list of possible reset
reasons.
Espressif Systems 1011
Submit Document Feedback
Release v4.4