Browse Source

add #define digitalPinToInterrupt(p)

todo:
analogInputToDigitalPin(p)
digitalPinHasPWM(p)
main
Frank 5 years ago
parent
commit
5c7cd9c57a
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

extern "C" { extern "C" {
#endif #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); void digitalWrite(uint8_t pin, uint8_t val);
static inline void digitalWriteFast(uint8_t pin, uint8_t val) __attribute__((always_inline, unused)); static inline void digitalWriteFast(uint8_t pin, uint8_t val) __attribute__((always_inline, unused));

Loading…
Cancel
Save