libmetal
Toggle main menu visibility
Loading...
Searching...
No Matches
lib
system
generic
sys.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2015, Xilinx Inc. and Contributors. All rights reserved.
3
*
4
* SPDX-License-Identifier: BSD-3-Clause
5
*/
6
11
12
#ifndef __METAL_SYS__H__
13
#error "Include metal/sys.h instead of metal/generic/sys.h"
14
#endif
15
16
#ifndef __METAL_GENERIC_SYS__H__
17
#define __METAL_GENERIC_SYS__H__
18
19
#include <limits.h>
20
#include <metal/cpu.h>
21
#include <metal/errno.h>
22
#include <stdio.h>
23
#include <stdlib.h>
24
#include <stdarg.h>
25
#include <string.h>
26
27
#ifdef __cplusplus
28
extern
"C"
{
29
#endif
30
31
#ifndef METAL_MAX_DEVICE_REGIONS
32
#define METAL_MAX_DEVICE_REGIONS 1
33
#endif
34
36
struct
metal_state
{
37
39
struct
metal_common_state
common
;
40
};
41
42
#define metal_yield() metal_cpu_yield()
43
44
#ifdef METAL_INTERNAL
45
49
void
sys_irq_restore_enable
(
unsigned
int
flags);
50
54
unsigned
int
sys_irq_save_disable
(
void
);
55
61
void
sys_irq_enable
(
unsigned
int
vector);
62
68
void
sys_irq_disable
(
unsigned
int
vector);
69
70
#endif
/* METAL_INTERNAL */
71
72
#ifdef __cplusplus
73
}
74
#endif
75
76
#endif
/* __METAL_GENERIC_SYS__H__ */
sys_irq_disable
void sys_irq_disable(unsigned int vector)
Definition
sys.c:36
sys_irq_save_disable
unsigned int sys_irq_save_disable(void)
Definition
sys.c:23
sys_irq_enable
void sys_irq_enable(unsigned int vector)
Definition
sys.c:29
sys_irq_restore_enable
void sys_irq_restore_enable(unsigned int flags)
Definition
sys.c:17
metal_common_state
Definition
sys.h:63
metal_state
Definition
sys.h:34
metal_state::common
struct metal_common_state common
Definition
sys.h:37
Generated on
for libmetal by
1.17.0