|
@@ -90,8 +90,6 @@ volatile int numPWMUsed = 0,
|
90
|
90
|
|
91
|
91
|
#endif
|
92
|
92
|
|
93
|
|
-void HAL_init() { TERN_(I2S_STEPPER_STREAM, i2s_init()); }
|
94
|
|
-
|
95
|
93
|
void HAL_init_board() {
|
96
|
94
|
|
97
|
95
|
#if ENABLED(ESP3D_WIFISUPPORT)
|
|
@@ -126,6 +124,10 @@ void HAL_init_board() {
|
126
|
124
|
#endif
|
127
|
125
|
#endif
|
128
|
126
|
|
|
127
|
+ // Initialize the i2s peripheral only if the I2S stepper stream is enabled.
|
|
128
|
+ // The following initialization is performed after Serial1 and Serial2 are defined as
|
|
129
|
+ // their native pins might conflict with the i2s stream even when they are remapped.
|
|
130
|
+ TERN_(I2S_STEPPER_STREAM, i2s_init());
|
129
|
131
|
}
|
130
|
132
|
|
131
|
133
|
void HAL_idletask() {
|