mirror of
https://github.com/sergeyyarkov/ch32v00x-template-mk.git
synced 2026-10-11 10:19:07 +03:00
30 lines
682 B
C
30 lines
682 B
C
#include <ch32v00x_it.h>
|
|
|
|
void NMI_Handler(void) __attribute__((interrupt("WCH-Interrupt-fast")));
|
|
void HardFault_Handler(void) __attribute__((interrupt("WCH-Interrupt-fast")));
|
|
|
|
/*********************************************************************
|
|
* @fn NMI_Handler
|
|
*
|
|
* @brief This function handles NMI exception.
|
|
*
|
|
* @return none
|
|
*/
|
|
void NMI_Handler(void) {
|
|
while (1) {
|
|
}
|
|
}
|
|
|
|
/*********************************************************************
|
|
* @fn HardFault_Handler
|
|
*
|
|
* @brief This function handles Hard Fault exception.
|
|
*
|
|
* @return none
|
|
*/
|
|
void HardFault_Handler(void) {
|
|
NVIC_SystemReset();
|
|
while (1) {
|
|
}
|
|
}
|