1 /*
2  * Copyright (C) 2017-2019 Alibaba Group Holding Limited
3  */
4 
5 
6 /******************************************************************************
7  * @file     drv_irq.h
8  * @brief    header File for IRQ Driver
9  * @version  V1.0
10  * @date     21. Dec 2018
11  * @model    irq
12  ******************************************************************************/
13 
14 #include <stdint.h>
15 
16 /**
17   \brief       enable irq.
18   \param[in]   irq_num Number of IRQ.
19   \return      None.
20 */
21 void drv_irq_enable(uint32_t irq_num);
22 
23 /**
24   \brief       disable irq.
25   \param[in]   irq_num Number of IRQ.
26   \return      None.
27 */
28 void drv_irq_disable(uint32_t irq_num);
29 
30 /**
31   \brief       register irq handler.
32   \param[in]   irq_num Number of IRQ.
33   \param[in]   irq_handler IRQ Handler.
34   \return      None.
35 */
36 void drv_irq_register(uint32_t irq_num, void *irq_handler);
37 
38 /**
39   \brief       unregister irq handler.
40   \param[in]   irq_num Number of IRQ.
41   \param[in]   irq_handler IRQ Handler.
42   \return      None.
43 */
44 void drv_irq_unregister(uint32_t irq_num);
45