interrupt.h 745 B

123456789101112131415161718192021222324252627
  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. * 2021-05-20 bigmagic The first version
  9. */
  10. #ifndef INTERRUPT_H__
  11. #define INTERRUPT_H__
  12. #include <rthw.h>
  13. #include "stack.h"
  14. int rt_hw_clint_ipi_enable(void);
  15. int rt_hw_clint_ipi_disable(void);
  16. int rt_hw_plic_irq_enable(int irq_number);
  17. int rt_hw_plic_irq_disable(int irq_number);
  18. void rt_hw_interrupt_init(void);
  19. void rt_hw_interrupt_mask(int vector);
  20. rt_isr_handler_t rt_hw_interrupt_install(int vector, rt_isr_handler_t handler,
  21. void *param, const char *name);
  22. void handle_trap(rt_size_t xcause,rt_size_t xtval,rt_size_t xepc,struct rt_hw_stack_frame *sp);
  23. #endif