purged an unused method

This commit is contained in:
Simen Svale Skogsrud 2011-02-06 23:41:04 +01:00
parent 799548c013
commit 52dda8713e
2 changed files with 1 additions and 13 deletions

View File

@ -185,7 +185,7 @@ SIGNAL(TIMER1_COMPA_vect)
// printString(" <-- delta\n\r"); // printString(" <-- delta\n\r");
current_block = NULL; current_block = NULL;
// move the block buffer tail to the next instruction // move the block buffer tail to the next instruction
block_buffer_tail = (block_buffer_tail + 1) % BLOCK_BUFFER_SIZE; block_buffer_tail = (block_buffer_tail + 1) % BLOCK_BUFFER_SIZE;
} }
} else { } else {
out_bits = 0; out_bits = 0;
@ -255,15 +255,6 @@ void st_synchronize()
while(block_buffer_tail != block_buffer_head) { sleep_mode(); } while(block_buffer_tail != block_buffer_head) { sleep_mode(); }
} }
// Cancel all buffered steps
void st_flush()
{
cli();
block_buffer_tail = block_buffer_head;
current_block = NULL;
sei();
}
// Configures the prescaler and ceiling of timer 1 to produce the given rate as accurately as possible. // Configures the prescaler and ceiling of timer 1 to produce the given rate as accurately as possible.
// Returns the actual number of cycles per interrupt // Returns the actual number of cycles per interrupt
uint32_t config_step_timer(uint32_t cycles) uint32_t config_step_timer(uint32_t cycles)

View File

@ -37,9 +37,6 @@ void st_get_position_steps(int32_t (*vector)[3]);
// Block until all buffered steps are executed // Block until all buffered steps are executed
void st_synchronize(); void st_synchronize();
// Cancel all pending steps
void st_flush();
// Execute the homing cycle // Execute the homing cycle
void st_go_home(); void st_go_home();