Replace digitalPinHasPWM with HAS_TIMER (#13520)

This commit is contained in:
Alexander Amelkin
2019-03-29 20:21:14 +03:00
committed by Scott Lahteine
parent 5a2c68e995
commit e40636a7c1
11 changed files with 49 additions and 49 deletions

View File

@ -78,11 +78,11 @@ void FastIO_init(); // Must be called before using fast io macros
#define SET_OUTPUT(IO) OUT_WRITE(IO, LOW)
#define SET_PWM(IO) _SET_MODE(IO, PWM)
#define GET_INPUT(IO)
#define GET_OUTPUT(IO)
#define GET_TIMER(IO)
#define IS_INPUT(IO)
#define IS_OUTPUT(IO)
#define HAS_TIMER(IO)
#define PWM_PIN(P) digitalPinHasPWM(P)
#define PWM_PIN(P) HAS_TIMER(P)
#define USEABLE_HARDWARE_PWM(P) PWM_PIN(P)
// digitalRead/Write wrappers