Update template to modern GCC #1
1 changed files with 6 additions and 2 deletions
|
@ -9,8 +9,12 @@
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
#include "ch32v20x_it.h"
|
#include "ch32v20x_it.h"
|
||||||
|
|
||||||
void NMI_Handler(void) __attribute__((interrupt("WCH-Interrupt-fast")));
|
// Upstream GCC as of version 12 does not support these, use normal ones instead :(
|
||||||
void HardFault_Handler(void) __attribute__((interrupt("WCH-Interrupt-fast")));
|
// If you are using a compiler that supports these, uncomment these lines instead, and use WCH-Interrupt-fast for new handlers
|
||||||
|
//void NMI_Handler(void) __attribute__((interrupt("WCH-Interrupt-fast")));
|
||||||
|
//void HardFault_Handler(void) __attribute__((interrupt("WCH-Interrupt-fast")));
|
||||||
|
void NMI_Handler(void) __attribute__((interrupt));
|
||||||
|
void HardFault_Handler(void) __attribute__((interrupt));
|
||||||
|
|
||||||
/*********************************************************************
|
/*********************************************************************
|
||||||
* @fn NMI_Handler
|
* @fn NMI_Handler
|
||||||
|
|
Loading…
Reference in a new issue