int main( void )
{
//
// Initialize the board
//
BoardInit();
PinMuxConfig();
//
// Initializing the terminal
//
InitTerm();
//
// Clearing the terminal
//
ClearTerm();
//
// Diasplay Banner
//
DisplayBanner(APP_NAME);
//
// Creating a queue for 10 elements.
//
OsiReturnVal_e osi_retVal;
osi_retVal = osi_MsgQCreate(&MsgQ, "MSGQ", MAX_MSG_LENGTH, 10);
if(osi_retVal != OSI_OK)
{
// Queue was not created and must not be used.
while(1);
}
//
// Create the Queue Receive task
//
osi_TaskCreate( vTestTask1, "TASK1",\
OSI_STACK_SIZE, NULL, 1, NULL );
//
// Create the Queue Send task
//
osi_TaskCreate( vTestTask2, "TASK2",\
OSI_STACK_SIZE,NULL, 1, NULL );
//
// Start the task scheduler
//
osi_start();
return 0;
}
|