Browse Source

PWM is not defined on Arduino Core STM32 (#13405)

pull/1/head
Karl Andersson 6 years ago
committed by Scott Lahteine
parent
commit
5d3928cb01
  1. 4
      Marlin/src/HAL/HAL_STM32/fastio_STM32.h

4
Marlin/src/HAL/HAL_STM32/fastio_STM32.h

@ -45,6 +45,10 @@ void FastIO_init(); // Must be called before using fast io macros
#define _BV32(b) (1UL << (b))
#if !defined(PWM)
#define PWM OUTPUT
#endif
#if defined(STM32F0xx) || defined(STM32F1xx) || defined(STM32F3xx) || defined(STM32L0xx) || defined(STM32L4xx)
#define _WRITE(IO, V) do { \
if (V) FastIOPortMap[STM_PORT(digitalPin[IO])]->BSRR = _BV32(STM_PIN(digitalPin[IO])) ; \

Loading…
Cancel
Save