Selaa lähdekoodia

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

Karl Andersson 6 vuotta sitten
vanhempi
commit
5d3928cb01
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 4
    0
      Marlin/src/HAL/HAL_STM32/fastio_STM32.h

+ 4
- 0
Marlin/src/HAL/HAL_STM32/fastio_STM32.h Näytä tiedosto

45
 
45
 
46
 #define _BV32(b) (1UL << (b))
46
 #define _BV32(b) (1UL << (b))
47
 
47
 
48
+#if !defined(PWM)
49
+  #define PWM OUTPUT
50
+#endif
51
+
48
 #if defined(STM32F0xx) || defined(STM32F1xx) || defined(STM32F3xx) || defined(STM32L0xx) || defined(STM32L4xx)
52
 #if defined(STM32F0xx) || defined(STM32F1xx) || defined(STM32F3xx) || defined(STM32L0xx) || defined(STM32L4xx)
49
   #define _WRITE(IO, V) do { \
53
   #define _WRITE(IO, V) do { \
50
     if (V) FastIOPortMap[STM_PORT(digitalPin[IO])]->BSRR = _BV32(STM_PIN(digitalPin[IO])) ; \
54
     if (V) FastIOPortMap[STM_PORT(digitalPin[IO])]->BSRR = _BV32(STM_PIN(digitalPin[IO])) ; \

Loading…
Peruuta
Tallenna