libmetal
lib
system
freertos
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
22
extern
"C"
{
23
#endif
24
25
#ifndef METAL_MAX_DEVICE_REGIONS
26
#define METAL_MAX_DEVICE_REGIONS 1
27
#endif
28
30
struct
metal_state
{
31
33
struct
metal_common_state
common
;
34
};
35
36
#ifdef METAL_INTERNAL
37
41
void
sys_irq_restore_enable
(
unsigned
int
flags);
42
46
unsigned
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__ */
metal_state::common
struct metal_common_state common
Definition:
sys.h:33
metal_common_state
Definition:
sys.h:63
sys_irq_restore_enable
void sys_irq_restore_enable(unsigned int flags)
Definition:
sys.c:17
sys_irq_save_disable
unsigned int sys_irq_save_disable(void)
Definition:
sys.c:23
metal_state
Definition:
sys.h:30
Generated on Sun May 10 2020 00:00:00 for libmetal by
1.8.17