trap.c 741 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 <rthw.h>
  15. #include <rtthread.h>
  16. #include "lpc214x.h"
  17. /**
  18. * @addtogroup LPC214x
  19. */
  20. /*@{*/
  21. void rt_hw_trap_irq()
  22. {
  23. rt_isr_handler_t isr_func;
  24. isr_func = (rt_isr_handler_t) VICVectAddr;
  25. isr_func(0);
  26. /* acknowledge Interrupt */
  27. // VICVectAddr = 0;
  28. }
  29. void rt_hw_trap_fiq()
  30. {
  31. rt_kprintf("fast interrupt request\n");
  32. }
  33. /*@}*/