mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
cdef1ea38a
Example includes README and sdkconfig.defaults with notes about trade-offs made for minimum boot time.
24 lines
814 B
C
24 lines
814 B
C
/* Startup time example
|
|
|
|
This example code is in the Public Domain (or CC0 licensed, at your option.)
|
|
|
|
Unless required by applicable law or agreed to in writing, this
|
|
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
CONDITIONS OF ANY KIND, either express or implied.
|
|
*/
|
|
#include <stdio.h>
|
|
#include "esp_log.h"
|
|
|
|
static const char *TAG = "example";
|
|
|
|
/* The purpose of this app is to demonstrate fast startup time only, so feel free
|
|
to replace this app_main() with your own code or copy the sdkconfig.defaults contents
|
|
into a different project's sdkconfig file.
|
|
*/
|
|
void app_main(void)
|
|
{
|
|
// Calling this function restores all Info-level logging at runtime (as "Log Maximum Verbosity" set to "Info")
|
|
esp_log_level_set("*", ESP_LOG_INFO);
|
|
ESP_LOGI(TAG, "App started!");
|
|
}
|