Main Page
Related Pages
Modules
Classes
Files
File List
File Members
SOEM
osal
intime
intime/osal_defs.h
Go to the documentation of this file.
1
/*
2
* Licensed under the GNU General Public License version 2 with exceptions. See
3
* LICENSE file in the project root for full license information
4
*/
5
6
#ifndef _osal_defs_
7
#define _osal_defs_
8
9
#ifdef __cplusplus
10
extern
"C"
11
{
12
#endif
13
14
// define if debug printf is needed
15
//#define EC_DEBUG
16
17
#ifdef EC_DEBUG
18
#define EC_PRINT printf
19
#else
20
#define EC_PRINT(...) do {} while (0)
21
#endif
22
23
#ifndef PACKED
24
#ifdef _MSC_VER
25
#define PACKED_BEGIN __pragma(pack(push, 1))
26
#define PACKED
27
#define PACKED_END __pragma(pack(pop))
28
#elif defined(__GNUC__)
29
#define PACKED_BEGIN
30
#define PACKED __attribute__((__packed__))
31
#define PACKED_END
32
#endif
33
#endif
34
35
#define OSAL_THREAD_HANDLE RTHANDLE
36
#define OSAL_THREAD_FUNC void
37
#define OSAL_THREAD_FUNC_RT void
38
39
#ifdef __cplusplus
40
}
41
#endif
42
43
#endif
soem
Author(s): Arthur Ketels and M.J.G. van den Molengraft
autogenerated on Sat Jun 27 2020 03:48:21