1 /**
2  * @file lv_rtthread.h
3  *
4  */
5 
6 #ifndef LV_RTTHREAD_H
7 #define LV_RTTHREAD_H
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 /*********************
14  *      INCLUDES
15  *********************/
16 #if LV_USE_OS == LV_OS_RTTHREAD
17 
18 #include <rtthread.h>
19 #include <stdbool.h>
20 
21 /*********************
22  *      DEFINES
23  *********************/
24 
25 /**********************
26  *      TYPEDEFS
27  **********************/
28 typedef struct {
29     rt_thread_t thread;
30 } lv_thread_t;
31 
32 typedef struct {
33     rt_mutex_t mutex;
34 } lv_mutex_t;
35 
36 typedef struct {
37     rt_sem_t sem;
38 } lv_thread_sync_t;
39 
40 /**********************
41  * GLOBAL PROTOTYPES
42  **********************/
43 
44 /**********************
45  *      MACROS
46  **********************/
47 
48 #endif /*LV_USE_OS == LV_OS_RTTHREAD*/
49 
50 #ifdef __cplusplus
51 } /*extern "C"*/
52 #endif
53 
54 #endif /*LV_RTTHREAD_H*/
55