interrupt.h 757 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2013-07-06 Bernard first version
  9. */
  10. #ifndef __INTERRUPT_H__
  11. #define __INTERRUPT_H__
  12. #include <rthw.h>
  13. #include <board.h>
  14. #define INT_IRQ 0x00
  15. #define INT_FIQ 0x01
  16. void rt_hw_vector_init(void);
  17. void rt_hw_interrupt_control(int vector, int priority, int route);
  18. void rt_hw_interrupt_init(void);
  19. void rt_hw_interrupt_mask(int vector);
  20. void rt_hw_interrupt_umask(int vector);
  21. int rt_hw_interrupt_get_irq(void);
  22. void rt_hw_interrupt_ack(int vector);
  23. rt_isr_handler_t rt_hw_interrupt_install(int vector, rt_isr_handler_t handler,
  24. void *param, const char *name);
  25. #endif