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	freertos/template/sys.h
9  * @brief	freertos template system primitives for libmetal.
10  */
11 
12 #ifndef __METAL_FREERTOS_SYS__H__
13 #error "Include metal/sys.h instead of metal/freertos/@PROJECT_MACHINE@/sys.h"
14 #endif
15 
16 #ifndef __METAL_FREERTOS_TEMPLATE_SYS__H__
17 #define __METAL_FREERTOS_TEMPLATE_SYS__H__
18 
19 #include <metal/cpu.h>
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 #define metal_yield() metal_cpu_yield()
26 
27 #ifdef METAL_INTERNAL
28 
29 void sys_irq_enable(unsigned int vector);
30 
31 void sys_irq_disable(unsigned int vector);
32 
33 #endif /* METAL_INTERNAL */
34 
35 #ifdef __cplusplus
36 }
37 #endif
38 
39 #endif /* __METAL_FREERTOS_SYS__H__ */
40