mirror of
https://github.com/OpenEtherCATsociety/SOEM.git
synced 2026-02-06 09:03:10 +08:00
This software is now dual-licensed, see LICENSE.md for details. Change-Id: I646ab4a6e69f9f8c3cdfadd9ad3e4ca7007f729d
40 lines
667 B
C
40 lines
667 B
C
/*
|
|
* This software is dual-licensed under GPLv3 and a commercial
|
|
* license. See the file LICENSE.md distributed with this software for
|
|
* full license information.
|
|
*/
|
|
|
|
#ifndef _osal_defs_
|
|
#define _osal_defs_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
// define if debug printf is needed
|
|
//#define EC_DEBUG
|
|
|
|
#ifdef EC_DEBUG
|
|
#define EC_PRINT printf
|
|
#else
|
|
#define EC_PRINT(...) do {} while (0)
|
|
#endif
|
|
|
|
#ifndef PACKED
|
|
#define PACKED_BEGIN
|
|
#define PACKED __attribute__((__packed__))
|
|
#define PACKED_END
|
|
#endif
|
|
|
|
#include <pthread.h>
|
|
#define OSAL_THREAD_HANDLE pthread_t *
|
|
#define OSAL_THREAD_FUNC void
|
|
#define OSAL_THREAD_FUNC_RT void
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|