Commit e0ca0595 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

Staging: epl: run Lindent on *.h files

It's a start, still a mess...

Cc: Daniel Krueger <daniel.krueger@systec-electronic.com>
Cc: Ronald Sieber <Ronald.Sieber@systec-electronic.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent bd5cd82d
This diff is collapsed.
This diff is collapsed.
...@@ -73,40 +73,32 @@ ...@@ -73,40 +73,32 @@
#ifndef _EDRVFEC_H_ #ifndef _EDRVFEC_H_
#define _EDRVFEC_H_ #define _EDRVFEC_H_
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// const defines // const defines
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// do this in config header // do this in config header
#define TARGET_HARDWARE TGTHW_SPLC_CF54 #define TARGET_HARDWARE TGTHW_SPLC_CF54
// base addresses // base addresses
#if ((TARGET_HARDWARE & TGT_CPU_MASK_) == TGT_CPU_5282) #if ((TARGET_HARDWARE & TGT_CPU_MASK_) == TGT_CPU_5282)
#elif ((TARGET_HARDWARE & TGT_CPU_MASK_) == TGT_CPU_5485) #elif ((TARGET_HARDWARE & TGT_CPU_MASK_) == TGT_CPU_5485)
#else #else
#error 'ERROR: Target was never implemented!' #error 'ERROR: Target was never implemented!'
#endif #endif
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// types // types
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// Rx and Tx buffer descriptor format // Rx and Tx buffer descriptor format
typedef struct typedef struct {
{ WORD m_wStatus; // control / status --- used by edrv, do not change in application
WORD m_wStatus; // control / status --- used by edrv, do not change in application WORD m_wLength; // transfer length
WORD m_wLength; // transfer length BYTE *m_pbData; // buffer address
BYTE * m_pbData; // buffer address
} tBufferDescr; } tBufferDescr;
#if ((TARGET_HARDWARE & TGT_CPU_MASK_) == TGT_CPU_5282) #if ((TARGET_HARDWARE & TGT_CPU_MASK_) == TGT_CPU_5282)
...@@ -119,8 +111,4 @@ typedef struct ...@@ -119,8 +111,4 @@ typedef struct
// function prototypes // function prototypes
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
#endif // #ifndef _EDRV_FEC_H_
#endif // #ifndef _EDRV_FEC_H_
This diff is collapsed.
...@@ -71,7 +71,6 @@ ...@@ -71,7 +71,6 @@
#ifndef _EDRVSIM_H_ #ifndef _EDRVSIM_H_
#define _EDRVSIM_H_ #define _EDRVSIM_H_
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// const defines // const defines
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
...@@ -80,15 +79,11 @@ ...@@ -80,15 +79,11 @@
// types // types
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// function prototypes // function prototypes
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void EdrvRxInterruptHandler (BYTE bBufferInFrame_p, BYTE * pbEthernetData_p, WORD wDataLen_p); void EdrvRxInterruptHandler(BYTE bBufferInFrame_p, BYTE * pbEthernetData_p,
WORD wDataLen_p);
#endif // #ifndef _EDRVSIM_H_
#endif // #ifndef _EDRVSIM_H_
This diff is collapsed.
...@@ -86,46 +86,43 @@ ...@@ -86,46 +86,43 @@
#ifndef _EPLAMI_H_ #ifndef _EPLAMI_H_
#define _EPLAMI_H_ #define _EPLAMI_H_
#if ((DEV_SYSTEM & _DEV_64BIT_SUPPORT_) == 0) #if ((DEV_SYSTEM & _DEV_64BIT_SUPPORT_) == 0)
// #ifdef USE_VAR64 // #ifdef USE_VAR64
#error 'ERROR: development system does not support 64 bit operations!' #error 'ERROR: development system does not support 64 bit operations!'
// #endif // #endif
#endif #endif
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// types // types
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// Prototypen // Prototypen
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
#if (TARGET_SYSTEM == _WIN32_) #if (TARGET_SYSTEM == _WIN32_)
#if defined(INLINE_FUNCTION_DEF) #if defined(INLINE_FUNCTION_DEF)
#undef INLINE_FUNCTION #undef INLINE_FUNCTION
#define INLINE_FUNCTION INLINE_FUNCTION_DEF #define INLINE_FUNCTION INLINE_FUNCTION_DEF
#define INLINE_ENABLED TRUE #define INLINE_ENABLED TRUE
#define EPL_AMI_INLINED #define EPL_AMI_INLINED
#include "../EplStack/amix86.c" #include "../EplStack/amix86.c"
#endif #endif
#elif (TARGET_SYSTEM == _LINUX_) #elif (TARGET_SYSTEM == _LINUX_)
#if defined(__m68k__) // it is an big endian machine #if defined(__m68k__) // it is an big endian machine
#if defined(INLINE_FUNCTION_DEF) #if defined(INLINE_FUNCTION_DEF)
#undef INLINE_FUNCTION #undef INLINE_FUNCTION
#define INLINE_FUNCTION INLINE_FUNCTION_DEF #define INLINE_FUNCTION INLINE_FUNCTION_DEF
#define INLINE_ENABLED TRUE #define INLINE_ENABLED TRUE
#define EPL_AMI_INLINED #define EPL_AMI_INLINED
#include "../EplStack/amibe.c" #include "../EplStack/amibe.c"
#endif #endif
#endif #endif
#endif #endif
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
...@@ -140,13 +137,12 @@ ...@@ -140,13 +137,12 @@
#define AmiSetByteToLe(pAddr_p, bByteVal_p) {*(BYTE FAR*)(pAddr_p) = (bByteVal_p);} #define AmiSetByteToLe(pAddr_p, bByteVal_p) {*(BYTE FAR*)(pAddr_p) = (bByteVal_p);}
#if !defined(INLINE_ENABLED) #if !defined(INLINE_ENABLED)
void PUBLIC AmiSetWordToBe (void FAR* pAddr_p, WORD wWordVal_p); void PUBLIC AmiSetWordToBe(void FAR * pAddr_p, WORD wWordVal_p);
void PUBLIC AmiSetDwordToBe (void FAR* pAddr_p, DWORD dwDwordVal_p); void PUBLIC AmiSetDwordToBe(void FAR * pAddr_p, DWORD dwDwordVal_p);
void PUBLIC AmiSetWordToLe (void FAR* pAddr_p, WORD wWordVal_p); void PUBLIC AmiSetWordToLe(void FAR * pAddr_p, WORD wWordVal_p);
void PUBLIC AmiSetDwordToLe (void FAR* pAddr_p, DWORD dwDwordVal_p); void PUBLIC AmiSetDwordToLe(void FAR * pAddr_p, DWORD dwDwordVal_p);
#endif #endif
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// //
// read functions // read functions
...@@ -160,10 +156,10 @@ void PUBLIC AmiSetDwordToLe (void FAR* pAddr_p, DWORD dwDwordVal_p); ...@@ -160,10 +156,10 @@ void PUBLIC AmiSetDwordToLe (void FAR* pAddr_p, DWORD dwDwordVal_p);
#if !defined(INLINE_ENABLED) #if !defined(INLINE_ENABLED)
WORD PUBLIC AmiGetWordFromBe (void FAR* pAddr_p); WORD PUBLIC AmiGetWordFromBe(void FAR * pAddr_p);
DWORD PUBLIC AmiGetDwordFromBe (void FAR* pAddr_p); DWORD PUBLIC AmiGetDwordFromBe(void FAR * pAddr_p);
WORD PUBLIC AmiGetWordFromLe (void FAR* pAddr_p); WORD PUBLIC AmiGetWordFromLe(void FAR * pAddr_p);
DWORD PUBLIC AmiGetDwordFromLe (void FAR* pAddr_p); DWORD PUBLIC AmiGetDwordFromLe(void FAR * pAddr_p);
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// //
...@@ -178,9 +174,8 @@ DWORD PUBLIC AmiGetDwordFromLe (void FAR* pAddr_p); ...@@ -178,9 +174,8 @@ DWORD PUBLIC AmiGetDwordFromLe (void FAR* pAddr_p);
// //
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void PUBLIC AmiSetDword24ToBe (void FAR* pAddr_p, DWORD dwDwordVal_p); void PUBLIC AmiSetDword24ToBe(void FAR * pAddr_p, DWORD dwDwordVal_p);
void PUBLIC AmiSetDword24ToLe (void FAR* pAddr_p, DWORD dwDwordVal_p); void PUBLIC AmiSetDword24ToLe(void FAR * pAddr_p, DWORD dwDwordVal_p);
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// //
...@@ -194,9 +189,8 @@ void PUBLIC AmiSetDword24ToLe (void FAR* pAddr_p, DWORD dwDwordVal_p); ...@@ -194,9 +189,8 @@ void PUBLIC AmiSetDword24ToLe (void FAR* pAddr_p, DWORD dwDwordVal_p);
// //
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
DWORD PUBLIC AmiGetDword24FromBe (void FAR* pAddr_p); DWORD PUBLIC AmiGetDword24FromBe(void FAR * pAddr_p);
DWORD PUBLIC AmiGetDword24FromLe (void FAR* pAddr_p); DWORD PUBLIC AmiGetDword24FromLe(void FAR * pAddr_p);
//#ifdef USE_VAR64 //#ifdef USE_VAR64
...@@ -213,9 +207,8 @@ DWORD PUBLIC AmiGetDword24FromLe (void FAR* pAddr_p); ...@@ -213,9 +207,8 @@ DWORD PUBLIC AmiGetDword24FromLe (void FAR* pAddr_p);
// //
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void PUBLIC AmiSetQword40ToBe (void FAR* pAddr_p, QWORD qwQwordVal_p); void PUBLIC AmiSetQword40ToBe(void FAR * pAddr_p, QWORD qwQwordVal_p);
void PUBLIC AmiSetQword40ToLe (void FAR* pAddr_p, QWORD qwQwordVal_p); void PUBLIC AmiSetQword40ToLe(void FAR * pAddr_p, QWORD qwQwordVal_p);
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// //
...@@ -229,9 +222,8 @@ void PUBLIC AmiSetQword40ToLe (void FAR* pAddr_p, QWORD qwQwordVal_p); ...@@ -229,9 +222,8 @@ void PUBLIC AmiSetQword40ToLe (void FAR* pAddr_p, QWORD qwQwordVal_p);
// //
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
QWORD PUBLIC AmiGetQword40FromBe (void FAR* pAddr_p); QWORD PUBLIC AmiGetQword40FromBe(void FAR * pAddr_p);
QWORD PUBLIC AmiGetQword40FromLe (void FAR* pAddr_p); QWORD PUBLIC AmiGetQword40FromLe(void FAR * pAddr_p);
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// //
...@@ -246,9 +238,8 @@ QWORD PUBLIC AmiGetQword40FromLe (void FAR* pAddr_p); ...@@ -246,9 +238,8 @@ QWORD PUBLIC AmiGetQword40FromLe (void FAR* pAddr_p);
// //
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void PUBLIC AmiSetQword48ToBe (void FAR* pAddr_p, QWORD qwQwordVal_p); void PUBLIC AmiSetQword48ToBe(void FAR * pAddr_p, QWORD qwQwordVal_p);
void PUBLIC AmiSetQword48ToLe (void FAR* pAddr_p, QWORD qwQwordVal_p); void PUBLIC AmiSetQword48ToLe(void FAR * pAddr_p, QWORD qwQwordVal_p);
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// //
...@@ -262,9 +253,8 @@ void PUBLIC AmiSetQword48ToLe (void FAR* pAddr_p, QWORD qwQwordVal_p); ...@@ -262,9 +253,8 @@ void PUBLIC AmiSetQword48ToLe (void FAR* pAddr_p, QWORD qwQwordVal_p);
// //
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
QWORD PUBLIC AmiGetQword48FromBe (void FAR* pAddr_p); QWORD PUBLIC AmiGetQword48FromBe(void FAR * pAddr_p);
QWORD PUBLIC AmiGetQword48FromLe (void FAR* pAddr_p); QWORD PUBLIC AmiGetQword48FromLe(void FAR * pAddr_p);
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// //
...@@ -279,9 +269,8 @@ QWORD PUBLIC AmiGetQword48FromLe (void FAR* pAddr_p); ...@@ -279,9 +269,8 @@ QWORD PUBLIC AmiGetQword48FromLe (void FAR* pAddr_p);
// //
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void PUBLIC AmiSetQword56ToBe (void FAR* pAddr_p, QWORD qwQwordVal_p); void PUBLIC AmiSetQword56ToBe(void FAR * pAddr_p, QWORD qwQwordVal_p);
void PUBLIC AmiSetQword56ToLe (void FAR* pAddr_p, QWORD qwQwordVal_p); void PUBLIC AmiSetQword56ToLe(void FAR * pAddr_p, QWORD qwQwordVal_p);
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// //
...@@ -295,9 +284,8 @@ void PUBLIC AmiSetQword56ToLe (void FAR* pAddr_p, QWORD qwQwordVal_p); ...@@ -295,9 +284,8 @@ void PUBLIC AmiSetQword56ToLe (void FAR* pAddr_p, QWORD qwQwordVal_p);
// //
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
QWORD PUBLIC AmiGetQword56FromBe (void FAR* pAddr_p); QWORD PUBLIC AmiGetQword56FromBe(void FAR * pAddr_p);
QWORD PUBLIC AmiGetQword56FromLe (void FAR* pAddr_p); QWORD PUBLIC AmiGetQword56FromLe(void FAR * pAddr_p);
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// //
...@@ -312,9 +300,8 @@ QWORD PUBLIC AmiGetQword56FromLe (void FAR* pAddr_p); ...@@ -312,9 +300,8 @@ QWORD PUBLIC AmiGetQword56FromLe (void FAR* pAddr_p);
// //
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void PUBLIC AmiSetQword64ToBe (void FAR* pAddr_p, QWORD qwQwordVal_p); void PUBLIC AmiSetQword64ToBe(void FAR * pAddr_p, QWORD qwQwordVal_p);
void PUBLIC AmiSetQword64ToLe (void FAR* pAddr_p, QWORD qwQwordVal_p); void PUBLIC AmiSetQword64ToLe(void FAR * pAddr_p, QWORD qwQwordVal_p);
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// //
...@@ -328,9 +315,8 @@ void PUBLIC AmiSetQword64ToLe (void FAR* pAddr_p, QWORD qwQwordVal_p); ...@@ -328,9 +315,8 @@ void PUBLIC AmiSetQword64ToLe (void FAR* pAddr_p, QWORD qwQwordVal_p);
// //
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
QWORD PUBLIC AmiGetQword64FromBe (void FAR* pAddr_p); QWORD PUBLIC AmiGetQword64FromBe(void FAR * pAddr_p);
QWORD PUBLIC AmiGetQword64FromLe (void FAR* pAddr_p); QWORD PUBLIC AmiGetQword64FromLe(void FAR * pAddr_p);
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// //
...@@ -345,8 +331,8 @@ QWORD PUBLIC AmiGetQword64FromLe (void FAR* pAddr_p); ...@@ -345,8 +331,8 @@ QWORD PUBLIC AmiGetQword64FromLe (void FAR* pAddr_p);
// //
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void PUBLIC AmiSetTimeOfDay (void FAR* pAddr_p, tTimeOfDay FAR* pTimeOfDay_p); void PUBLIC AmiSetTimeOfDay(void FAR * pAddr_p,
tTimeOfDay FAR * pTimeOfDay_p);
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// //
...@@ -361,20 +347,16 @@ void PUBLIC AmiSetTimeOfDay (void FAR* pAddr_p, tTimeOfDay FAR* pTimeOfDay_p); ...@@ -361,20 +347,16 @@ void PUBLIC AmiSetTimeOfDay (void FAR* pAddr_p, tTimeOfDay FAR* pTimeOfDay_p);
// //
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void PUBLIC AmiGetTimeOfDay (void FAR* pAddr_p, tTimeOfDay FAR* pTimeOfDay_p); void PUBLIC AmiGetTimeOfDay(void FAR * pAddr_p,
tTimeOfDay FAR * pTimeOfDay_p);
#endif #endif
#undef INLINE_ENABLED // disable actual inlining of functions
#undef INLINE_ENABLED // disable actual inlining of functions
#define EPL_AMI_INCLUDED #define EPL_AMI_INCLUDED
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif // ifndef _EPLAMI_H_
// Die letzte Zeile mu unbedingt eine leere Zeile sein, weil manche Compiler// damit ein Problem haben, wenn das nicht so ist (z.B. GNU oder Borland C++ Builder).
#endif // ifndef _EPLAMI_H_
// Die letzte Zeile mu unbedingt eine leere Zeile sein, weil manche Compiler
// damit ein Problem haben, wenn das nicht so ist (z.B. GNU oder Borland C++ Builder).
...@@ -66,79 +66,71 @@ ...@@ -66,79 +66,71 @@
2006/10/11 d.k.: start of the implementation, version 1.00 2006/10/11 d.k.: start of the implementation, version 1.00
****************************************************************************/ ****************************************************************************/
#ifndef _EPL_API_LINUX_H_ #ifndef _EPL_API_LINUX_H_
#define _EPL_API_LINUX_H_ #define _EPL_API_LINUX_H_
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// const defines // const defines
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
#define EPLLIN_DEV_NAME "epl" // used for "/dev" and "/proc" entry #define EPLLIN_DEV_NAME "epl" // used for "/dev" and "/proc" entry
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// Commands for <ioctl> // Commands for <ioctl>
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
#define EPLLIN_CMD_INITIALIZE 0 // ulArg_p ~ tEplApiInitParam* #define EPLLIN_CMD_INITIALIZE 0 // ulArg_p ~ tEplApiInitParam*
#define EPLLIN_CMD_PI_IN 1 // ulArg_p ~ tEplApiProcessImage* #define EPLLIN_CMD_PI_IN 1 // ulArg_p ~ tEplApiProcessImage*
#define EPLLIN_CMD_PI_OUT 2 // ulArg_p ~ tEplApiProcessImage* #define EPLLIN_CMD_PI_OUT 2 // ulArg_p ~ tEplApiProcessImage*
#define EPLLIN_CMD_WRITE_OBJECT 3 // ulArg_p ~ tEplLinSdoObject* #define EPLLIN_CMD_WRITE_OBJECT 3 // ulArg_p ~ tEplLinSdoObject*
#define EPLLIN_CMD_READ_OBJECT 4 // ulArg_p ~ tEplLinSdoObject* #define EPLLIN_CMD_READ_OBJECT 4 // ulArg_p ~ tEplLinSdoObject*
#define EPLLIN_CMD_WRITE_LOCAL_OBJECT 5 // ulArg_p ~ tEplLinLocalObject* #define EPLLIN_CMD_WRITE_LOCAL_OBJECT 5 // ulArg_p ~ tEplLinLocalObject*
#define EPLLIN_CMD_READ_LOCAL_OBJECT 6 // ulArg_p ~ tEplLinLocalObject* #define EPLLIN_CMD_READ_LOCAL_OBJECT 6 // ulArg_p ~ tEplLinLocalObject*
#define EPLLIN_CMD_FREE_SDO_CHANNEL 7 // ulArg_p ~ tEplSdoComConHdl #define EPLLIN_CMD_FREE_SDO_CHANNEL 7 // ulArg_p ~ tEplSdoComConHdl
#define EPLLIN_CMD_NMT_COMMAND 8 // ulArg_p ~ tEplNmtEvent #define EPLLIN_CMD_NMT_COMMAND 8 // ulArg_p ~ tEplNmtEvent
#define EPLLIN_CMD_GET_EVENT 9 // ulArg_p ~ tEplLinEvent* #define EPLLIN_CMD_GET_EVENT 9 // ulArg_p ~ tEplLinEvent*
#define EPLLIN_CMD_MN_TRIGGER_STATE_CHANGE 10 // ulArg_p ~ tEplLinNodeCmdObject* #define EPLLIN_CMD_MN_TRIGGER_STATE_CHANGE 10 // ulArg_p ~ tEplLinNodeCmdObject*
#define EPLLIN_CMD_PI_SETUP 11 // ulArg_p ~ 0 #define EPLLIN_CMD_PI_SETUP 11 // ulArg_p ~ 0
#define EPLLIN_CMD_SHUTDOWN 12 // ulArg_p ~ 0 #define EPLLIN_CMD_SHUTDOWN 12 // ulArg_p ~ 0
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// typedef // typedef
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
typedef struct typedef struct {
{ unsigned int m_uiEventArgSize;
unsigned int m_uiEventArgSize; tEplApiEventArg *m_pEventArg;
tEplApiEventArg* m_pEventArg; tEplApiEventType *m_pEventType;
tEplApiEventType* m_pEventType; tEplKernel m_RetCbEvent;
tEplKernel m_RetCbEvent;
} tEplLinEvent; } tEplLinEvent;
typedef struct typedef struct {
{ tEplSdoComConHdl m_SdoComConHdl;
tEplSdoComConHdl m_SdoComConHdl; BOOL m_fValidSdoComConHdl;
BOOL m_fValidSdoComConHdl; unsigned int m_uiNodeId;
unsigned int m_uiNodeId; unsigned int m_uiIndex;
unsigned int m_uiIndex; unsigned int m_uiSubindex;
unsigned int m_uiSubindex; void *m_le_pData;
void* m_le_pData; unsigned int m_uiSize;
unsigned int m_uiSize; tEplSdoType m_SdoType;
tEplSdoType m_SdoType; void *m_pUserArg;
void* m_pUserArg;
} tEplLinSdoObject; } tEplLinSdoObject;
typedef struct typedef struct {
{ unsigned int m_uiIndex;
unsigned int m_uiIndex; unsigned int m_uiSubindex;
unsigned int m_uiSubindex; void *m_pData;
void* m_pData; unsigned int m_uiSize;
unsigned int m_uiSize;
} tEplLinLocalObject; } tEplLinLocalObject;
typedef struct typedef struct {
{ unsigned int m_uiNodeId;
unsigned int m_uiNodeId; tEplNmtNodeCommand m_NodeCommand;
tEplNmtNodeCommand m_NodeCommand;
} tEplLinNodeCmdObject; } tEplLinNodeCmdObject;
...@@ -146,8 +138,4 @@ typedef struct ...@@ -146,8 +138,4 @@ typedef struct
// function prototypes // function prototypes
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
#endif // #ifndef _EPL_API_LINUX_H_
#endif // #ifndef _EPL_API_LINUX_H_
...@@ -71,9 +71,6 @@ ...@@ -71,9 +71,6 @@
#ifndef _EPLCFG_H_ #ifndef _EPLCFG_H_
#define _EPLCFG_H_ #define _EPLCFG_H_
// ========================================================================= // =========================================================================
// generic defines which for whole EPL Stack // generic defines which for whole EPL Stack
// ========================================================================= // =========================================================================
...@@ -100,7 +97,7 @@ ...@@ -100,7 +97,7 @@
#define EPL_NO_USER_KERNEL #define EPL_NO_USER_KERNEL
#ifndef BENCHMARK_MODULES #ifndef BENCHMARK_MODULES
#define BENCHMARK_MODULES 0 //0xEE800042L #define BENCHMARK_MODULES 0 //0xEE800042L
#endif #endif
// Default defug level: // Default defug level:
...@@ -113,7 +110,6 @@ ...@@ -113,7 +110,6 @@
// * EPL_DBGLVL_ERROR = 0x40000000L // * EPL_DBGLVL_ERROR = 0x40000000L
// * EPL_DBGLVL_ALWAYS = 0x80000000L // * EPL_DBGLVL_ALWAYS = 0x80000000L
// EPL_MODULE_INTEGRATION defines all modules which are included in // EPL_MODULE_INTEGRATION defines all modules which are included in
// EPL application. Please add or delete modules for your application. // EPL application. Please add or delete modules for your application.
#define EPL_MODULE_INTEGRATION EPL_MODULE_OBDK \ #define EPL_MODULE_INTEGRATION EPL_MODULE_OBDK \
...@@ -155,7 +151,6 @@ ...@@ -155,7 +151,6 @@
// number of used ethernet controller // number of used ethernet controller
//#define EDRV_USED_ETH_CTRL 1 //#define EDRV_USED_ETH_CTRL 1
// ========================================================================= // =========================================================================
// Data Link Layer (DLL) specific defines // Data Link Layer (DLL) specific defines
// ========================================================================= // =========================================================================
...@@ -170,7 +165,6 @@ ...@@ -170,7 +165,6 @@
#define EPL_DLL_PRES_READY_AFTER_SOA FALSE #define EPL_DLL_PRES_READY_AFTER_SOA FALSE
//#define EPL_DLL_PRES_READY_AFTER_SOA TRUE //#define EPL_DLL_PRES_READY_AFTER_SOA TRUE
// ========================================================================= // =========================================================================
// OBD specific defines // OBD specific defines
// ========================================================================= // =========================================================================
...@@ -188,7 +182,6 @@ ...@@ -188,7 +182,6 @@
#define EPL_OBD_USE_VARIABLE_SUBINDEX_TAB TRUE #define EPL_OBD_USE_VARIABLE_SUBINDEX_TAB TRUE
// ========================================================================= // =========================================================================
// Timer module specific defines // Timer module specific defines
// ========================================================================= // =========================================================================
...@@ -200,8 +193,4 @@ ...@@ -200,8 +193,4 @@
#define EPL_TIMER_USE_HIGHRES TRUE #define EPL_TIMER_USE_HIGHRES TRUE
//#define EPL_TIMER_USE_HIGHRES FALSE //#define EPL_TIMER_USE_HIGHRES FALSE
#endif //_EPLCFG_H_ #endif //_EPLCFG_H_
This diff is collapsed.
...@@ -66,7 +66,6 @@ ...@@ -66,7 +66,6 @@
2006/06/08 d.k.: start of the implementation, version 1.00 2006/06/08 d.k.: start of the implementation, version 1.00
****************************************************************************/ ****************************************************************************/
#ifndef _EPL_DLL_H_ #ifndef _EPL_DLL_H_
...@@ -79,133 +78,123 @@ ...@@ -79,133 +78,123 @@
// const defines // const defines
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
#ifndef EPL_DLL_MAX_ASND_SERVICE_ID #ifndef EPL_DLL_MAX_ASND_SERVICE_ID
#define EPL_DLL_MAX_ASND_SERVICE_ID (EPL_C_DLL_MAX_ASND_SERVICE_IDS + 1) // last is kEplDllAsndSdo == 5 #define EPL_DLL_MAX_ASND_SERVICE_ID (EPL_C_DLL_MAX_ASND_SERVICE_IDS + 1) // last is kEplDllAsndSdo == 5
#endif #endif
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// typedef // typedef
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
typedef enum typedef enum {
{ kEplDllAsndNotDefined = 0x00,
kEplDllAsndNotDefined = 0x00, kEplDllAsndIdentResponse = 0x01,
kEplDllAsndIdentResponse = 0x01, kEplDllAsndStatusResponse = 0x02,
kEplDllAsndStatusResponse = 0x02, kEplDllAsndNmtRequest = 0x03,
kEplDllAsndNmtRequest = 0x03, kEplDllAsndNmtCommand = 0x04,
kEplDllAsndNmtCommand = 0x04, kEplDllAsndSdo = 0x05
kEplDllAsndSdo = 0x05
} tEplDllAsndServiceId; } tEplDllAsndServiceId;
typedef enum typedef enum {
{ kEplDllAsndFilterNone = 0x00,
kEplDllAsndFilterNone = 0x00, kEplDllAsndFilterLocal = 0x01, // receive only ASnd frames with local or broadcast node ID
kEplDllAsndFilterLocal = 0x01, // receive only ASnd frames with local or broadcast node ID kEplDllAsndFilterAny = 0x02, // receive any ASnd frame
kEplDllAsndFilterAny = 0x02, // receive any ASnd frame
} tEplDllAsndFilter; } tEplDllAsndFilter;
typedef enum typedef enum {
{ kEplDllReqServiceNo = 0x00,
kEplDllReqServiceNo = 0x00, kEplDllReqServiceIdent = 0x01,
kEplDllReqServiceIdent = 0x01, kEplDllReqServiceStatus = 0x02,
kEplDllReqServiceStatus = 0x02, kEplDllReqServiceNmtRequest = 0x03,
kEplDllReqServiceNmtRequest = 0x03, kEplDllReqServiceUnspecified = 0xFF,
kEplDllReqServiceUnspecified= 0xFF,
} tEplDllReqServiceId; } tEplDllReqServiceId;
typedef enum typedef enum {
{ kEplDllAsyncReqPrioNmt = 0x07, // PRIO_NMT_REQUEST
kEplDllAsyncReqPrioNmt = 0x07, // PRIO_NMT_REQUEST kEplDllAsyncReqPrio6 = 0x06,
kEplDllAsyncReqPrio6 = 0x06, kEplDllAsyncReqPrio5 = 0x05,
kEplDllAsyncReqPrio5 = 0x05, kEplDllAsyncReqPrio4 = 0x04,
kEplDllAsyncReqPrio4 = 0x04, kEplDllAsyncReqPrioGeneric = 0x03, // PRIO_GENERIC_REQUEST
kEplDllAsyncReqPrioGeneric = 0x03, // PRIO_GENERIC_REQUEST kEplDllAsyncReqPrio2 = 0x02, // till WSP 0.1.3: PRIO_ABOVE_GENERIC
kEplDllAsyncReqPrio2 = 0x02, // till WSP 0.1.3: PRIO_ABOVE_GENERIC kEplDllAsyncReqPrio1 = 0x01, // till WSP 0.1.3: PRIO_BELOW_GENERIC
kEplDllAsyncReqPrio1 = 0x01, // till WSP 0.1.3: PRIO_BELOW_GENERIC kEplDllAsyncReqPrio0 = 0x00, // till WSP 0.1.3: PRIO_GENERIC_REQUEST
kEplDllAsyncReqPrio0 = 0x00, // till WSP 0.1.3: PRIO_GENERIC_REQUEST
} tEplDllAsyncReqPriority; } tEplDllAsyncReqPriority;
typedef struct typedef struct {
{ unsigned int m_uiFrameSize;
unsigned int m_uiFrameSize; tEplFrame *m_pFrame;
tEplFrame * m_pFrame; tEplNetTime m_NetTime;
tEplNetTime m_NetTime;
} tEplFrameInfo; } tEplFrameInfo;
typedef struct typedef struct {
{ unsigned int m_uiSizeOfStruct;
unsigned int m_uiSizeOfStruct; BOOL m_fAsyncOnly; // do not need to register PRes-Frame
BOOL m_fAsyncOnly; // do not need to register PRes-Frame unsigned int m_uiNodeId; // local node ID
unsigned int m_uiNodeId; // local node ID
// 0x1F82: NMT_FeatureFlags_U32
// 0x1F82: NMT_FeatureFlags_U32 DWORD m_dwFeatureFlags;
DWORD m_dwFeatureFlags; // Cycle Length (0x1006: NMT_CycleLen_U32) in [us]
// Cycle Length (0x1006: NMT_CycleLen_U32) in [us] DWORD m_dwCycleLen; // required for error detection
DWORD m_dwCycleLen; // required for error detection // 0x1F98: NMT_CycleTiming_REC
// 0x1F98: NMT_CycleTiming_REC // 0x1F98.1: IsochrTxMaxPayload_U16
// 0x1F98.1: IsochrTxMaxPayload_U16 unsigned int m_uiIsochrTxMaxPayload; // const
unsigned int m_uiIsochrTxMaxPayload; // const // 0x1F98.2: IsochrRxMaxPayload_U16
// 0x1F98.2: IsochrRxMaxPayload_U16 unsigned int m_uiIsochrRxMaxPayload; // const
unsigned int m_uiIsochrRxMaxPayload; // const // 0x1F98.3: PResMaxLatency_U32
// 0x1F98.3: PResMaxLatency_U32 DWORD m_dwPresMaxLatency; // const in [ns], only required for IdentRes
DWORD m_dwPresMaxLatency; // const in [ns], only required for IdentRes // 0x1F98.4: PReqActPayloadLimit_U16
// 0x1F98.4: PReqActPayloadLimit_U16 unsigned int m_uiPreqActPayloadLimit; // required for initialisation (+24 bytes)
unsigned int m_uiPreqActPayloadLimit; // required for initialisation (+24 bytes) // 0x1F98.5: PResActPayloadLimit_U16
// 0x1F98.5: PResActPayloadLimit_U16 unsigned int m_uiPresActPayloadLimit; // required for initialisation of Pres frame (+24 bytes)
unsigned int m_uiPresActPayloadLimit; // required for initialisation of Pres frame (+24 bytes) // 0x1F98.6: ASndMaxLatency_U32
// 0x1F98.6: ASndMaxLatency_U32 DWORD m_dwAsndMaxLatency; // const in [ns], only required for IdentRes
DWORD m_dwAsndMaxLatency; // const in [ns], only required for IdentRes // 0x1F98.7: MultiplCycleCnt_U8
// 0x1F98.7: MultiplCycleCnt_U8 unsigned int m_uiMultiplCycleCnt; // required for error detection
unsigned int m_uiMultiplCycleCnt; // required for error detection // 0x1F98.8: AsyncMTU_U16
// 0x1F98.8: AsyncMTU_U16 unsigned int m_uiAsyncMtu; // required to set up max frame size
unsigned int m_uiAsyncMtu; // required to set up max frame size // $$$ 0x1F98.9: Prescaler_U16
// $$$ 0x1F98.9: Prescaler_U16 // $$$ Multiplexed Slot
// $$$ Multiplexed Slot
// 0x1C14: DLL_LossOfFrameTolerance_U32 in [ns]
// 0x1C14: DLL_LossOfFrameTolerance_U32 in [ns] DWORD m_dwLossOfFrameTolerance;
DWORD m_dwLossOfFrameTolerance;
// 0x1F8A: NMT_MNCycleTiming_REC
// 0x1F8A: NMT_MNCycleTiming_REC // 0x1F8A.1: WaitSoCPReq_U32 in [ns]
// 0x1F8A.1: WaitSoCPReq_U32 in [ns] DWORD m_dwWaitSocPreq;
DWORD m_dwWaitSocPreq;
// 0x1F8A.2: AsyncSlotTimeout_U32 in [ns]
// 0x1F8A.2: AsyncSlotTimeout_U32 in [ns] DWORD m_dwAsyncSlotTimeout;
DWORD m_dwAsyncSlotTimeout;
} tEplDllConfigParam; } tEplDllConfigParam;
typedef struct typedef struct {
{ unsigned int m_uiSizeOfStruct;
unsigned int m_uiSizeOfStruct; DWORD m_dwDeviceType; // NMT_DeviceType_U32
DWORD m_dwDeviceType; // NMT_DeviceType_U32 DWORD m_dwVendorId; // NMT_IdentityObject_REC.VendorId_U32
DWORD m_dwVendorId; // NMT_IdentityObject_REC.VendorId_U32 DWORD m_dwProductCode; // NMT_IdentityObject_REC.ProductCode_U32
DWORD m_dwProductCode; // NMT_IdentityObject_REC.ProductCode_U32 DWORD m_dwRevisionNumber; // NMT_IdentityObject_REC.RevisionNo_U32
DWORD m_dwRevisionNumber; // NMT_IdentityObject_REC.RevisionNo_U32 DWORD m_dwSerialNumber; // NMT_IdentityObject_REC.SerialNo_U32
DWORD m_dwSerialNumber; // NMT_IdentityObject_REC.SerialNo_U32 QWORD m_qwVendorSpecificExt1;
QWORD m_qwVendorSpecificExt1; DWORD m_dwVerifyConfigurationDate; // CFM_VerifyConfiguration_REC.ConfDate_U32
DWORD m_dwVerifyConfigurationDate; // CFM_VerifyConfiguration_REC.ConfDate_U32 DWORD m_dwVerifyConfigurationTime; // CFM_VerifyConfiguration_REC.ConfTime_U32
DWORD m_dwVerifyConfigurationTime; // CFM_VerifyConfiguration_REC.ConfTime_U32 DWORD m_dwApplicationSwDate; // PDL_LocVerApplSw_REC.ApplSwDate_U32 on programmable device or date portion of NMT_ManufactSwVers_VS on non-programmable device
DWORD m_dwApplicationSwDate; // PDL_LocVerApplSw_REC.ApplSwDate_U32 on programmable device or date portion of NMT_ManufactSwVers_VS on non-programmable device DWORD m_dwApplicationSwTime; // PDL_LocVerApplSw_REC.ApplSwTime_U32 on programmable device or time portion of NMT_ManufactSwVers_VS on non-programmable device
DWORD m_dwApplicationSwTime; // PDL_LocVerApplSw_REC.ApplSwTime_U32 on programmable device or time portion of NMT_ManufactSwVers_VS on non-programmable device DWORD m_dwIpAddress;
DWORD m_dwIpAddress; DWORD m_dwSubnetMask;
DWORD m_dwSubnetMask; DWORD m_dwDefaultGateway;
DWORD m_dwDefaultGateway; BYTE m_sHostname[32];
BYTE m_sHostname[32]; BYTE m_abVendorSpecificExt2[48];
BYTE m_abVendorSpecificExt2[48];
} tEplDllIdentParam; } tEplDllIdentParam;
typedef struct typedef struct {
{ unsigned int m_uiNodeId;
unsigned int m_uiNodeId; WORD m_wPreqPayloadLimit; // object 0x1F8B: NMT_MNPReqPayloadLimitList_AU16
WORD m_wPreqPayloadLimit; // object 0x1F8B: NMT_MNPReqPayloadLimitList_AU16 WORD m_wPresPayloadLimit; // object 0x1F8D: NMT_PResPayloadLimitList_AU16
WORD m_wPresPayloadLimit; // object 0x1F8D: NMT_PResPayloadLimitList_AU16 DWORD m_dwPresTimeout; // object 0x1F92: NMT_MNCNPResTimeout_AU32
DWORD m_dwPresTimeout; // object 0x1F92: NMT_MNCNPResTimeout_AU32
} tEplDllNodeInfo; } tEplDllNodeInfo;
...@@ -213,8 +202,4 @@ typedef struct ...@@ -213,8 +202,4 @@ typedef struct
// function prototypes // function prototypes
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
#endif // #ifndef _EPL_DLL_H_
#endif // #ifndef _EPL_DLL_H_
...@@ -66,13 +66,11 @@ ...@@ -66,13 +66,11 @@
2006/06/20 d.k.: start of the implementation, version 1.00 2006/06/20 d.k.: start of the implementation, version 1.00
****************************************************************************/ ****************************************************************************/
#ifndef _EPL_DLLCAL_H_ #ifndef _EPL_DLLCAL_H_
#define _EPL_DLLCAL_H_ #define _EPL_DLLCAL_H_
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// const defines // const defines
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
...@@ -105,18 +103,16 @@ ...@@ -105,18 +103,16 @@
// typedef // typedef
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
typedef struct typedef struct {
{ tEplDllAsndServiceId m_ServiceId;
tEplDllAsndServiceId m_ServiceId; tEplDllAsndFilter m_Filter;
tEplDllAsndFilter m_Filter;
} tEplDllCalAsndServiceIdFilter; } tEplDllCalAsndServiceIdFilter;
typedef struct typedef struct {
{ tEplDllReqServiceId m_Service;
tEplDllReqServiceId m_Service; unsigned int m_uiNodeId;
unsigned int m_uiNodeId; BYTE m_bSoaFlag1;
BYTE m_bSoaFlag1;
} tEplDllCalIssueRequest; } tEplDllCalIssueRequest;
...@@ -124,8 +120,4 @@ typedef struct ...@@ -124,8 +120,4 @@ typedef struct
// function prototypes // function prototypes
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
#endif // #ifndef _EPL_DLLKCAL_H_
#endif // #ifndef _EPL_DLLKCAL_H_
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -66,39 +66,27 @@ ...@@ -66,39 +66,27 @@
2008/11/17 d.k.: start of the implementation 2008/11/17 d.k.: start of the implementation
****************************************************************************/ ****************************************************************************/
#ifndef _EPLLED_H_ #ifndef _EPLLED_H_
#define _EPLLED_H_ #define _EPLLED_H_
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// const defines // const defines
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// typedef // typedef
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
typedef enum {
typedef enum kEplLedTypeStatus = 0x00,
{ kEplLedTypeError = 0x01,
kEplLedTypeStatus = 0x00,
kEplLedTypeError = 0x01,
} tEplLedType; } tEplLedType;
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// function prototypes // function prototypes
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
#endif // #ifndef _EPLLED_H_
#endif // #ifndef _EPLLED_H_
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -66,7 +66,6 @@ ...@@ -66,7 +66,6 @@
2006/05/22 d.k.: start of the implementation, version 1.00 2006/05/22 d.k.: start of the implementation, version 1.00
****************************************************************************/ ****************************************************************************/
#ifndef _EPL_PDO_H_ #ifndef _EPL_PDO_H_
...@@ -85,42 +84,34 @@ ...@@ -85,42 +84,34 @@
// NodeId for PRes TPDO // NodeId for PRes TPDO
#define EPL_PDO_PRES_NODE_ID 0x00 #define EPL_PDO_PRES_NODE_ID 0x00
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// typedef // typedef
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
typedef struct typedef struct {
{ void *m_pVar;
void* m_pVar; WORD m_wOffset; // in Bits
WORD m_wOffset; // in Bits WORD m_wSize; // in Bits
WORD m_wSize; // in Bits BOOL m_fNumeric; // numeric value -> use AMI functions
BOOL m_fNumeric; // numeric value -> use AMI functions
} tEplPdoMapping; } tEplPdoMapping;
typedef struct typedef struct {
{ unsigned int m_uiSizeOfStruct;
unsigned int m_uiSizeOfStruct; unsigned int m_uiPdoId;
unsigned int m_uiPdoId; unsigned int m_uiNodeId;
unsigned int m_uiNodeId; // 0xFF=invalid, RPDO: 0x00=PReq, localNodeId=PRes, remoteNodeId=PRes
// 0xFF=invalid, RPDO: 0x00=PReq, localNodeId=PRes, remoteNodeId=PRes // TPDO: 0x00=PRes, MN: CnNodeId=PReq
// TPDO: 0x00=PRes, MN: CnNodeId=PReq
BOOL m_fTxRx; BOOL m_fTxRx;
BYTE m_bMappingVersion; BYTE m_bMappingVersion;
unsigned int m_uiMaxMappingEntries; // maximum number of mapping entries, i.e. size of m_aPdoMapping unsigned int m_uiMaxMappingEntries; // maximum number of mapping entries, i.e. size of m_aPdoMapping
tEplPdoMapping m_aPdoMapping[1]; tEplPdoMapping m_aPdoMapping[1];
} tEplPdoParam; } tEplPdoParam;
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// function prototypes // function prototypes
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
#endif // #ifndef _EPL_PDO_H_
#endif // #ifndef _EPL_PDO_H_
This diff is collapsed.
...@@ -71,7 +71,6 @@ ...@@ -71,7 +71,6 @@
#ifndef _EPLSDOAC_H_ #ifndef _EPLSDOAC_H_
#define _EPLSDOAC_H_ #define _EPLSDOAC_H_
// ========================================================================= // =========================================================================
// SDO abort codes // SDO abort codes
// ========================================================================= // =========================================================================
...@@ -106,7 +105,6 @@ ...@@ -106,7 +105,6 @@
#define EPL_SDOAC_OBJECT_DICTIONARY_NOT_EXIST 0x08000023L #define EPL_SDOAC_OBJECT_DICTIONARY_NOT_EXIST 0x08000023L
#define EPL_SDOAC_CONFIG_DATA_EMPTY 0x08000024L #define EPL_SDOAC_CONFIG_DATA_EMPTY 0x08000024L
#endif // _EPLSDOAC_H_ #endif // _EPLSDOAC_H_
// Die letzte Zeile mu unbedingt eine leere Zeile sein, weil manche Compiler // Die letzte Zeile mu unbedingt eine leere Zeile sein, weil manche Compiler
......
This diff is collapsed.
...@@ -66,7 +66,6 @@ ...@@ -66,7 +66,6 @@
2006/07/06 k.t.: start of the implementation 2006/07/06 k.t.: start of the implementation
****************************************************************************/ ****************************************************************************/
#include "EplInc.h" #include "EplInc.h"
...@@ -75,12 +74,10 @@ ...@@ -75,12 +74,10 @@
#ifndef _EPLTIMER_H_ #ifndef _EPLTIMER_H_
#define _EPLTIMER_H_ #define _EPLTIMER_H_
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// const defines // const defines
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// typedef // typedef
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
...@@ -88,38 +85,33 @@ ...@@ -88,38 +85,33 @@
// type for timer handle // type for timer handle
typedef unsigned long tEplTimerHdl; typedef unsigned long tEplTimerHdl;
typedef struct typedef struct {
{ tEplEventSink m_EventSink;
tEplEventSink m_EventSink; unsigned long m_ulArg; // d.k.: converted to unsigned long because
unsigned long m_ulArg; // d.k.: converted to unsigned long because // it is never accessed as a pointer by the
// it is never accessed as a pointer by the // timer module and the data the
// timer module and the data the // pointer points to is not saved in any way.
// pointer points to is not saved in any way. // It is just a value. The user is responsible
// It is just a value. The user is responsible // to store the data statically and convert
// to store the data statically and convert // the pointer between address spaces.
// the pointer between address spaces.
} tEplTimerArg; } tEplTimerArg;
typedef struct typedef struct {
{ tEplTimerHdl m_TimerHdl;
tEplTimerHdl m_TimerHdl; unsigned long m_ulArg; // d.k.: converted to unsigned long because
unsigned long m_ulArg; // d.k.: converted to unsigned long because // it is never accessed as a pointer by the
// it is never accessed as a pointer by the // timer module and the data the
// timer module and the data the // pointer points to is not saved in any way.
// pointer points to is not saved in any way. // It is just a value.
// It is just a value.
} tEplTimerEventArg; } tEplTimerEventArg;
typedef tEplKernel (PUBLIC * tEplTimerkCallback) ( typedef tEplKernel(PUBLIC * tEplTimerkCallback) (tEplTimerEventArg *
tEplTimerEventArg* pEventArg_p); pEventArg_p);
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// function prototypes // function prototypes
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
#endif // #ifndef _EPLTIMER_H_
#endif // #ifndef _EPLTIMER_H_
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment