1 /* 2 * Copyright (c) 2024 Fabian Blatz <fabianblatz@gmail.com> 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #ifndef ZEPHYR_MODULES_LVGL_ZEPHYR_OSAL_H_ 8 #define ZEPHYR_MODULES_LVGL_ZEPHYR_OSAL_H_ 9 10 #include <zephyr/kernel.h> 11 12 #ifdef __cplusplus 13 extern "C" { 14 #endif 15 16 typedef struct { 17 k_tid_t tid; 18 k_thread_stack_t *stack; 19 struct k_thread thread; 20 } lv_thread_t; 21 22 typedef struct k_mutex lv_mutex_t; 23 24 typedef struct k_sem lv_thread_sync_t; 25 26 #ifdef __cplusplus 27 } 28 #endif 29 30 #endif /* ZEPHYR_MODULES_LVGL_ZEPHYR_OSAL_H_ */ 31