SOEM
osal
erika
erika/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
#include <sys/time.h>
15
#include <stdlib.h>
16
#include <ee.h>
17
18
// define if debug print is needed
19
#define EC_DEBUG
20
21
#ifdef EC_DEBUG
22
#define EC_PRINT OSEE_PRINT
23
#else
24
#define EC_PRINT(...) do {} while (0)
25
#endif
26
27
#ifndef PACKED
28
#define PACKED_BEGIN
29
#define PACKED __attribute__((__packed__))
30
#define PACKED_END
31
#endif
32
33
int
osal_gettimeofday
(
struct
timeval *tv,
struct
timezone *tz);
34
void
*
osal_malloc
(
size_t
size);
35
void
osal_free
(
void
*ptr);
36
37
#ifdef __cplusplus
38
}
39
#endif
40
41
#endif
osal_free
void osal_free(void *ptr)
Definition:
erika/osal.c:99
osal_malloc
void * osal_malloc(size_t size)
Definition:
erika/osal.c:94
osal_gettimeofday
int osal_gettimeofday(struct timeval *tv, struct timezone *tz)
Definition:
erika/osal.c:28
soem
Author(s): Arthur Ketels and M.J.G. van den Molengraft
autogenerated on Wed Mar 2 2022 01:01:49