summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Tittelbach <xro@realraum.at>2012-10-05 13:46:45 +0000
committerBernhard Tittelbach <xro@realraum.at>2012-10-05 13:46:45 +0000
commit92f8155a1aae40dba9bb3d896020c5dabf4b03ec (patch)
tree7340f7b941c7c5f1d3df05061cc1c6b9146a867b
parentr3 cam rotate test (diff)
r3cam fullsteps
-rw-r--r--r3cam-steppermotor/r3cam-steppermotor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/r3cam-steppermotor/r3cam-steppermotor.c b/r3cam-steppermotor/r3cam-steppermotor.c
index fcebc65..6ed3c33 100644
--- a/r3cam-steppermotor/r3cam-steppermotor.c
+++ b/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)