Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagecpp
//app variables
#pragma data_aligmentalignment = 8
OS_STK myTaskStack[STACK_SIZE];
 
...
 
// prototypes
static void myTask(void* unused);

...

//create the task
osErr = OSTaskCreateExt(
   myTask,
   (void *) 0,
   (OS_STK*) (&myTaskStack[STACK_SIZE-1]),
   PRIORITY,
   PRIORITY,
   (OS_STK*) &myTaskStack,
   STACK_SIZE,
   (void *) 0,
   OS_TASK_OPT_STK_CHK | OS_TASK_OPT_STK_CLR
);

...

...