mirror of
https://github.com/CTCaer/hekate.git
synced 2024-11-20 14:19:13 +00:00
185526d134
BDK will allow developers to use the full collection of drivers, with limited editing, if any, for making payloads for Nintendo Switch. Using a single source for everything will also help decoupling Switch specific code and easily port it to other Tegra X1/X1+ platforms. And maybe even to lower targets. Everything is now centrilized into bdk folder. Every module or project can utilize it by simply including it. This is just the start and it will continue to improve.
66 lines
1.3 KiB
C
66 lines
1.3 KiB
C
/**
|
|
* @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
|
|
*********************/
|
|
#ifdef LV_CONF_INCLUDE_SIMPLE
|
|
#include "lv_conf.h"
|
|
#else
|
|
#include "../../lv_conf.h"
|
|
#endif
|
|
#include <stdint.h>
|
|
|
|
/*********************
|
|
* DEFINES
|
|
*********************/
|
|
#ifndef LV_ATTRIBUTE_TICK_INC
|
|
#define LV_ATTRIBUTE_TICK_INC
|
|
#endif
|
|
|
|
/**********************
|
|
* TYPEDEFS
|
|
**********************/
|
|
|
|
/**********************
|
|
* GLOBAL PROTOTYPES
|
|
**********************/
|
|
|
|
/**
|
|
* You have to call this function periodically
|
|
* @param tick_period the call period of this function in milliseconds
|
|
*/
|
|
LV_ATTRIBUTE_TICK_INC 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 since 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*/
|