Spindle DDR pins init minor fix.
This commit is contained in:
parent
567fbf93ed
commit
e9b28279db
3 changed files with 4 additions and 4 deletions
|
|
@ -23,6 +23,7 @@
|
|||
#include "motion_control.h"
|
||||
#include "config.h"
|
||||
#include "planner.h"
|
||||
#include "stepper.h"
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
|
@ -32,6 +33,8 @@ static int current_direction;
|
|||
|
||||
void spindle_init()
|
||||
{
|
||||
SPINDLE_ENABLE_DDR |= (1<<SPINDLE_ENABLE_BIT);
|
||||
SPINDLE_DIRECTION_DDR |= (1<<SPINDLE_DIRECTION_BIT);
|
||||
spindle_run(0, 0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue