SOEM
osal
rtk
rtk/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
#define PACKED_BEGIN
25
#define PACKED __attribute__((__packed__))
26
#define PACKED_END
27
#endif
28
29
#define OSAL_THREAD_HANDLE task_t *
30
#define OSAL_THREAD_FUNC void
31
#define OSAL_THREAD_FUNC_RT void
32
33
#ifdef __cplusplus
34
}
35
#endif
36
37
#endif
soem
Author(s): Arthur Ketels and M.J.G. van den Molengraft
autogenerated on Wed Mar 2 2022 01:01:49