lv_os.h
API reference for lv_os.h
See Also: Private HeaderThis header has a companion private implementation with internal data structures.lv_os_private.h
Summary
Functions
public/osal/lv_os.h:42function
lv_lock
Lock LVGL's general mutex. LVGL is not thread safe, so a mutex is used to avoid executing multiple LVGL functions at the same time from different threads. It shall be called when calling LVGL functions from threads different than lv_timer_handler's thread. It doesn't need to be called in LVGL events because they are called from lv_timer_handler(). It is called internally in lv_timer_handler().
void lv_lock(void)public/osal/lv_os.h:48function
lv_lock_isr
Same as lv_lock() but can be called from an interrupt.
lv_result_t lv_lock_isr(void)Returns: lv_result_t — LV_RESULT_OK: success; LV_RESULT_INVALID: failure
public/osal/lv_os.h:55function
lv_unlock
The pair of lv_lock() and lv_lock_isr(). It unlocks LVGL general mutex. It is called internally in lv_timer_handler().
void lv_unlock(void)public/osal/lv_os.h:61function
lv_sleep_ms
Sleeps the current thread by an amount of milliseconds.
void lv_sleep_ms(uint32_t ms)| Name | Type | Description |
|---|---|---|
ms | uint32_t | amount of milliseconds to sleep the current thread. |
Dependencies
Last updated on