Skip to content

Commit

Permalink
Merge pull request PaulStoffregen#33 from perceptoscope/feature/add-s…
Browse files Browse the repository at this point in the history
…amd51-support

add support for SAMD51
  • Loading branch information
PaulStoffregen authored Feb 2, 2019
2 parents d8f4003 + 5367d20 commit 3e2cf3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion utility/direct_pin_read.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
#define PIN_TO_BITMASK(pin) (digitalPinToBitMask(pin))
#define DIRECT_PIN_READ(base, mask) (((*(base)) & (mask)) ? 1 : 0)

#elif defined(__SAMD21G18A__)
#elif defined(__SAMD21G18A__) || defined(__SAMD51__)

#define IO_REG_TYPE uint32_t
#define PIN_TO_BASEREG(pin) portModeRegister(digitalPinToPort(pin))
Expand Down
2 changes: 1 addition & 1 deletion utility/interrupt_pins.h
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@

// Arduino Zero - TODO: interrupts do not seem to work
// please help, contribute a fix!
#elif defined(__SAMD21G18A__)
#elif defined(__SAMD21G18A__) || defined(__SAMD51__)
#define CORE_NUM_INTERRUPT 20
#define CORE_INT0_PIN 0
#define CORE_INT1_PIN 1
Expand Down

0 comments on commit 3e2cf3e

Please sign in to comment.