forked from WCH-Templates/CH32V203
Fixed this file for upstream GCC use
This commit is contained in:
parent
6ca77928e2
commit
5aeffc6277
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue