Browse Source

ESP32: i2s_init requires I2S_STEPPER_STREAM

vanilla_fb_2.0.x
Scott Lahteine 4 years ago
parent
commit
e32bdf6a93
  1. 2
      Marlin/src/HAL/ESP32/HAL.cpp
  2. 8
      Marlin/src/pins/esp32/pins_MRR_ESPA.h
  3. 4
      Marlin/src/pins/esp32/pins_MRR_ESPE.h

2
Marlin/src/HAL/ESP32/HAL.cpp

@ -86,7 +86,7 @@ volatile int numPWMUsed = 0,
#endif #endif
void HAL_init() { i2s_init(); } void HAL_init() { TERN_(I2S_STEPPER_STREAM, i2s_init()); }
void HAL_init_board() { void HAL_init_board() {

8
Marlin/src/pins/esp32/pins_MRR_ESPA.h

@ -42,12 +42,10 @@
// //
// Disable I2S stepper stream // Disable I2S stepper stream
// //
#ifdef I2S_STEPPER_STREAM
#undef I2S_STEPPER_STREAM #undef I2S_STEPPER_STREAM
#endif #undef I2S_WS
#define I2S_WS -1 #undef I2S_BCK
#define I2S_BCK -1 #undef I2S_DATA
#define I2S_DATA -1
// //
// Limit Switches // Limit Switches

4
Marlin/src/pins/esp32/pins_MRR_ESPE.h

@ -52,12 +52,10 @@
// //
#undef I2S_STEPPER_STREAM #undef I2S_STEPPER_STREAM
#define I2S_STEPPER_STREAM #define I2S_STEPPER_STREAM
#undef LIN_ADVANCE // Currently, I2S stream does not work with linear advance
#define I2S_WS 26 #define I2S_WS 26
#define I2S_BCK 25 #define I2S_BCK 25
#define I2S_DATA 27 #define I2S_DATA 27
#undef LIN_ADVANCE // Currently, I2S stream does not work with linear advance
// //
// Steppers // Steppers

Loading…
Cancel
Save