libmetal
sys.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2017, Linaro Limited. and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7/*
8 * @file zephyr/sys.h
9 * @brief Zephyr system primitives for libmetal.
10 */
11
12#ifndef __METAL_SYS__H__
13#error "Include metal/sys.h instead of metal/zephyr/sys.h"
14#endif
15
16#ifndef __METAL_ZEPHYR_SYS__H__
17#define __METAL_ZEPHYR_SYS__H__
18
19#include <stdlib.h>
20
21#include "./@PROJECT_MACHINE@/sys.h"
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27#define METAL_INIT_DEFAULTS \
28{ \
29 .log_handler = metal_zephyr_log_handler, \
30 .log_level = METAL_LOG_INFO, \
31}
32
33#ifndef METAL_MAX_DEVICE_REGIONS
34#define METAL_MAX_DEVICE_REGIONS 1
35#endif
36
38struct metal_state {
39
42};
43
44#ifdef __cplusplus
45}
46#endif
47
48#endif /* __METAL_ZEPHYR_SYS__H__ */
Definition: sys.h:63
Definition: sys.h:30
struct metal_common_state common
Definition: sys.h:33