/**1* @file lv_hal_tick.h2* Provide access to the system tick with 1 millisecond resolution3*/45#ifndef LV_HAL_TICK_H6#define LV_HAL_TICK_H78#ifdef __cplusplus9extern "C" {10#endif1112/*********************13* INCLUDES14*********************/15#ifdef LV_CONF_INCLUDE_SIMPLE16#include "lv_conf.h"17#else18#include "../../lv_conf.h"19#endif20#include <stdint.h>2122/*********************23* DEFINES24*********************/25#ifndef LV_ATTRIBUTE_TICK_INC26#define LV_ATTRIBUTE_TICK_INC27#endif2829/**********************30* TYPEDEFS31**********************/3233/**********************34* GLOBAL PROTOTYPES35**********************/3637/**38* You have to call this function periodically39* @param tick_period the call period of this function in milliseconds40*/41LV_ATTRIBUTE_TICK_INC void lv_tick_inc(uint32_t tick_period);4243/**44* Get the elapsed milliseconds since start up45* @return the elapsed milliseconds46*/47uint32_t lv_tick_get(void);4849/**50* Get the elapsed milliseconds since a previous time stamp51* @param prev_tick a previous time stamp (return value of systick_get() )52* @return the elapsed milliseconds since 'prev_tick'53*/54uint32_t lv_tick_elaps(uint32_t prev_tick);5556/**********************57* MACROS58**********************/5960#ifdef __cplusplus61} /* extern "C" */62#endif6364#endif /*LV_HAL_TICK_H*/656667