Added 20MHz support.
This commit is contained in:
@ -236,8 +236,8 @@ FORCE_INLINE unsigned short calc_timer(unsigned short step_rate) {
|
||||
step_loops = 1;
|
||||
}
|
||||
|
||||
if(step_rate < 32) step_rate = 32;
|
||||
step_rate -= 32; // Correct for minimal speed
|
||||
if(step_rate < (F_CPU/500000)) step_rate = (F_CPU/500000);
|
||||
step_rate -= (F_CPU/500000); // Correct for minimal speed
|
||||
if(step_rate >= (8*256)){ // higher step rate
|
||||
unsigned short table_address = (unsigned short)&speed_lookuptable_fast[(unsigned char)(step_rate>>8)][0];
|
||||
unsigned char tmp_step_rate = (step_rate & 0x00ff);
|
||||
|
Reference in New Issue
Block a user