Browse Source

Add FastIO TOGGLE for ESP32 (#13574)

Kajetan Rzepecki 6 years ago
parent
commit
63d95862fa
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      Marlin/src/HAL/HAL_ESP32/fastio_ESP32.h

+ 3
- 0
Marlin/src/HAL/HAL_ESP32/fastio_ESP32.h View File

64
 #define PWM_PIN(P)              true
64
 #define PWM_PIN(P)              true
65
 #define USEABLE_HARDWARE_PWM(P) PWM_PIN(P)
65
 #define USEABLE_HARDWARE_PWM(P) PWM_PIN(P)
66
 
66
 
67
+// Toggle pin value
68
+#define TOGGLE(IO)              WRITE(IO, !READ(IO))
69
+
67
 //
70
 //
68
 // Ports and functions
71
 // Ports and functions
69
 //
72
 //

Loading…
Cancel
Save