Пример #1
0
void PreInstallTasks(void)
{
  uint8_t i=0;
  OSTickCounter = 0;
  currentTask = 0;
  NumberOfInstalledTasks = 0;
  TaskAlloc = 0;
  iStackAddress = 0;
#if (!BRTOS_DYNAMIC_TASKS_ENABLED)
  StackAddress = (stack_pointer_t) &STACK;
#endif
  
  for(i=0;i<configMAX_TASK_INSTALL;i++)
  {
    PriorityVector[i]=EMPTY_PRIO;
  }

  for(i=1;i<=NUMBER_OF_TASKS;i++)
  {
	  ContextTask[i].Priority = EMPTY_PRIO;
#if (COMPUTES_TASK_LOAD == 1)
	  ContextTask[i].Runtime = 0;
#endif
  }
    
  Tail = NULL;
  Head = NULL;
  
  #if (OSRTCEN == 1)
    OSRTCSetup();
  #endif  
}
Пример #2
0
void PreInstallTasks(void)
{
  INT8U i=0;
  OSTickCounter = 0;
  currentTask = 0;
  NumberOfInstalledTasks = 0;
  TaskAlloc = 0;
  iStackAddress = 0;
  
  for(i=0;i<configMAX_TASK_INSTALL;i++)
  {
    PriorityVector[i]=EMPTY_PRIO;
  }

  for(i=1;i<=NUMBER_OF_TASKS;i++)
  {
	  ContextTask[i].Priority = EMPTY_PRIO;
  }
    
  Tail = NULL;
  Head = NULL;
  
  #if (OSRTCEN == 1)
    OSRTCSetup();
  #endif
  
}