rt-thread/bsp/hifive1/drivers/interrupt.h

24 lines
660 B
C
Raw Normal View History

2018-05-30 22:17:25 +08:00
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
2018-05-30 22:17:25 +08:00
*
* SPDX-License-Identifier: Apache-2.0
2018-05-30 22:17:25 +08:00
*
* Change Logs:
* Date Author Notes
*/
#ifndef __INTERRUPT_H__
#define __INTERRUPT_H__
#include <rthw.h>
void rt_hw_interrupt_mask(int irq);
void rt_hw_interrupt_unmask(int irq);
rt_isr_handler_t rt_hw_interrupt_handle(rt_uint32_t vector, void *param);
void rt_hw_interrupt_init(void);
rt_uint32_t rt_hw_interrupt_get_active(rt_uint32_t fiq_irq);
void rt_hw_interrupt_ack(rt_uint32_t fiq_irq, rt_uint32_t id);
rt_isr_handler_t rt_hw_interrupt_install(int vector, rt_isr_handler_t handler,
void *param, const char *name);
2018-05-30 22:17:25 +08:00
#endif