MCUXpresso_MIMXRT1021xxxxx/boards/evkmimxrt1020/lvgl_examples/lvgl_demo_utils.h

44 lines
1008 B
C
Raw Permalink Normal View History

2022-08-23 15:00:33 +00:00
/*
* Copyright 2022 NXP
2022-08-23 15:00:33 +00:00
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef _LVGL_DEMO_UTILS_H_
#define _LVGL_DEMO_UTILS_H_
2022-08-23 15:00:33 +00:00
#include <stdint.h>
/*******************************************************************************
* Definitions
******************************************************************************/
/*******************************************************************************
* APIs
2022-08-23 15:00:33 +00:00
******************************************************************************/
#if defined(__cplusplus)
2022-08-23 15:00:33 +00:00
extern "C" {
#endif /* __cplusplus */
/* Initialize the timer to get microsecond. */
void DEMO_InitUsTimer(void);
2022-08-23 15:00:33 +00:00
/* Get current time in microsecond. */
uint32_t DEMO_GetUsTimer(void);
/* Get elapsed time in microsecond. No more than 4.3 sec. */
uint32_t DEMO_GetUsElapsed(uint32_t start);
/* Get CPU clock frequency. */
uint32_t DEMO_GetCpuClockFreq(void);
2022-08-23 15:00:33 +00:00
#if defined(__cplusplus)
}
#endif /* __cplusplus */
/*! @} */
2022-08-23 15:00:33 +00:00
#endif /*_LVGL_DEMO_UTILS_H_*/