|
|
@ -102,7 +102,7 @@ bool useable_hardware_PWM(pin_t pin);
|
|
|
|
// hg42: we cannot use USEABLE_HARDWARE_PWM because it uses a function that cannot be used statically
|
|
|
|
// hg42: we cannot use USEABLE_HARDWARE_PWM because it uses a function that cannot be used statically
|
|
|
|
// hg42: instead use PWM bit from the #define
|
|
|
|
// hg42: instead use PWM bit from the #define
|
|
|
|
|
|
|
|
|
|
|
|
/// check if pin is an timer
|
|
|
|
/// check if pin is a timer
|
|
|
|
#define _GET_TIMER(IO) TRUE // could be LPC1768_PIN_PWM(IO), but there
|
|
|
|
#define _GET_TIMER(IO) TRUE // could be LPC1768_PIN_PWM(IO), but there
|
|
|
|
// hg42: could be this:
|
|
|
|
// hg42: could be this:
|
|
|
|
// #define _GET_TIMER(IO) LPC1768_PIN_PWM(IO)
|
|
|
|
// #define _GET_TIMER(IO) LPC1768_PIN_PWM(IO)
|
|
|
@ -132,7 +132,7 @@ bool useable_hardware_PWM(pin_t pin);
|
|
|
|
/// check if pin is an output wrapper
|
|
|
|
/// check if pin is an output wrapper
|
|
|
|
#define GET_OUTPUT(IO) _GET_OUTPUT(IO)
|
|
|
|
#define GET_OUTPUT(IO) _GET_OUTPUT(IO)
|
|
|
|
|
|
|
|
|
|
|
|
/// check if pin is an timer wrapper
|
|
|
|
/// check if pin is a timer (wrapper)
|
|
|
|
#define GET_TIMER(IO) _GET_TIMER(IO)
|
|
|
|
#define GET_TIMER(IO) _GET_TIMER(IO)
|
|
|
|
|
|
|
|
|
|
|
|
// Shorthand
|
|
|
|
// Shorthand
|
|
|
|