|
@@ -129,11 +129,15 @@ void sm4_set_dir_bits(uint8_t dir_bits)
|
|
|
void sm4_do_step(uint8_t axes_mask)
|
|
|
{
|
|
|
#if ((MOTHERBOARD == BOARD_RAMBO_MINI_1_0) || (MOTHERBOARD == BOARD_RAMBO_MINI_1_3) || (MOTHERBOARD == BOARD_EINSY_1_0a))
|
|
|
+#ifdef TMC2130_DEDGE_STEPPING
|
|
|
+ PORTC ^= (axes_mask & 0x0f); //set step signals by mask
|
|
|
+#else
|
|
|
register uint8_t portC = PORTC & 0xf0;
|
|
|
PORTC = portC | (axes_mask & 0x0f); //set step signals by mask
|
|
|
asm("nop");
|
|
|
PORTC = portC; //set step signals to zero
|
|
|
asm("nop");
|
|
|
+#endif
|
|
|
#endif //((MOTHERBOARD == BOARD_RAMBO_MINI_1_0) || (MOTHERBOARD == BOARD_RAMBO_MINI_1_3) || (MOTHERBOARD == BOARD_EINSY_1_0a))
|
|
|
}
|
|
|
|