22 lines
390 B
C
22 lines
390 B
C
#include <motorControlTask.h>
|
|
|
|
static TaskState_t motorState = TASK_STATE_INIT;
|
|
|
|
|
|
|
|
|
|
void MotorCtrl_TaskHandler(void)
|
|
{
|
|
switch(motorState){
|
|
case TASK_STATE_INIT:
|
|
/* Motor control initialization */
|
|
|
|
/* End of Motor control initialization */
|
|
motorState = TASK_STATE_ACTIVE;
|
|
break;
|
|
case TASK_STATE_ACTIVE:
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
} |