libmetal
sys.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2017, Xilinx Inc. and Contributors. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 /*
8  * @file generic/microblaze_generic/sys.h
9  * @brief generic microblaze system primitives for libmetal.
10  */
11 
12 #ifndef __METAL_GENERIC_SYS__H__
13 #error "Include metal/sys.h instead of metal/generic/@PROJECT_MACHINE@/sys.h"
14 #endif
15 
16 #include <metal/system/@PROJECT_SYSTEM@/xlnx_common/sys.h>
17 
18 #ifndef __METAL_GENERIC_MICROBLAZE_SYS__H__
19 #define __METAL_GENERIC_MICROBLAZE_SYS__H__
20 
21 #include <metal/compiler.h>
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 #ifdef METAL_INTERNAL
28 
29 #ifndef XLNX_MAXIRQS
30 #define XLNX_MAXIRQS 32
31 #endif
32 
33 void metal_weak sys_irq_enable(unsigned int vector);
34 
35 void metal_weak sys_irq_disable(unsigned int vector);
36 
37 #endif /* METAL_INTERNAL */
38 
39 #ifdef __cplusplus
40 }
41 #endif
42 
43 #endif /* __METAL_GENERIC_MICROBLAZE_SYS__H__ */
sys_irq_disable
void sys_irq_disable(unsigned int vector)
Definition: sys.c:36
sys_irq_enable
void sys_irq_enable(unsigned int vector)
Definition: sys.c:29
metal_weak
#define metal_weak
Definition: compiler.h:21