Skip to content

Commit a22a2e3

Browse files
authored
Add interrupts, noInterrupts
1 parent 977fef9 commit a22a2e3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cores/arduino/Arduino.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ using namespace arduino;
3838
#include "gd32/pins_arduino.h"
3939
#include "gd32/PeripheralPins.h"
4040

41+
#define interrupts() __enable_irq()
42+
#define noInterrupts() __disable_irq()
4143

4244
#ifdef __cplusplus
4345
/* include outside of extern C block, this is basically a C++ library */

0 commit comments

Comments
 (0)