8000 Adding sei() and cli() as aliases for interrupts() and noInterrupts()… · uPesy/arduino-pico@1e2f1a1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1e2f1a1

Browse files
Adding sei() and cli() as aliases for interrupts() and noInterrupts(). (earlephilhower#1089)
1 parent 1228251 commit 1e2f1a1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cores/rp2040/Arduino.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ void noInterrupts();
7070
#define portModeRegister(port) ((volatile uint32_t*) sio_hw->gpio_oe)
7171
#define digitalWriteFast(pin, val) (val ? sio_hw->gpio_set = (1 << pin) : sio_hw->gpio_clr = (1 << pin))
7272
#define digitalReadFast(pin) ((1 << pin) & sio_hw->gpio_in)
73+
#define sei() interrupts()
74+
#define cli() noInterrupts()
7375

7476
// ADC RP2040-specific calls
7577
void analogReadResolution(int bits);

0 commit comments

Comments
 (0)
0