/*******************************************************************************
* Project:      Amped'RF Bluetooth
* File name:    SDK_Alias.h
* Description:  SDK Aliases
*
* Copyright (c) 2012 Amped'RF Inc., AR Technology  All rights reserved.
*******************************************************************************/
#ifndef _SDK_ALIAS_H_
#define _SDK_ALIAS_H_

#define OS_Init                         BP_Init
#define OS_RegisterIdleFunc             BP_RegisterIdleFunc
#define OS_Start                        BP_Start
#define BuildVersion                    BuildVersion
#define OS_IsrAllocSignal               BP_IsrAllocSignal

#define OS_RegisterDispatchFuncImpl     BP_RegisterDispatchFuncImpl
#define OS_CreateTask                   BP_CreateTask
#define OS_CancelTmrRequest             TM_CancelTmrRequest
#define OS_TimerRegisterRequest         TM_TimerRegisterRequest
#define OS_ReportTaskShutdownDone       BP_ReportTaskShutdownDone
#define OS_AllocSignal                  BP_AllocSignal
#define OS_ReleaseSignal                BP_ReleaseSignal
#define OS_Release                      BP_Release
#define OS_CreatePool                   BP_CreatePool
#define OS_ReservePoolMemory            BP_ReservePoolMemory
#define OS_RequestSystemShutdown        BP_RequestSystemShutdown

#define AMP_ReleaseDataBuffer           BTI_ReleaseDataBuffer
//#define OS_SendDataToHandle             AT_SendDataToHandle
#define OS_GetCurrentPortHandle         AT_GetCurrentPortHandle
#define OS_GetNodeIDFromHandleID        OS_GetNodeFromHandle

//#define BP_BTISignalUnionStructure      OS_BTISignalUnionStructure
//#define BP_CoreSignalUnionStructure     OS_CoreSignalUnionStructure
//#define SIG_BP_SHUTDOWN_DONE            SIG_OS_SHUTDOWN_DONE

//------------------------------------------------------------
// Native OS defines
//------------------------------------------------------------
#ifdef NATIVE_OS
#define tGKI_Signal             tBP_Signal
#define GKI_GetSignalNo         BP_GetSignalNo
#define GKI_GetSignalDataPtr    BP_GetSignalDataPtr
#endif

//------------------------------------------------------------
// Other OS defines
//------------------------------------------------------------
#define tpOS_MemPool            tpGKI_MemPool
#define tOS_Pool                tGKI_Pool
#define tOS_PoolNotifyFunc      tGKI_PoolNotifyFunc
#define tOS_TaskId              tGKI_TaskId
#define tOS_Signal              tGKI_Signal
#define tpOS_Signal             tpGKI_Signal
#define tOS_ModuleId            tGKI_ModuleId
#define OS_AMP                  ID_AMP
#define OS_BTU                  ID_BTU
#define OS_AT                   ID_AT
#define OS_APPL                 ID_APPL
//#define OS_DEFAULT_PRIO         BP_DEFAULT_PRIO

#define OS_Send                 GKI_Send
#define OS_IsrSend              GKI_IsrSend
//#define OS_GetSignalDataPtr     GKI_GetSignalDataPtr
//#define OS_GetSignalNo          GKI_GetSignalNo
#define tOS_SignalData          tGKI_SignalData

#define OS_getbuf               GKI_getbuf
#define OS_freebuf              GKI_freebuf

#define OS_freebuf              GKI_freebuf


#endif // _SDK_ALIAS_H_
