Skip to content

Commit

Permalink
Add interrupts, noInterrupts
Browse files Browse the repository at this point in the history
  • Loading branch information
maxgerhardt committed Aug 10, 2022
1 parent 977fef9 commit a22a2e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cores/arduino/Arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ using namespace arduino;
#include "gd32/pins_arduino.h"
#include "gd32/PeripheralPins.h"

#define interrupts() __enable_irq()
#define noInterrupts() __disable_irq()

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

0 comments on commit a22a2e3

Please sign in to comment.