OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [OpenRISC_SIM_GCC/] [main.c] - Diff between revs 649 and 666

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 649 Rev 666
Line 136... Line 136...
        for more information on these tasks. */
        for more information on these tasks. */
        vAltStartComTestTasks( mainCOM_TEST_PRIORITY, mainCOM_TEST_BAUD_RATE, mainCOM_TEST_LED );
        vAltStartComTestTasks( mainCOM_TEST_PRIORITY, mainCOM_TEST_BAUD_RATE, mainCOM_TEST_LED );
        vStartLEDFlashTasks( mainLED_TASK_PRIORITY );
        vStartLEDFlashTasks( mainLED_TASK_PRIORITY );
        vStartIntegerMathTasks( tskIDLE_PRIORITY );
        vStartIntegerMathTasks( tskIDLE_PRIORITY );
 
 
        // vCreateBlockTimeTasks();
        vCreateBlockTimeTasks();
        // vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );
        vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );
        // vStartDynamicPriorityTasks();
        vStartDynamicPriorityTasks();
 
 
        /* Create the tasks defined within this file. */
        /* Create the tasks defined within this file. */
        xTaskCreate( vCheckTask, ( signed char * ) "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );
        xTaskCreate( vCheckTask, ( signed char * ) "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );
 
 
        vTaskStartScheduler();
        vTaskStartScheduler();
Line 182... Line 182...
                if( xAreComTestTasksStillRunning() != pdTRUE )
                if( xAreComTestTasksStillRunning() != pdTRUE )
                {
                {
                        // ulErrorDetected = pdTRUE;
                        // ulErrorDetected = pdTRUE;
                }
                }
 
 
                // if( xAreBlockTimeTestTasksStillRunning() != pdTRUE )
                if( xAreBlockTimeTestTasksStillRunning() != pdTRUE )
                // {
                {
                //      ulErrorDetected = pdTRUE;
                        ulErrorDetected = pdTRUE;
                // }
                }
 
 
                // if( xAreBlockingQueuesStillRunning() != pdTRUE )
                if( xAreBlockingQueuesStillRunning() != pdTRUE )
                // {
                {
                //      ulErrorDetected = pdTRUE;
                        ulErrorDetected = pdTRUE;
                // }
                }
 
 
                // if( xAreDynamicPriorityTasksStillRunning() != pdTRUE )
                if( xAreDynamicPriorityTasksStillRunning() != pdTRUE )
                // {
                {
                //      ulErrorDetected = pdTRUE;
                        ulErrorDetected = pdTRUE;
                // }            
                }
 
 
                if(ulErrorDetected == pdTRUE)
                if(ulErrorDetected == pdTRUE)
                {
                {
                        // something was wrong. report negative indicator
                        // something was wrong. report negative indicator
                        const char *message = "vCheckTask Error detected!\n\r";
                        // const char *message = "vCheckTask Error detected!\n\r";
                        vSerialPutString(NULL, (const signed char*)message, strlen(message));
                        // vSerialPutString(NULL, (const signed char*)message, strlen(message));
 
 
                        report(0xDEADBEEF);
                        report(0xDEADBEEF);
                }
                }
                else
                else
                {
                {
                        // we have no error. report positive indicator
                        // we have no error. report positive indicator
                        const char *message = "vCheckTask OK!\n\r";
                        // const char *message = "vCheckTask OK!\n\r";
                        vSerialPutString(NULL, (const signed char*)message, strlen(message));
                        // vSerialPutString(NULL, (const signed char*)message, strlen(message));
 
 
                        report(0x00000000);
                        report(0x00000000);
                }
                }
 
 
        }
        }

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.