Kristofer Jonsson | 02eef5b | 2022-09-06 14:38:10 +0200 | [diff] [blame^] | 1 | /* |
| 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 |
| 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_FREERTOS_CORTEXM_SYS__H__ */ |