Closed
Description
The macro digitalPinToTimer(P) is supposed to report whether the pin
supports PWM.
This allows doing something like this:
// Check if the pin is associated to a timer, i.e. PWM
// ---------------------------------------------------
if(digitalPinToTimer(_backlightPin) != NOT_ON_TIMER)
The macro in DUE not only doesn't work but is improperly defined:
# define digitalPinToTimer(P) ( )
This creates a compile error on DUE code.
This needs to be updated and corrected to work correctly.