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 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7/*
8 * @file freertos/sys.h
9 * @brief FreeRTOS system primitives for libmetal.
10 */
11
12#ifndef __METAL_SYS__H__
13#error "Include metal/sys.h instead of metal/freertos/sys.h"
14#endif
15
16#ifndef __METAL_FREERTOS_SYS__H__
17#define __METAL_FREERTOS_SYS__H__
18
19#include "./@PROJECT_MACHINE@/sys.h"
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25#ifndef METAL_MAX_DEVICE_REGIONS
26#define METAL_MAX_DEVICE_REGIONS 1
27#endif
28
31
34};
35
36#ifdef METAL_INTERNAL
37
41void sys_irq_restore_enable(unsigned int flags);
42
46unsigned int sys_irq_save_disable(void);
47
48#endif /* METAL_INTERNAL */
49
50#ifdef __cplusplus
51}
52#endif
53
54#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:30
struct metal_common_state common
Definition sys.h:33