/** * @file lv_hal_tick.h * Provide access to the system tick with 1 millisecond resolution */ #ifndef LV_HAL_TICK_H #define LV_HAL_TICK_H #ifdef __cplusplus extern "C" { #endif /********************* * INCLUDES *********************/ #include #include /********************* * DEFINES *********************/ /********************** * TYPEDEFS **********************/ /********************** * GLOBAL PROTOTYPES **********************/ /** * You have to call this function periodically * @param tick_period the call period of this function in milliseconds */ void lv_tick_inc(uint32_t tick_period); /** * Get the elapsed milliseconds since start up * @return the elapsed milliseconds */ uint32_t lv_tick_get(void); /** * Get the elapsed milliseconds science a previous time stamp * @param prev_tick a previous time stamp (return value of systick_get() ) * @return the elapsed milliseconds since 'prev_tick' */ uint32_t lv_tick_elaps(uint32_t prev_tick); /********************** * MACROS **********************/ #ifdef __cplusplus } /* extern "C" */ #endif #endif /*LV_HAL_TICK_H*/