Secure STM32F1 servo code and M280 detach (#14085)

This commit is contained in:
Tanguy Pruvot
2019-05-22 23:57:19 +02:00
committed by Scott Lahteine
parent a49919396a
commit 24b1818245
3 changed files with 16 additions and 9 deletions

View File

@@ -51,7 +51,7 @@
#define IS_INPUT(IO) (_GET_MODE(IO) == GPIO_INPUT_FLOATING || _GET_MODE(IO) == GPIO_INPUT_ANALOG || _GET_MODE(IO) == GPIO_INPUT_PU || _GET_MODE(IO) == GPIO_INPUT_PD)
#define IS_OUTPUT(IO) (_GET_MODE(IO) == GPIO_OUTPUT_PP)
#define PWM_PIN(P) (PIN_MAP[IO].timer_device != nullptr)
#define PWM_PIN(IO) (PIN_MAP[IO].timer_device != nullptr)
// digitalRead/Write wrappers
#define extDigitalRead(IO) digitalRead(IO)