mirror of
https://github.com/OpenEtherCATsociety/SOEM.git
synced 2026-02-05 16:50:36 +08:00
Move unmaintained ports and samples to contrib folder. Change-Id: Ie1b1a8290a0e2204b6e4e2e5c838585eb88d9e81
31 lines
605 B
C
31 lines
605 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_
|
|
|
|
// define if debug printf is needed
|
|
#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
|
|
|
|
#define OSAL_THREAD_HANDLE TASK_ID
|
|
#define OSAL_THREAD_FUNC void
|
|
#define OSAL_THREAD_FUNC_RT void
|
|
|
|
#endif
|