aboutsummaryrefslogtreecommitdiff
path: root/src/osal/lv_cmsis_rtos2.h
blob: 62481e7e818bce1b8104e33b28ebfd827605d48a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/**
 * @file lv_cmsis_rtos2.h
 *
 */

/*
 * Copyright (C) 2023 Arm Limited or its affiliates. All rights reserved.
 *
 * SPDX-License-Identifier: Apache-2.0
 */

#ifndef LV_CMSIS_RTOS2_H
#define LV_CMSIS_RTOS2_H

#ifdef __cplusplus
extern "C" {
#endif

/*********************
 *      INCLUDES
 *********************/
#if LV_USE_OS == LV_OS_CMSIS_RTOS2

#include "cmsis_os2.h"

/*********************
 *      DEFINES
 *********************/

/**********************
 *      TYPEDEFS
 **********************/
typedef osThreadId_t lv_thread_t;

typedef osMutexId_t lv_mutex_t;

typedef osEventFlagsId_t lv_thread_sync_t;

/**********************
 * GLOBAL PROTOTYPES
 **********************/

/**********************
 *      MACROS
 **********************/

#endif /*LV_USE_OS == LV_OS_CMSIS_RTOS2*/

#ifdef __cplusplus
} /*extern "C"*/
#endif

#endif /*LV_OS_CMSIS_RTOS2*/