Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
CTCaer
GitHub Repository: CTCaer/hekate
Path: blob/master/bdk/libs/lvgl/lv_version.h
1476 views
1
/**
2
* @file lv_version.h
3
*
4
*/
5
6
#ifndef LV_VERSION_H
7
#define LV_VERSION_H
8
9
#ifdef __cplusplus
10
extern "C" {
11
#endif
12
13
/*********************
14
* INCLUDES
15
*********************/
16
/*Current version of LittlevGL*/
17
#define LVGL_VERSION_MAJOR 5
18
#define LVGL_VERSION_MINOR 3
19
#define LVGL_VERSION_PATCH 0
20
#define LVGL_VERSION_INFO "hekate"
21
22
23
/*********************
24
* DEFINES
25
*********************/
26
27
/**********************
28
* TYPEDEFS
29
**********************/
30
31
/**********************
32
* GLOBAL PROTOTYPES
33
**********************/
34
35
/**********************
36
* MACROS
37
**********************/
38
/* Gives 1 if the x.y.z version is supported in the current version
39
* Usage:
40
*
41
* - Require v6
42
* #if LV_VERSION_CHECK(6,0,0)
43
* new_func_in_v6();
44
* #endif
45
*
46
*
47
* - Require at least v5.3
48
* #if LV_VERSION_CHECK(5,3,0)
49
* new_feature_from_v5_3();
50
* #endif
51
*
52
*
53
* - Require v5.3.2 bugfixes
54
* #if LV_VERSION_CHECK(5,3,2)
55
* bugfix_in_v5_3_2();
56
* #endif
57
*
58
* */
59
#define LV_VERSION_CHECK(x,y,z) (x == LVGL_VERSION_MAJOR && (y < LVGL_VERSION_MINOR || (y == LVGL_VERSION_MINOR && z <= LVGL_VERSION_PATCH)))
60
61
62
#ifdef __cplusplus
63
} /* extern "C" */
64
#endif
65
66
#endif /*LV_VERSION_H*/
67
68