for( ;; )
{
/* Queue a message for the print task to display on the UART CONSOLE. */
osi_MsgQWrite(&MsgQ, (void*) pcInterruptMessage[ul_2 % 4], OSI_NO_WAIT);
ul_2++;
osi_Sleep(200);
}
}
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);
}
感谢分享