11.07.2015 Views

IAR PowerPac RTOS User Guide

IAR PowerPac RTOS User Guide

IAR PowerPac RTOS User Guide

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

}}sprintf(ac, "LoRes: %d ms\n", tLo);OS_SendString(ac);sprintf(ac, "HiRes: %d us\n", tHi);OS_SendString(ac);/************************************************************ main***********************************************************/void main(void) {OS_InitKern(); /* Initialize OS */OS_InitHW(); /* Initialize Hardware for OS *//* You need to create at least one task here ! */OS_CREATETASK(&TCB, "HP Task", Task, 100, Stack);OS_Start(); /* Start multitasking */}The output of the sample is as follows:LoRes: 7 msHiRes: 6641 usLoRes: 7 msHiRes: 6641 usLoRes: 6 ms118<strong>IAR</strong> <strong>PowerPac</strong> <strong>RTOS</strong>for ARM CoresPP<strong>RTOS</strong>-2

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!