mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-23 15:56:59 +08:00
feat(timer): add lv_timer_get_user_data (#3888)
Signed-off-by: W-Mai <1341398182@qq.com>
This commit is contained in:
@@ -172,6 +172,16 @@ uint8_t lv_timer_get_idle(void);
|
||||
*/
|
||||
lv_timer_t * lv_timer_get_next(lv_timer_t * timer);
|
||||
|
||||
/**
|
||||
* Get the user_data passed when the timer was created
|
||||
* @param timer pointer to the lv_timer
|
||||
* @return pointer to the user_data
|
||||
*/
|
||||
static inline void * lv_timer_get_user_data(lv_timer_t * timer)
|
||||
{
|
||||
return timer->user_data;
|
||||
}
|
||||
|
||||
/**********************
|
||||
* MACROS
|
||||
**********************/
|
||||
|
||||
Reference in New Issue
Block a user