1 /* 2 * Copyright (c) 2018, Linaro Inc. and Contributors. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 /* 8 * @file generic/template/sys.h 9 * @brief generic template 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_TEMPLATE_SYS__H__ 17 #define __METAL_GENERIC_TEMPLATE_SYS__H__ 18 19 #ifdef __cplusplus 20 extern "C" { 21 #endif 22 23 #ifdef METAL_INTERNAL 24 25 void sys_irq_enable(unsigned int vector); 26 27 void sys_irq_disable(unsigned int vector); 28 29 #endif /* METAL_INTERNAL */ 30 31 #ifdef __cplusplus 32 } 33 #endif 34 35 #endif /* __METAL_GENERIC_TEMPLATE_SYS__H__ */ 36