Skip to content

Commit

Permalink
Add NOT_AN_INTERRUPT define (#105)
Browse files Browse the repository at this point in the history
Fix #104
  • Loading branch information
earlephilhower committed Apr 15, 2021
1 parent d490499 commit b5aeb84
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cores/rp2040/Arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ void detachInterrupt(pin_size_t pin);
#define digitalPinToBitMask(pin) (1UL << (pin))
#define digitalPinToTimer(pin) (0)
#define digitalPinToInterrupt(pin) (pin)
#define NOT_AN_INTERRUPT (-1)
#define portOutputRegister(port) ((volatile uint32_t*) sio_hw->gpio_out)
#define portInputRegister(port) ((volatile uint32_t*) sio_hw->gpio_in)
#define portModeRegister(port) ((volatile uint32_t*) sio_hw->gpio_oe)
Expand Down

0 comments on commit b5aeb84

Please sign in to comment.