From c64b4453c273b2931c3c8112f3b7680fd592f823 Mon Sep 17 00:00:00 2001 From: Bernhard Tittelbach Date: Fri, 5 Oct 2012 13:46:45 +0000 Subject: [PATCH] r3cam fullsteps --- avr-projects/r3cam-steppermotor/r3cam-steppermotor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/avr-projects/r3cam-steppermotor/r3cam-steppermotor.c b/avr-projects/r3cam-steppermotor/r3cam-steppermotor.c index fcebc65..6ed3c33 100644 --- a/avr-projects/r3cam-steppermotor/r3cam-steppermotor.c +++ b/avr-projects/r3cam-steppermotor/r3cam-steppermotor.c @@ -79,7 +79,7 @@ void EVENT_USB_Device_ControlRequest(void) #define M_CLK 1 #define M_ENABLE 2 #define M_RESET 3 -#define M_HALFSTEPS 4 +#define M_FULLSTEPS 4 static uint8_t m_clk_divisor_ = 0; static uint8_t m_clk_divisor_counter_ = 0; @@ -144,7 +144,7 @@ void motor_run(uint16_t steps, uint8_t direction) void init_pins() { M_DDR = 0x0F; - M_PORT = 0 | (1 << M_RESET); + M_PORT = (1 << M_RESET) | (1 << M_FULLSTEPS); // Configure timer 0 to generate a timer overflow interrupt every // 560us (NEC Protocol) -- 1.7.10.4