HPM APP
HPMicro Application solution
osal.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2023-2024 HPMicro
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 
8 #ifndef OSAL_H
9 #define OSAL_H
10 
11 #if defined(__ENABLE_FREERTOS) && (__ENABLE_FREERTOS)
12 typedef SemaphoreHandle_t osSemaphoreId_t;
13 typedef TimerHandle_t osTimerId_t;
14 #elif defined(__ENABLE_RTTHREAD_NANO) && __ENABLE_RTTHREAD_NANO
15 #include "rtthread.h"
16 
17 typedef rt_sem_t osSemaphoreId_t;
18 typedef rt_timer_t osTimerId_t;
19 
20 #endif
21 
22 
23 #endif