libmetal
Toggle main menu visibility
Loading...
Searching...
No Matches
lib
system
nuttx
sys.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2018, Pinecone Inc. and Contributors. All rights reserved.
3
*
4
* SPDX-License-Identifier: BSD-3-Clause
5
*/
6
11
12
#ifndef __METAL_SYS__H__
13
#error "Include metal/sys.h instead of metal/nuttx/sys.h"
14
#endif
15
16
#ifndef __METAL_NUTTX_SYS__H__
17
#define __METAL_NUTTX_SYS__H__
18
19
#include <metal/sleep.h>
20
#include <syslog.h>
21
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
26
#define metal_yield() metal_sleep_usec(1000)
27
28
#define METAL_INIT_DEFAULTS \
29
{ \
30
.log_handler = (metal_log_handler)syslog, \
31
.log_level = METAL_LOG_INFO, \
32
}
33
35
struct
metal_state
{
36
38
struct
metal_common_state
common
;
39
};
40
41
#ifdef __cplusplus
42
}
43
#endif
44
45
#endif
/* __METAL_NUTTX_SYS__H__ */
metal_common_state
Definition
sys.h:63
metal_state
Definition
sys.h:34
metal_state::common
struct metal_common_state common
Definition
sys.h:37
Generated on
for libmetal by
1.17.0