1 /*
2  * Copyright (c) 2006-2021, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author       Notes
8  * 2020-03-19     WangHuachen  first version
9  */
10 
11 #ifndef __INTERRUPT_H__
12 #define __INTERRUPT_H__
13 
14 #include <rthw.h>
15 #include <board.h>
16 
17 void rt_hw_interrupt_init(void);
18 void rt_hw_interrupt_mask(int vector);
19 void rt_hw_interrupt_umask(int vector);
20 int rt_hw_interrupt_get_irq(void);
21 void rt_hw_interrupt_trigger(int vector);
22 void rt_hw_interrupt_clear(int vector);
23 void rt_hw_interrupt_ack(int vector);
24 
25 rt_isr_handler_t rt_hw_interrupt_install(int vector, rt_isr_handler_t handler,
26         void *param, const char *name);
27 
28 #endif
29