21 esp_pm_config_t pm_config = {
24#if CONFIG_FREERTOS_USE_TICKLESS_IDLE
25 .light_sleep_enable =
true,
28 esp_err_t rc = esp_pm_configure(&pm_config);
31 ESP_LOGE(TAG,
"esp_pm_configure failed: %s (crystal %u MHz)", esp_err_to_name(rc),
32 static_cast<unsigned>(esp_clk_xtal_freq() / MHZ));