2020-11-30 13:13:08 +08:00
|
|
|
/*
|
2021-03-27 17:51:56 +08:00
|
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
2020-11-30 13:13:08 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
2021-03-27 17:51:56 +08:00
|
|
|
* 2020-03-19 WangHuachen first version
|
2020-11-30 13:13:08 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __INTERRUPT_H__
|
|
|
|
#define __INTERRUPT_H__
|
|
|
|
|
|
|
|
#include <rthw.h>
|
|
|
|
#include <board.h>
|
|
|
|
|
|
|
|
void rt_hw_interrupt_init(void);
|
|
|
|
void rt_hw_interrupt_mask(int vector);
|
|
|
|
void rt_hw_interrupt_umask(int vector);
|
|
|
|
int rt_hw_interrupt_get_irq(void);
|
|
|
|
void rt_hw_interrupt_trigger(int vector);
|
|
|
|
void rt_hw_interrupt_clear(int vector);
|
|
|
|
void rt_hw_interrupt_ack(int vector);
|
|
|
|
|
|
|
|
rt_isr_handler_t rt_hw_interrupt_install(int vector, rt_isr_handler_t handler,
|
|
|
|
void *param, const char *name);
|
|
|
|
|
|
|
|
#endif
|