trap.c 728 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * File : trap.c
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2006, RT-Thread Development Team
  5. *
  6. * The license and distribution terms for this file may be
  7. * found in the file LICENSE in this distribution or at
  8. * http://openlab.rt-thread.com/license/LICENSE
  9. *
  10. * Change Logs:
  11. * Date Author Notes
  12. * 2006-08-25 Bernard first version
  13. */
  14. #include <rtthread.h>
  15. #include <rthw.h>
  16. #include "AT91SAM7S.h"
  17. /**
  18. * @addtogroup AT91SAM7
  19. */
  20. /*@{*/
  21. void rt_hw_trap_irq()
  22. {
  23. rt_isr_handler_t hander = (rt_isr_handler_t)AT91C_AIC_IVR;
  24. hander(AT91C_AIC_ISR);
  25. /* end of interrupt */
  26. AT91C_AIC_EOICR = 0;
  27. }
  28. void rt_hw_trap_fiq()
  29. {
  30. rt_kprintf("fast interrupt request\n");
  31. }
  32. /*@}*/