Excuse me How to use esp_err_t esp_pm_lock_create (...)

Gaoqianjin
Posts: 11
Joined: Tue Mar 20, 2018 7:36 am

Excuse me How to use esp_err_t esp_pm_lock_create (...)

Postby Gaoqianjin » Tue Mar 20, 2018 8:13 am

Hi,Excuse me, esp_err_t esp_pm_lock_create(esp_pm_lock_type_t lock_type, int arg, const char *name, esp_pm_lock_handle_t *out_handle)
How second parameters are valued?
ESP-IDF Programming Guide: lock_type: Power management constraint which the lock should control
arg: argument, value depends on lock_type, see esp_pm_lock_type_t

I didn't find the answer in esp_pm_lock_type_t.
Can you tell me?
Thank you very much!

ESP_igrr
Posts: 2067
Joined: Tue Dec 01, 2015 8:37 am

Re: Excuse me How to use esp_err_t esp_pm_lock_create (...)

Postby ESP_igrr » Tue Mar 20, 2018 2:05 pm

For all the currently defined lock types (CPU_MAX, APB_MAX) this value is not used and can be set to 0.

Who is online

Users browsing this forum: Bing [Bot], bnp117, Google [Bot], rsaxvc and 92 guests