28 #if STEP_OUTMODE == GPIO_MAP
30 static const uint32_t c_step_outmap[] = {
58 B_STEP_BIT | A_STEP_BIT,
76 C_STEP_BIT | A_STEP_BIT,
84 C_STEP_BIT | B_STEP_BIT,
92 C_STEP_BIT | B_STEP_BIT | A_STEP_BIT,
93 C_STEP_BIT | B_STEP_BIT | A_STEP_BIT |
X_STEP_BIT,
94 C_STEP_BIT | B_STEP_BIT | A_STEP_BIT |
Y_STEP_BIT,
96 C_STEP_BIT | B_STEP_BIT | A_STEP_BIT |
Z_STEP_BIT,
110 U_STEP_BIT | A_STEP_BIT,
118 U_STEP_BIT | B_STEP_BIT,
126 U_STEP_BIT | B_STEP_BIT | A_STEP_BIT,
127 U_STEP_BIT | B_STEP_BIT | A_STEP_BIT |
X_STEP_BIT,
128 U_STEP_BIT | B_STEP_BIT | A_STEP_BIT |
Y_STEP_BIT,
130 U_STEP_BIT | B_STEP_BIT | A_STEP_BIT |
Z_STEP_BIT,
134 U_STEP_BIT | C_STEP_BIT,
142 U_STEP_BIT | C_STEP_BIT | A_STEP_BIT,
143 U_STEP_BIT | C_STEP_BIT | A_STEP_BIT |
X_STEP_BIT,
144 U_STEP_BIT | C_STEP_BIT | A_STEP_BIT |
Y_STEP_BIT,
146 U_STEP_BIT | C_STEP_BIT | A_STEP_BIT |
Z_STEP_BIT,
150 U_STEP_BIT | C_STEP_BIT | B_STEP_BIT,
151 U_STEP_BIT | C_STEP_BIT | B_STEP_BIT |
X_STEP_BIT,
152 U_STEP_BIT | C_STEP_BIT | B_STEP_BIT |
Y_STEP_BIT,
154 U_STEP_BIT | C_STEP_BIT | B_STEP_BIT |
Z_STEP_BIT,
158 U_STEP_BIT | C_STEP_BIT | B_STEP_BIT | A_STEP_BIT,
159 U_STEP_BIT | C_STEP_BIT | B_STEP_BIT | A_STEP_BIT |
X_STEP_BIT,
160 U_STEP_BIT | C_STEP_BIT | B_STEP_BIT | A_STEP_BIT |
Y_STEP_BIT,
162 U_STEP_BIT | C_STEP_BIT | B_STEP_BIT | A_STEP_BIT |
Z_STEP_BIT,
176 V_STEP_BIT | A_STEP_BIT,
184 V_STEP_BIT | B_STEP_BIT,
192 V_STEP_BIT | B_STEP_BIT | A_STEP_BIT,
193 V_STEP_BIT | B_STEP_BIT | A_STEP_BIT |
X_STEP_BIT,
194 V_STEP_BIT | B_STEP_BIT | A_STEP_BIT |
Y_STEP_BIT,
196 V_STEP_BIT | B_STEP_BIT | A_STEP_BIT |
Z_STEP_BIT,
200 V_STEP_BIT | C_STEP_BIT,
208 V_STEP_BIT | C_STEP_BIT | A_STEP_BIT,
209 V_STEP_BIT | C_STEP_BIT | A_STEP_BIT |
X_STEP_BIT,
210 V_STEP_BIT | C_STEP_BIT | A_STEP_BIT |
Y_STEP_BIT,
212 V_STEP_BIT | C_STEP_BIT | A_STEP_BIT |
Z_STEP_BIT,
216 V_STEP_BIT | C_STEP_BIT | B_STEP_BIT,
217 V_STEP_BIT | C_STEP_BIT | B_STEP_BIT |
X_STEP_BIT,
218 V_STEP_BIT | C_STEP_BIT | B_STEP_BIT |
Y_STEP_BIT,
220 V_STEP_BIT | C_STEP_BIT | B_STEP_BIT |
Z_STEP_BIT,
224 V_STEP_BIT | C_STEP_BIT | B_STEP_BIT | A_STEP_BIT,
225 V_STEP_BIT | C_STEP_BIT | B_STEP_BIT | A_STEP_BIT |
X_STEP_BIT,
226 V_STEP_BIT | C_STEP_BIT | B_STEP_BIT | A_STEP_BIT |
Y_STEP_BIT,
228 V_STEP_BIT | C_STEP_BIT | B_STEP_BIT | A_STEP_BIT |
Z_STEP_BIT,
232 V_STEP_BIT | U_STEP_BIT,
240 V_STEP_BIT | U_STEP_BIT | A_STEP_BIT,
241 V_STEP_BIT | U_STEP_BIT | A_STEP_BIT |
X_STEP_BIT,
242 V_STEP_BIT | U_STEP_BIT | A_STEP_BIT |
Y_STEP_BIT,
244 V_STEP_BIT | U_STEP_BIT | A_STEP_BIT |
Z_STEP_BIT,
248 V_STEP_BIT | U_STEP_BIT | B_STEP_BIT,
249 V_STEP_BIT | U_STEP_BIT | B_STEP_BIT |
X_STEP_BIT,
250 V_STEP_BIT | U_STEP_BIT | B_STEP_BIT |
Y_STEP_BIT,
252 V_STEP_BIT | U_STEP_BIT | B_STEP_BIT |
Z_STEP_BIT,
256 V_STEP_BIT | U_STEP_BIT | B_STEP_BIT | A_STEP_BIT,
257 V_STEP_BIT | U_STEP_BIT | B_STEP_BIT | A_STEP_BIT |
X_STEP_BIT,
258 V_STEP_BIT | U_STEP_BIT | B_STEP_BIT | A_STEP_BIT |
Y_STEP_BIT,
260 V_STEP_BIT | U_STEP_BIT | B_STEP_BIT | A_STEP_BIT |
Z_STEP_BIT,
264 V_STEP_BIT | U_STEP_BIT | C_STEP_BIT,
265 V_STEP_BIT | U_STEP_BIT | C_STEP_BIT |
X_STEP_BIT,
266 V_STEP_BIT | U_STEP_BIT | C_STEP_BIT |
Y_STEP_BIT,
268 V_STEP_BIT | U_STEP_BIT | C_STEP_BIT |
Z_STEP_BIT,
272 V_STEP_BIT | U_STEP_BIT | C_STEP_BIT | A_STEP_BIT,
273 V_STEP_BIT | U_STEP_BIT | C_STEP_BIT | A_STEP_BIT |
X_STEP_BIT,
274 V_STEP_BIT | U_STEP_BIT | C_STEP_BIT | A_STEP_BIT |
Y_STEP_BIT,
276 V_STEP_BIT | U_STEP_BIT | C_STEP_BIT | A_STEP_BIT |
Z_STEP_BIT,
280 V_STEP_BIT | U_STEP_BIT | C_STEP_BIT | B_STEP_BIT,
281 V_STEP_BIT | U_STEP_BIT | C_STEP_BIT | B_STEP_BIT |
X_STEP_BIT,
282 V_STEP_BIT | U_STEP_BIT | C_STEP_BIT | B_STEP_BIT |
Y_STEP_BIT,
284 V_STEP_BIT | U_STEP_BIT | C_STEP_BIT | B_STEP_BIT |
Z_STEP_BIT,
288 V_STEP_BIT | U_STEP_BIT | C_STEP_BIT | B_STEP_BIT | A_STEP_BIT,
289 V_STEP_BIT | U_STEP_BIT | C_STEP_BIT | B_STEP_BIT | A_STEP_BIT |
X_STEP_BIT,
290 V_STEP_BIT | U_STEP_BIT | C_STEP_BIT | B_STEP_BIT | A_STEP_BIT |
Y_STEP_BIT,
292 V_STEP_BIT | U_STEP_BIT | C_STEP_BIT | B_STEP_BIT | A_STEP_BIT |
Z_STEP_BIT,
299 static uint32_t step_outmap[
sizeof(c_step_outmap) /
sizeof(uint32_t)];
303 #if DIRECTION_OUTMODE == GPIO_MAP
305 static const uint32_t c_dir_outmap[] = {
333 B_DIRECTION_BIT | A_DIRECTION_BIT,
351 C_DIRECTION_BIT | A_DIRECTION_BIT,
359 C_DIRECTION_BIT | B_DIRECTION_BIT,
367 C_DIRECTION_BIT | B_DIRECTION_BIT | A_DIRECTION_BIT,
385 U_DIRECTION_BIT | A_DIRECTION_BIT,
393 U_DIRECTION_BIT | B_DIRECTION_BIT,
401 U_DIRECTION_BIT | B_DIRECTION_BIT | A_DIRECTION_BIT,
409 U_DIRECTION_BIT | C_DIRECTION_BIT,
417 U_DIRECTION_BIT | C_DIRECTION_BIT | A_DIRECTION_BIT,
425 U_DIRECTION_BIT | C_DIRECTION_BIT | B_DIRECTION_BIT,
433 U_DIRECTION_BIT | C_DIRECTION_BIT | B_DIRECTION_BIT | A_DIRECTION_BIT,
434 U_DIRECTION_BIT | C_DIRECTION_BIT | B_DIRECTION_BIT | A_DIRECTION_BIT |
X_DIRECTION_BIT,
435 U_DIRECTION_BIT | C_DIRECTION_BIT | B_DIRECTION_BIT | A_DIRECTION_BIT |
Y_DIRECTION_BIT,
437 U_DIRECTION_BIT | C_DIRECTION_BIT | B_DIRECTION_BIT | A_DIRECTION_BIT |
Z_DIRECTION_BIT,
451 V_DIRECTION_BIT | A_DIRECTION_BIT,
459 V_DIRECTION_BIT | B_DIRECTION_BIT,
467 V_DIRECTION_BIT | B_DIRECTION_BIT | A_DIRECTION_BIT,
475 V_DIRECTION_BIT | C_DIRECTION_BIT,
483 V_DIRECTION_BIT | C_DIRECTION_BIT | A_DIRECTION_BIT,
491 V_DIRECTION_BIT | C_DIRECTION_BIT | B_DIRECTION_BIT,
499 V_DIRECTION_BIT | C_DIRECTION_BIT | B_DIRECTION_BIT | A_DIRECTION_BIT,
500 V_DIRECTION_BIT | C_DIRECTION_BIT | B_DIRECTION_BIT | A_DIRECTION_BIT |
X_DIRECTION_BIT,
501 V_DIRECTION_BIT | C_DIRECTION_BIT | B_DIRECTION_BIT | A_DIRECTION_BIT |
Y_DIRECTION_BIT,
503 V_DIRECTION_BIT | C_DIRECTION_BIT | B_DIRECTION_BIT | A_DIRECTION_BIT |
Z_DIRECTION_BIT,
507 V_DIRECTION_BIT | U_DIRECTION_BIT,
515 V_DIRECTION_BIT | U_DIRECTION_BIT | A_DIRECTION_BIT,
523 V_DIRECTION_BIT | U_DIRECTION_BIT | B_DIRECTION_BIT,
531 V_DIRECTION_BIT | U_DIRECTION_BIT | B_DIRECTION_BIT | A_DIRECTION_BIT,
532 V_DIRECTION_BIT | U_DIRECTION_BIT | B_DIRECTION_BIT | A_DIRECTION_BIT |
X_DIRECTION_BIT,
533 V_DIRECTION_BIT | U_DIRECTION_BIT | B_DIRECTION_BIT | A_DIRECTION_BIT |
Y_DIRECTION_BIT,
535 V_DIRECTION_BIT | U_DIRECTION_BIT | B_DIRECTION_BIT | A_DIRECTION_BIT |
Z_DIRECTION_BIT,
539 V_DIRECTION_BIT | U_DIRECTION_BIT | C_DIRECTION_BIT,
547 V_DIRECTION_BIT | U_DIRECTION_BIT | C_DIRECTION_BIT | A_DIRECTION_BIT,
548 V_DIRECTION_BIT | U_DIRECTION_BIT | C_DIRECTION_BIT | A_DIRECTION_BIT |
X_DIRECTION_BIT,
549 V_DIRECTION_BIT | U_DIRECTION_BIT | C_DIRECTION_BIT | A_DIRECTION_BIT |
Y_DIRECTION_BIT,
551 V_DIRECTION_BIT | U_DIRECTION_BIT | C_DIRECTION_BIT | A_DIRECTION_BIT |
Z_DIRECTION_BIT,
555 V_DIRECTION_BIT | U_DIRECTION_BIT | C_DIRECTION_BIT | B_DIRECTION_BIT,
556 V_DIRECTION_BIT | U_DIRECTION_BIT | C_DIRECTION_BIT | B_DIRECTION_BIT |
X_DIRECTION_BIT,
557 V_DIRECTION_BIT | U_DIRECTION_BIT | C_DIRECTION_BIT | B_DIRECTION_BIT |
Y_DIRECTION_BIT,
559 V_DIRECTION_BIT | U_DIRECTION_BIT | C_DIRECTION_BIT | B_DIRECTION_BIT |
Z_DIRECTION_BIT,
563 V_DIRECTION_BIT | U_DIRECTION_BIT | C_DIRECTION_BIT | B_DIRECTION_BIT | A_DIRECTION_BIT,
564 V_DIRECTION_BIT | U_DIRECTION_BIT | C_DIRECTION_BIT | B_DIRECTION_BIT | A_DIRECTION_BIT |
X_DIRECTION_BIT,
565 V_DIRECTION_BIT | U_DIRECTION_BIT | C_DIRECTION_BIT | B_DIRECTION_BIT | A_DIRECTION_BIT |
Y_DIRECTION_BIT,
567 V_DIRECTION_BIT | U_DIRECTION_BIT | C_DIRECTION_BIT | B_DIRECTION_BIT | A_DIRECTION_BIT |
Z_DIRECTION_BIT,
575 static uint32_t dir_outmap[
sizeof(c_dir_outmap) /
sizeof(uint32_t)];
579 #if (STEP_OUTMODE == GPIO_MAP) || (DIRECTION_OUTMODE == GPIO_MAP)
581 #define USE_STEPDIR_MAP 1
587 #if STEP_OUTMODE == GPIO_MAP
589 i =
sizeof(step_outmap) /
sizeof(uint32_t);
596 #if DIRECTION_OUTMODE == GPIO_MAP
597 i =
sizeof(dir_outmap) /
sizeof(uint32_t);
#define Z_DIRECTION_BIT
Definition: motor_pins.h:1007
#define X_STEP_BIT
Definition: motor_pins.h:964
#define Y_STEP_BIT
Definition: motor_pins.h:967
#define X_DIRECTION_BIT
Definition: motor_pins.h:1001
#define Y_DIRECTION_BIT
Definition: motor_pins.h:1004
#define Z_STEP_BIT
Definition: motor_pins.h:970
settings_t settings
Definition: settings.c:43
Definition: settings.h:804
stepper_settings_t steppers
Definition: settings.h:824
axes_signals_t dir_invert
Definition: settings.h:700
axes_signals_t step_invert
Definition: settings.h:699
uint8_t value
Definition: nuts_bolts.h:133