Correct PWM_PIN behavior for STM32 HALs (#12027)
This commit is contained in:
parent
f2ecf8d510
commit
191df5e17d
@ -48,7 +48,7 @@ static SPISettings spiConfig;
|
||||
// --------------------------------------------------------------------------
|
||||
// Software SPI
|
||||
// --------------------------------------------------------------------------
|
||||
#error "Software SPI not supported for STM32F7. Use Hardware SPI."
|
||||
#error "Software SPI not supported for STM32. Use Hardware SPI."
|
||||
|
||||
#else
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* Fast I/O interfaces for STM32F7
|
||||
* Fast I/O interfaces for STM32
|
||||
* These use GPIO functions instead of Direct Port Manipulation, as on AVR.
|
||||
*/
|
||||
|
||||
@ -50,5 +50,5 @@
|
||||
#define GET_OUTPUT(IO)
|
||||
#define GET_TIMER(IO)
|
||||
|
||||
#define PWM_PIN(p) true
|
||||
#define PWM_PIN(p) digitalPinHasPWM(p)
|
||||
#define USEABLE_HARDWARE_PWM(p) PWM_PIN(p)
|
||||
|
@ -50,7 +50,7 @@
|
||||
#define GET_OUTPUT(IO) (_GET_MODE(IO) == GPIO_OUTPUT_PP)
|
||||
#define GET_TIMER(IO) (PIN_MAP[IO].timer_device != NULL)
|
||||
|
||||
#define PWM_PIN(p) digitalPinHasPWM(p)
|
||||
#define PWM_PIN(p) true
|
||||
#define USEABLE_HARDWARE_PWM(p) PWM_PIN(p)
|
||||
|
||||
#endif // _FASTIO_STM32F1_H
|
||||
|
@ -53,7 +53,7 @@
|
||||
#define GET_OUTPUT(IO)
|
||||
#define GET_TIMER(IO)
|
||||
|
||||
#define PWM_PIN(p) digitalPinHasPWM(p)
|
||||
#define PWM_PIN(p) true
|
||||
#define USEABLE_HARDWARE_PWM(p) PWM_PIN(p)
|
||||
|
||||
//
|
||||
|
@ -52,7 +52,7 @@
|
||||
#define GET_OUTPUT(IO)
|
||||
#define GET_TIMER(IO)
|
||||
|
||||
#define PWM_PIN(p) digitalPinHasPWM(p)
|
||||
#define PWM_PIN(p) true
|
||||
#define USEABLE_HARDWARE_PWM(p) PWM_PIN(p)
|
||||
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user