chipKIT32 / chipKIT-core

Downloadable chipKIT core for use with Arduino 1.6 - 1.8+ IDE, PlatformIO, and UECIDE
http://chipkit.net/
Apache License 2.0
59 stars 53 forks source link

Added digitalPinToInterrupt generic macro #407

Closed majenkotech closed 6 years ago

majenkotech commented 6 years ago

A generic macro that compares a pin number to the pins values in PIN_INT0 to PIN_INT4 in turn to find the interrupt number for a pin. This can be overridden in a Board_Defs.h file if not all 5 PIN_INTx macros are defined for a board, or an unused PIN_INTx can be defined as NOT_INT_PIN to disable it instead.

EmbeddedMan commented 6 years ago

Looks good Matt. Thanks.