• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (C) 2022 Beken Corporation
2 // Licensed under the Apache License, Version 2.0 (the "License");
3 // you may not use this file except in compliance with the License.
4 // You may obtain a copy of the License at
5 //
6 // http://www.apache.org/licenses/LICENSE-2.0
7 //
8 // Unless required by applicable law or agreed to in writing, software
9 // distributed under the License is distributed on an "AS IS" BASIS,
10 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 // See the License for the specific language governing permissions and
12 // limitations under the License.
13 
14 #ifndef _RISCV_HAL_H
15 #define _RISCV_HAL_H
16 
17 #include "los_compiler.h"
18 #include "los_context.h"
19 
20 #ifdef __cplusplus
21 #if __cplusplus
22 extern "C" {
23 #endif
24 #endif
25 
26 extern VOID HalIrqDisable(UINT32 vector);
27 extern VOID HalIrqEnable(UINT32 vector);
28 extern VOID HalSetLocalInterPri(UINT32 vector, UINT16 prior);
29 
30 #ifdef __cplusplus
31 #if __cplusplus
32 }
33 #endif
34 #endif
35 
36 #endif /* _RISCV_HAL_H */
37