interrupt.h 780 B

1234567891011121314151617181920212223242526272829
  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. #define MAX_HANDLERS 128
  13. #include <rthw.h>
  14. #include "stack.h"
  15. // int rt_hw_clint_ipi_enable(void);
  16. // int rt_hw_clint_ipi_disable(void);
  17. int rt_hw_plic_irq_enable(int irq_number);
  18. int rt_hw_plic_irq_disable(int irq_number);
  19. void rt_hw_interrupt_init(void);
  20. void rt_hw_interrupt_mask(int vector);
  21. rt_isr_handler_t rt_hw_interrupt_install(int vector, rt_isr_handler_t handler,
  22. void *param, const char *name);
  23. void handle_trap(rt_size_t xcause,rt_size_t xtval,rt_size_t xepc,struct rt_hw_stack_frame *sp);
  24. #endif