10.07.2015 Views

ePBB Development Guide.pdf

ePBB Development Guide.pdf

ePBB Development Guide.pdf

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Microtime Computer Inc.List-5-(9) :It specifies the size of the task’s stack in number of elements. The size of element could bebyte(8-bit), word(16-bit) or long-word(32-bit).List-5-(10) :It contains task-specific options such as :● OS_TASK_OPT_STK_CHK● OS_TASK_OPT_STK_CLR● ...List-5-(11) :OSTaskNameSet() allows you to assign a name to a task. This function is typically used bydebugger to associate a task name to task. Here we assign "Start Task" to taskApp_TaskStart().List-5-(12) :The final step in main() is to call OSStart(), which starts the multitasking process. OSStart()is never returned after calling.List-6. The first application task : App_TaskStart() (OS_uCOS-II : app.c)List-6-(1) :Task looks like any other C function, the argument p_arg is passed to App_TaskStart() byOSTaskCreateExt().List-6-(2) :It's a BSP function that is responsible for initializing the hardware on target board. It'slocated in file bsp.cList-6-(3) :CPU_Init() initialize the uC/CPU services.List-6-(4) :BSP_CPU_ClkFreq() determines the system tick reference frequency of the board.3-11 ePPB <strong>Development</strong> <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!