mikroSDK Reference Manual
lv_hal.h
Go to the documentation of this file.
1
6#ifndef LV_HAL_H
7#define LV_HAL_H
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13/*********************
14 * INCLUDES
15 *********************/
16#include "lv_hal_disp.h"
17#include "lv_hal_indev.h"
18#include "lv_hal_tick.h"
19
20/*********************
21 * DEFINES
22 *********************/
29#define _LV_DPX_CALC(dpi, n) ((n) == 0 ? 0 :LV_MAX((( (dpi) * (n) + 80) / 160), 1)) /*+80 for rounding*/
30#define LV_DPX(n) _LV_DPX_CALC(lv_disp_get_dpi(NULL), n)
31
32/**********************
33 * TYPEDEFS
34 **********************/
35
36/**********************
37 * GLOBAL PROTOTYPES
38 **********************/
39
40/**********************
41 * MACROS
42 **********************/
43
44#ifdef __cplusplus
45} /*extern "C"*/
46#endif
47
48#endif