/* Parse motor codes, directions and enable motors accordingly.  */
static StepEventFlag_t setup_axis()
/* Parse motor codes, directions and enable motors accordingly.  */
static StepEventFlag_t setup_axis()
{
        const char axis_code = axis_codes[i];
        if (parser.seen(axis_code)) {
            stepper_microsteps((AxisEnum)i, 128);
            axis_flag |= (StepEventFlag::STEP_EVENT_FLAG_STEP_X << i);
            if (parser.seenval(axis_code) && (-1 == (parser.value_long()))) {
                axis_flag |= (StepEventFlag::STEP_EVENT_FLAG_X_DIR << i);
            }
        }
    }
    if (0 == axis_flag) {
        axis_flag = StepEventFlag::STEP_EVENT_FLAG_STEP_X;
        stepper_microsteps(X_AXIS, 128);
    }
    return axis_flag;
}