alexander | 31ae9f0 | 2022-02-10 16:15:54 +0000 | [diff] [blame] | 1 | /* |
Richard Burton | f32a86a | 2022-11-15 11:46:11 +0000 | [diff] [blame] | 2 | * SPDX-FileCopyrightText: Copyright 2022 Arm Limited and/or its affiliates <open-source-office@arm.com> |
alexander | 31ae9f0 | 2022-02-10 16:15:54 +0000 | [diff] [blame] | 3 | * SPDX-License-Identifier: Apache-2.0 |
| 4 | * |
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | * you may not use this file except in compliance with the License. |
| 7 | * You may obtain a copy of the License at |
| 8 | * |
| 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | * |
| 11 | * Unless required by applicable law or agreed to in writing, software |
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | * See the License for the specific language governing permissions and |
| 15 | * limitations under the License. |
| 16 | */ |
Isabella Gottardi | ee4920b | 2022-02-25 14:29:32 +0000 | [diff] [blame] | 17 | #ifndef ETHOS_U_NPU_INIT_H |
| 18 | #define ETHOS_U_NPU_INIT_H |
alexander | 31ae9f0 | 2022-02-10 16:15:54 +0000 | [diff] [blame] | 19 | |
| 20 | #if defined(ARM_NPU) |
alexander | 31ae9f0 | 2022-02-10 16:15:54 +0000 | [diff] [blame] | 21 | |
Isabella Gottardi | ee4920b | 2022-02-25 14:29:32 +0000 | [diff] [blame] | 22 | /** |
| 23 | * @brief Initialises the Arm Ethos-U NPU |
| 24 | * @return 0 if successful, error code otherwise |
| 25 | **/ |
| 26 | int arm_ethosu_npu_init(void); |
| 27 | |
Kshitij Sisodia | 1ec169b | 2022-06-01 09:06:21 +0100 | [diff] [blame] | 28 | /** |
| 29 | * @brief Defines the Arm Ethos-U NPU interrupt handler: just a wrapper |
| 30 | * around the default implementation. |
| 31 | **/ |
| 32 | void arm_ethosu_npu_irq_handler(void); |
| 33 | |
Isabella Gottardi | ee4920b | 2022-02-25 14:29:32 +0000 | [diff] [blame] | 34 | #endif /* ARM_NPU */ |
| 35 | |
| 36 | #endif /* ETHOS_U_NPU_INIT_H */ |