esp-idf/examples/system/startup_time/main/hello_world_main.c
Angus Gratton cdef1ea38a examples: Add example for fastest startup time
Example includes README and sdkconfig.defaults with notes about trade-offs
made for minimum boot time.
2021-04-23 18:27:20 +10:00

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!");
}