blob: 041fbd7b3abf1411e5b1572b292fb92b17062feb [file] [log] [blame]
Kristofer Jonsson02eef5b2022-09-06 14:38:10 +02001/*
2 * SPDX-FileCopyrightText: Copyright 2022 Arm Limited and/or its affiliates <open-source-office@arm.com>
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7/*
8 * @file freertos/cortexm/sys.h
9 * @brief cortexm system primitives for libmetal.
10 */
11
12#ifndef __METAL_FREERTOS_SYS__H__
13#error "Include metal/freertos/sys.h instead of metal/freertos/cortexm/sys.h"
14#endif
15
16#ifndef __METAL_FREERTOS_CORTEXM_SYS__H__
17#define __METAL_FREERTOS_CORTEXM_SYS__H__
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23#ifdef METAL_INTERNAL
24
25void sys_irq_enable(unsigned int vector);
26
27void sys_irq_disable(unsigned int vector);
28
29#endif /* METAL_INTERNAL */
30
31#ifdef __cplusplus
32}
33#endif
34
35#endif /* __METAL_FREERTOS_CORTEXM_SYS__H__ */