p kj
/
LPC824-BalanceCar
Microduino
Fork of BalanceCar by
Diff: Microduino_Stepper.cpp
- Revision:
- 2:99785a1007a4
- Parent:
- 0:a4d8f5b3c546
--- a/Microduino_Stepper.cpp Sat Jun 04 04:06:36 2016 +0000 +++ b/Microduino_Stepper.cpp Tue Jun 07 05:26:03 2016 +0000 @@ -2,12 +2,14 @@ // // Copyright (C) 2009-2013 Shenyang // $Id: Microduino_Stepper.cpp,v 1.00 2016/04/07 $ - +#if 0 #include "Microduino_Stepper.h" extern Timer g_Timer; DigitalOut gSteperE(PIN_EN); Ticker g_Ticker; -static Stepper_t steppers[MAX_STEPPERS]; +static Stepper_t steppers[MAX_STEPPERS] = { + {false,NULL},{false,NULL},{false,NULL},{false,NULL} +}; uint8_t StepperCount = 0; @@ -25,6 +27,7 @@ gSteperE = 1; } +#if 0 static inline void handle_interrupts() { for(uint8_t channel=0; channel < MAX_STEPPERS; channel++) { @@ -32,6 +35,7 @@ steppers[channel].stepper->computeStep(); } } +#endif #if 0 static void initISR() @@ -159,3 +163,4 @@ } } } +#endif \ No newline at end of file