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 #ifndef __METAL_GENERIC_MICROBLAZE_SYS__H__
17 #define __METAL_GENERIC_MICROBLAZE_SYS__H__
18 
19 #include <metal/compiler.h>
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 #ifdef METAL_INTERNAL
26 
27 void metal_weak sys_irq_enable(unsigned int vector);
28 
29 void metal_weak sys_irq_disable(unsigned int vector);
30 
31 #endif /* METAL_INTERNAL */
32 
33 #ifdef __cplusplus
34 }
35 #endif
36 
37 #endif /* __METAL_GENERIC_MICROBLAZE_SYS__H__ */
#define metal_weak
Definition: compiler.h:21
void sys_irq_enable(unsigned int vector)
Definition: sys.c:27
void sys_irq_disable(unsigned int vector)
Definition: sys.c:34