STM32 non-generic PWM_PIN and USEABLE_HARDWARE_PWM (#12016)
This commit is contained in:
@ -50,9 +50,7 @@
|
||||
#define GET_OUTPUT(IO) (_GET_MODE(IO) == GPIO_OUTPUT_PP)
|
||||
#define GET_TIMER(IO) (PIN_MAP[IO].timer_device != NULL)
|
||||
|
||||
/**
|
||||
* TODO: Write a macro to test if PIN is PWM or not.
|
||||
*/
|
||||
#define PWM_PIN(p) true
|
||||
#define PWM_PIN(p) digitalPinHasPWM(p)
|
||||
#define USEABLE_HARDWARE_PWM(p) PWM_PIN(p)
|
||||
|
||||
#endif // _FASTIO_STM32F1_H
|
||||
|
Reference in New Issue
Block a user