Skip to content
Snippets Groups Projects
Commit 043ee0ec authored by Michael DM Dryden's avatar Michael DM Dryden
Browse files

Fix typos and add math.h

parent 6d66e575
No related merge requests found
......@@ -7,6 +7,7 @@
#include "asf.h"
#include <stdio.h>
#include <math.h>
#include <avr/io.h>
#include <avr/interrupt.h>
......@@ -16,7 +17,7 @@ uint16_t step_counter = 0;
//Internal function declarations
void single_step(void);
void multi_step(bool dir, uint16_t steps, uint16_t steps_per_s)
void multi_step(bool dir, uint16_t steps, uint16_t steps_per_s);
void single_step(void){
static bool last_dir = 1;
......@@ -53,7 +54,7 @@ void multi_step(bool dir, uint16_t steps, uint16_t us_per_step){
// stop timer
TIMSK1 &= ~(1 << OCIEA1);
TIMSK1 &= ~(1 << OCIE1A);
TCCR1B &= ~(0b00000111);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment