interrupt.h 610 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (c) 2021, Shenzhen Academy of Aerospace Technology
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2021-11-16 Dystopia the first version
  9. */
  10. #ifndef __INTERRUPT_H__
  11. #define __INTERRUPT_H__
  12. #include <rthw.h>
  13. #include <rtthread.h>
  14. void rt_hw_interrupt_init(void);
  15. void rt_hw_interrupt_mask(int vector);
  16. void rt_hw_interrupt_umask(int vector);
  17. void rt_hw_interrupt_clear(int vector);
  18. rt_isr_handler_t rt_hw_interrupt_install(int vector, rt_isr_handler_t handler,
  19. void *param, const char *name);
  20. #endif /* __INTERRUPT_H__ */