Tried this version of firmware and found motor reverse direction setting isn't working at all.
But it's easy to make it work, Just add this line in stepper.c (after line "st.step_outbits = 0;"):
It also reasonable to comment these lines as they are not used:
...
DIRECTION_PORT = (DIRECTION_PORT & ~DIRECTION_MASK) | (st.dir_outbits & DIRECTION_MASK);
...
st.dir_outbits = st.exec_block->direction_bits ^ dir_port_invert_mask;
...
DIRECTION_PORT = (DIRECTION_PORT & ~DIRECTION_MASK) | dir_port_invert_mask;
Tried this version of firmware and found motor reverse direction setting isn't working at all. But it's easy to make it work, Just add this line in stepper.c (after line "st.step_outbits = 0;"):
st.exec_block->direction_bits = st.exec_block->direction_bits ^ dir_port_invert_mask;
It also reasonable to comment these lines as they are not used: ... DIRECTION_PORT = (DIRECTION_PORT & ~DIRECTION_MASK) | (st.dir_outbits & DIRECTION_MASK); ... st.dir_outbits = st.exec_block->direction_bits ^ dir_port_invert_mask; ... DIRECTION_PORT = (DIRECTION_PORT & ~DIRECTION_MASK) | dir_port_invert_mask;