blob: c4e97ae03ae090c1868a7a38c8974d44d681ff75 [file] [log] [blame]
#ifndef __WILC_OSWRAPPER_H__
#define __WILC_OSWRAPPER_H__
/*!
* @file wilc_oswrapper.h
* @brief Top level OS Wrapper, include this file and it will include all
* other files as necessary
* @author syounan
* @date 10 Aug 2010
* @version 1.0
*/
/* OS Wrapper interface version */
#define WILC_OSW_INTERFACE_VER 2
/* Integer Types */
typedef unsigned char WILC_Uint8;
typedef unsigned short WILC_Uint16;
typedef unsigned int WILC_Uint32;
typedef unsigned long long WILC_Uint64;
typedef signed char WILC_Sint8;
typedef signed short WILC_Sint16;
typedef signed int WILC_Sint32;
typedef signed long long WILC_Sint64;
/* Floating types */
typedef float WILC_Float;
typedef double WILC_Double;
/* Boolean type */
typedef enum {
WILC_FALSE = 0,
WILC_TRUE = 1
} WILC_Bool;
/* Character types */
typedef char WILC_Char;
typedef WILC_Uint16 WILC_WideChar;
#define WILC_OS_INFINITY (~((WILC_Uint32)0))
#define WILC_NULL ((void *)0)
/* standard min and max macros */
#define WILC_MIN(a, b) (((a) < (b)) ? (a) : (b))
#define WILC_MAX(a, b) (((a) > (b)) ? (a) : (b))
/* Os Configuration File */
#include "wilc_osconfig.h"
#include "wilc_platform.h"
/* Logging Functions */
#include "wilc_log.h"
/* Error reporting and handling support */
#include "wilc_errorsupport.h"
/* Semaphore support */
#ifdef CONFIG_WILC_SEMAPHORE_FEATURE
#include "wilc_semaphore.h"
#endif
/* Sleep support */
#ifdef CONFIG_WILC_SLEEP_FEATURE
#include "wilc_sleep.h"
#endif
/* Timer support */
#ifdef CONFIG_WILC_TIMER_FEATURE
#include "wilc_timer.h"
#endif
/* Memory support */
#ifdef CONFIG_WILC_MEMORY_FEATURE
#include "wilc_memory.h"
#endif
/* String Utilities */
#include "wilc_strutils.h"
/* Message Queue */
#ifdef CONFIG_WILC_MSG_QUEUE_FEATURE
#include "wilc_msgqueue.h"
#endif
/* File operations */
#ifdef CONFIG_WILC_FILE_OPERATIONS_FEATURE
#include "wilc_fileops.h"
#endif
/* Event support */
#ifdef CONFIG_WILC_EVENT_FEATURE
#include "wilc_event.h"
#endif
/* Socket operations */
#ifdef CONFIG_WILC_SOCKET_FEATURE
#include "wilc_socket.h"
#endif
/* Math operations */
#ifdef CONFIG_WILC_MATH_OPERATIONS_FEATURE
#include "wilc_math.h"
#endif
#endif