remove while1 from task
This commit is contained in:
@@ -33,7 +33,6 @@ extern int16_t pidValue;
|
||||
void timer_Task(void *pdata) {
|
||||
timer_Init();
|
||||
|
||||
while(1){
|
||||
if(pidValue){
|
||||
uint16_t interval = 1.337*(64000/abs(pidValue));
|
||||
uint8_t direction = pidValue<0;
|
||||
@@ -52,7 +51,6 @@ void timer_Task(void *pdata) {
|
||||
{
|
||||
timer_Stop(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* * * intializes and starts two timers with respective puls generation on gpio pins * * */
|
||||
|
||||
Reference in New Issue
Block a user