Ver código fonte

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

Karl Andersson 6 anos atrás
pai
commit
5d3928cb01
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4
    0
      Marlin/src/HAL/HAL_STM32/fastio_STM32.h

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

@@ -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])) ; \

Carregando…
Cancelar
Salvar