Browse Source

Merge pull request #367 from FrankBoesing/patch-1

add #define digitalPinToInterrupt(p)
teensy4-core
Paul Stoffregen 5 years ago
parent
commit
03a1d83bde
No account linked to committer's email address
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      teensy4/core_pins.h

+ 4
- 0
teensy4/core_pins.h View File

@@ -1108,6 +1108,10 @@
extern "C" {
#endif

//TODO:
//#define analogInputToDigitalPin(p)
//#define digitalPinHasPWM(p)
#define digitalPinToInterrupt(p) ((p) < NUM_DIGITAL_PINS ? (p) : -1)

void digitalWrite(uint8_t pin, uint8_t val);
static inline void digitalWriteFast(uint8_t pin, uint8_t val) __attribute__((always_inline, unused));

Loading…
Cancel
Save