Update template to modern GCC #1

Merged
thomas merged 8 commits from logan/CH32V203:master into master 2023-11-25 01:59:18 -05:00
Showing only changes of commit 5aeffc6277 - Show all commits

View file

@ -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