Fixed this file for upstream GCC use

This commit is contained in:
Logan G 2023-08-09 23:51:45 -06:00
parent 6ca77928e2
commit 5aeffc6277
Signed by: logan
GPG key ID: E328528C921E7A7A

View file

@ -9,8 +9,12 @@
*******************************************************************************/
#include "ch32v20x_it.h"
void NMI_Handler(void) __attribute__((interrupt("WCH-Interrupt-fast")));
void HardFault_Handler(void) __attribute__((interrupt("WCH-Interrupt-fast")));
// Upstream GCC as of version 12 does not support these, use normal ones instead :(
// 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