aboutsummaryrefslogtreecommitdiff
path: root/openamp/src/system/freertos/cortexm/sys.h
blob: 041fbd7b3abf1411e5b1572b292fb92b17062feb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * SPDX-FileCopyrightText: Copyright 2022 Arm Limited and/or its affiliates <open-source-office@arm.com>
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

/*
 * @file	freertos/cortexm/sys.h
 * @brief	cortexm system primitives for libmetal.
 */

#ifndef __METAL_FREERTOS_SYS__H__
#error "Include metal/freertos/sys.h instead of metal/freertos/cortexm/sys.h"
#endif

#ifndef __METAL_FREERTOS_CORTEXM_SYS__H__
#define __METAL_FREERTOS_CORTEXM_SYS__H__

#ifdef __cplusplus
extern "C" {
#endif

#ifdef METAL_INTERNAL

void sys_irq_enable(unsigned int vector);

void sys_irq_disable(unsigned int vector);

#endif /* METAL_INTERNAL */

#ifdef __cplusplus
}
#endif

#endif /* __METAL_FREERTOS_CORTEXM_SYS__H__ */