Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add int pin and macro check for Raspberry Pi Pico and W #85

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion utility/direct_pin_read.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
#define PIN_TO_BITMASK(pin) digitalPinToPinName(pin)
#define DIRECT_PIN_READ(base, pin) nrf_gpio_pin_read(pin)

#elif defined(ARDUINO_NANO_RP2040_CONNECT)
#elif defined(ARDUINO_NANO_RP2040_CONNECT) || defined(ARDUINO_ARCH_RP2040)
#define IO_REG_TYPE pin_size_t
#define PIN_TO_BASEREG(pin) (0)
#define PIN_TO_BITMASK(pin) pin
Expand Down
29 changes: 29 additions & 0 deletions utility/interrupt_pins.h
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,35 @@
#define CORE_INT19_PIN 19
// #define CORE_INT20_PIN A6
// #define CORE_INT21_PIN A7

#elif defined(ARDUINO_RASPBERRY_PI_PICO) || defined(ARDUINO_RASPBERRY_PI_PICO_W)
#define CORE_NUM_INTERRUPT 26
#define CORE_INT0_PIN 0
#define CORE_INT1_PIN 1
#define CORE_INT2_PIN 2
#define CORE_INT3_PIN 3
#define CORE_INT4_PIN 4
#define CORE_INT5_PIN 5
#define CORE_INT6_PIN 6
#define CORE_INT7_PIN 7
#define CORE_INT8_PIN 8
#define CORE_INT9_PIN 9
#define CORE_INT10_PIN 10
#define CORE_INT11_PIN 11
#define CORE_INT12_PIN 12
#define CORE_INT13_PIN 13
#define CORE_INT14_PIN 14
#define CORE_INT15_PIN 15
#define CORE_INT16_PIN 16
#define CORE_INT17_PIN 17
#define CORE_INT18_PIN 18
#define CORE_INT19_PIN 19
#define CORE_INT20_PIN 20
#define CORE_INT21_PIN 21
#define CORE_INT22_PIN 22
#define CORE_INT26_PIN 26
#define CORE_INT27_PIN 27
#define CORE_INT28_PIN 28
#endif
#endif

Expand Down