1 /* 2 * Copyright (c) 2015, Realsil Semiconductor Corporation. All rights reserved. 3 */ 4 5 #ifndef _OSIF_H_ 6 #define _OSIF_H_ 7 8 #ifdef __cplusplus 9 extern "C" { 10 #endif 11 12 #ifndef false 13 #define false 0 14 #endif 15 16 #ifndef true 17 #define true (!false) 18 #endif 19 20 #ifndef bool 21 #define bool unsigned char 22 #endif 23 24 #ifndef CONFIG_PLATFORM_8721D 25 #define CONFIG_PLATFORM_8721D 26 #endif 27 28 bool os_sem_create(void **pp_handle, uint32_t init_count, uint32_t max_count); 29 30 bool os_sem_delete(void *p_handle); 31 32 bool os_sem_take(void *p_handle, uint32_t wait_ms); 33 34 bool os_sem_give(void *p_handle); 35 36 37 #endif /* _OSIF_H_ */ 38