1 /** 2 * @file lv_cmsis_rtos2.h 3 * 4 */ 5 6 /* 7 * Copyright (C) 2023 Arm Limited or its affiliates. All rights reserved. 8 * 9 * SPDX-License-Identifier: Apache-2.0 10 */ 11 12 #ifndef LV_CMSIS_RTOS2_H 13 #define LV_CMSIS_RTOS2_H 14 15 #ifdef __cplusplus 16 extern "C" { 17 #endif 18 19 /********************* 20 * INCLUDES 21 *********************/ 22 #if LV_USE_OS == LV_OS_CMSIS_RTOS2 23 24 #include "cmsis_os2.h" 25 26 /********************* 27 * DEFINES 28 *********************/ 29 30 /********************** 31 * TYPEDEFS 32 **********************/ 33 typedef osThreadId_t lv_thread_t; 34 35 typedef osMutexId_t lv_mutex_t; 36 37 typedef osEventFlagsId_t lv_thread_sync_t; 38 39 /********************** 40 * GLOBAL PROTOTYPES 41 **********************/ 42 43 /********************** 44 * MACROS 45 **********************/ 46 47 #endif /*LV_USE_OS == LV_OS_CMSIS_RTOS2*/ 48 49 #ifdef __cplusplus 50 } /*extern "C"*/ 51 #endif 52 53 #endif /*LV_OS_CMSIS_RTOS2*/ 54