Code: Select all
esp_pm_lock_create(esp_pm_lock_type_t lock_type, int arg,const char* name, esp_pm_lock_handle_t* out_handle)
Code: Select all
ESP_ERROR_CHECK(esp_pm_lock_create(ESP_PM_NO_LIGHT_SLEEP, 1, "rmt_send_task", &rmt_send_task_pm_lock));
Code: Select all
esp_pm_lock_acquire(rmt_send_task_pm_lock);
Code: Select all
esp_pm_lock_release(rmt_send_task_pm_lock);