STM32 non-generic PWM_PIN and USEABLE_HARDWARE_PWM (#12016)

This commit is contained in:
Scott Lahteine authored and GitHub committed 2018-10-06 00:14:12 -05:00
1 parent d5141c4e03
commit 33056046a3
6 files changed
+22 -10

No files matched your search

+2 -4
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