MakerLab创客实验室 — Let's Make something.
现在注册
已注册用户请 登入
evesky large avatar
MakerLab创客实验室  ›  固件

marlin里的stepper.cpp里的ISR问题

By evesky at 12 个月前 , 429 次浏览

if (current_block != NULL)
{
current_block->busy = true;//设定block的状态
trapezoid_generator_reset();
counter_x = -(current_block->step_event_count >> 1);
counter_y = counter_x;//设定xyze轴的step计数
counter_z = counter_x;
counter_e = counter_x;
step_events_completed = 0;
}
这段代码为什么要这样赋值啊? 请教@Andy 大神指点一二

目前尚无回复