1 #ifndef __WILC_OSWRAPPER_H__
2 #define __WILC_OSWRAPPER_H__
5 * @file wilc_oswrapper.h
6 * @brief Top level OS Wrapper, include this file and it will include all
7 * other files as necessary
13 /* OS Wrapper interface version */
14 #define WILC_OSW_INTERFACE_VER 2
17 typedef unsigned char WILC_Uint8;
18 typedef unsigned short WILC_Uint16;
19 typedef unsigned int WILC_Uint32;
20 typedef unsigned long long WILC_Uint64;
21 typedef signed char WILC_Sint8;
22 typedef signed short WILC_Sint16;
23 typedef signed int WILC_Sint32;
24 typedef signed long long WILC_Sint64;
27 typedef float WILC_Float;
28 typedef double WILC_Double;
37 typedef char WILC_Char;
38 typedef WILC_Uint16 WILC_WideChar;
40 #define WILC_OS_INFINITY (~((WILC_Uint32)0))
41 #define WILC_NULL ((void *)0)
43 /* standard min and max macros */
44 #define WILC_MIN(a, b) (((a) < (b)) ? (a) : (b))
45 #define WILC_MAX(a, b) (((a) > (b)) ? (a) : (b))
47 /* Os Configuration File */
48 #include "wilc_osconfig.h"
49 #include "wilc_platform.h"
51 /* Logging Functions */
54 /* Error reporting and handling support */
55 #include "wilc_errorsupport.h"
57 /* Semaphore support */
58 #include "wilc_semaphore.h"
61 #include "wilc_sleep.h"
64 #include "wilc_timer.h"
67 #include "wilc_memory.h"
69 /* String Utilities */
70 #include "wilc_strutils.h"
73 #include "wilc_msgqueue.h"
76 #ifdef CONFIG_WILC_FILE_OPERATIONS_FEATURE
77 #include "wilc_fileops.h"
81 #ifdef CONFIG_WILC_EVENT_FEATURE
82 #include "wilc_event.h"
85 /* Socket operations */
86 #ifdef CONFIG_WILC_SOCKET_FEATURE
87 #include "wilc_socket.h"
91 #ifdef CONFIG_WILC_MATH_OPERATIONS_FEATURE
92 #include "wilc_math.h"