Files
SOEM/contrib/osal/vxworks/osal_defs.h
Hans-Erik Floryd 5d87e8d9a2 Add contrib folder
Move unmaintained ports and samples to contrib folder.

Change-Id: Ie1b1a8290a0e2204b6e4e2e5c838585eb88d9e81
2025-07-10 10:23:07 +02:00

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