libmetal  353
sys.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2016, Xilinx Inc. and Contributors. All rights reserved.
3  * Copyright (c) 2022-2023 Advanced Micro Devices, Inc. All Rights Reserved.
4  *
5  * SPDX-License-Identifier: BSD-3-Clause
6  */
7 
13 #ifndef __METAL_SYS__H__
14 #error "Include metal/sys.h instead of metal/freertos/sys.h"
15 #endif
16 
17 #ifndef __METAL_FREERTOS_SYS__H__
18 #define __METAL_FREERTOS_SYS__H__
19 
20 #include <metal/errno.h>
21 #include <metal/cpu.h>
22 
23 #include "./@PROJECT_MACHINE@/sys.h"
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 #ifndef METAL_MAX_DEVICE_REGIONS
29 #define METAL_MAX_DEVICE_REGIONS 1
30 #endif
31 
32 #define metal_yield() metal_cpu_yield()
33 
35 struct metal_state {
36 
39 };
40 
41 #ifdef METAL_INTERNAL
42 
46 void sys_irq_restore_enable(unsigned int flags);
47 
51 unsigned int sys_irq_save_disable(void);
52 
53 #endif /* METAL_INTERNAL */
54 
55 #ifdef __cplusplus
56 }
57 #endif
58 
59 #endif /* __METAL_FREERTOS_SYS__H__ */
unsigned int sys_irq_save_disable(void)
Definition: sys.c:23
void sys_irq_restore_enable(unsigned int flags)
Definition: sys.c:17
System independent runtime state for libmetal.
Definition: sys.h:63
Structure for FreeRTOS libmetal runtime state.
Definition: sys.h:35
struct metal_common_state common
Common (system independent) data.
Definition: sys.h:38