xref: /nrf52832-nimble/rt-thread/libcpu/arm/AT91SAM7S/trap.c (revision 104654410c56c573564690304ae786df310c91fc)
1 /*
2  * Copyright (c) 2006-2018, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author       Notes
8  * 2006-08-25     Bernard      first version
9  */
10 
11 #include <rtthread.h>
12 #include <rthw.h>
13 
14 #include "AT91SAM7S.h"
15 
16 /**
17  * @addtogroup AT91SAM7
18  */
19 /*@{*/
20 
rt_hw_trap_irq()21 void rt_hw_trap_irq()
22 {
23 	rt_isr_handler_t hander = (rt_isr_handler_t)AT91C_AIC_IVR;
24 
25 	hander(AT91C_AIC_ISR);
26 
27 	/* end of interrupt */
28 	AT91C_AIC_EOICR = 0;
29 }
30 
rt_hw_trap_fiq()31 void rt_hw_trap_fiq()
32 {
33     rt_kprintf("fast interrupt request\n");
34 }
35 
36 /*@}*/
37