2019-03-25 20:03:49 +08:00
|
|
|
/*
|
2021-03-27 17:51:56 +08:00
|
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
2019-03-25 20:03:49 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2013-07-06 Bernard first version
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __INTERRUPT_H__
|
|
|
|
#define __INTERRUPT_H__
|
|
|
|
|
|
|
|
#include <rthw.h>
|
2019-04-26 10:50:48 +08:00
|
|
|
#include <board.h>
|
2019-03-25 20:03:49 +08:00
|
|
|
|
|
|
|
#define INT_IRQ 0x00
|
|
|
|
#define INT_FIQ 0x01
|
|
|
|
|
2019-05-12 15:07:26 +08:00
|
|
|
void rt_hw_vector_init(void);
|
|
|
|
|
2019-03-25 20:03:49 +08:00
|
|
|
void rt_hw_interrupt_control(int vector, int priority, int route);
|
|
|
|
|
|
|
|
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_ack(int vector);
|
|
|
|
|
|
|
|
rt_isr_handler_t rt_hw_interrupt_install(int vector, rt_isr_handler_t handler,
|
|
|
|
void *param, const char *name);
|
|
|
|
|
|
|
|
#endif
|