Explorar el Código

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

Karl Andersson hace 6 años
padre
commit
5d3928cb01
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4
    0
      Marlin/src/HAL/HAL_STM32/fastio_STM32.h

+ 4
- 0
Marlin/src/HAL/HAL_STM32/fastio_STM32.h Ver fichero

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

Loading…
Cancelar
Guardar