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

@ -47,7 +47,7 @@
// Due has 12 PWMs assigned to logical pins 2-13.
// 6, 7, 8 & 9 come from the PWM controller. The others come from the timers.
#define USEABLE_HARDWARE_PWM(p) ((2 <= p) && (p <= 13))
#define USEABLE_HARDWARE_PWM(p) WITHIN(p, 2, 13)
#ifndef MASK
#define MASK(PIN) (1 << PIN)