STM32 non-generic PWM_PIN and USEABLE_HARDWARE_PWM (#12016)

This commit is contained in:
Scott Lahteine
2018-10-06 00:14:12 -05:00
committed by GitHub
parent d5141c4e03
commit 33056046a3
6 changed files with 22 additions and 10 deletions

View File

@ -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