libmetal
Loading...
Searching...
No Matches
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
8/*
9 * @file freertos/sys.h
10 * @brief FreeRTOS system primitives for libmetal.
11 */
12
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
22#ifdef XLNX_PLATFORM
23#include <metal/system/freertos/xlnx/sys.h>
24#else
25#include "./@PROJECT_MACHINE@/sys.h"
26#endif
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32#ifndef METAL_MAX_DEVICE_REGIONS
33#define METAL_MAX_DEVICE_REGIONS 1
34#endif
35
38
41};
42
43#ifdef METAL_INTERNAL
44
48void sys_irq_restore_enable(unsigned int flags);
49
53unsigned int sys_irq_save_disable(void);
54
55#endif /* METAL_INTERNAL */
56
57#ifdef __cplusplus
58}
59#endif
60
61#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
Definition sys.h:63
Definition sys.h:37
struct metal_common_state common
Definition sys.h:40