CH32V307_Template/src/ch32v30x_it.c

21 lines
634 B
C
Raw Permalink Normal View History

2022-03-28 16:08:02 +00:00
#include "ch32v30x_it.h"
2022-05-02 14:51:51 +00:00
#define __IRQ __attribute__((interrupt()))
#define __IRQ_WEAK __attribute__((interrupt(), weak))
#define __IRQ_NAKED __attribute__((naked))
2022-03-28 16:08:02 +00:00
2022-05-02 14:51:51 +00:00
/**
* FreeRTOS supports both non-vectored and vectored exception model.
* For non-vectored exception, use `freertos_risc_v_trap_handler`,
* this function will determine the type of current exception.
* For vectored exception, use `freertos_risc_v_exception_handler`,
* and use `freertos_risc_v_mtimer_interrupt_handler` for timer interrupt.
2023-04-10 14:05:32 +00:00
*
2022-05-02 14:51:51 +00:00
*/
__IRQ void HardFault_Handler(void) {
2023-04-10 14:05:32 +00:00
for (;;) {
2022-05-02 14:51:51 +00:00
/* Emmmmmmmmm? */
}
}