Exemplo n.º 1
0
MAIN_RETURN main ( void )
{
    /*Call the SYS Init routine. App init routine gets called from this*/
    SYS_Initialize(NULL);

    while(true)
    {
        /*Invoke SYS tasks. APP tasks gets called from this*/
        SYS_Tasks();

    }

    // Should not come here during normal operation
    SYS_ASSERT(false, "about to exit main");

    return MAIN_RETURN_CODE(MAIN_RETURN_SUCCESS);
}
Exemplo n.º 2
0
// *****************************************************************************
// *****************************************************************************
// Section: Main Entry Point
// *****************************************************************************
// *****************************************************************************
int main( void )
{
    /* Prepare the hardware to run this demo. */
    SYS_Initialize();

    while(true)
    {
        /*Invoke SYS tasks. APP tasks gets called from this*/
        SYS_Tasks();

    }

    // Should not come here during normal operation
    SYS_ASSERT(false, "about to exit main");

    return MAIN_RETURN_CODE(MAIN_RETURN_SUCCESS);

}