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 799 and 800

Show entire file | Details | Blame | View Log

Rev 799 Rev 800
Line 72... Line 72...
#include "blocktim.h"
#include "blocktim.h"
#include "BlockQ.h"
#include "BlockQ.h"
#include "comtest2.h"
#include "comtest2.h"
#include "dynamic.h"
#include "dynamic.h"
 
 
 
#include "or32_dma.h"
 
 
/* BSP headers. */
/* BSP headers. */
#include "support.h"
#include "support.h"
#include "board.h"
#include "board.h"
#include "uart.h"
#include "uart.h"
#include "gpio.h"
#include "gpio.h"
 
#include "dma.h"
 
 
#include "interrupts.h"
#include "interrupts.h"
 
 
/* Demo application task priorities. */
/* Demo application task priorities. */
#define mainCHECK_TASK_PRIORITY         ( tskIDLE_PRIORITY + 4 )
#define mainCHECK_TASK_PRIORITY         ( tskIDLE_PRIORITY + 4 )
Line 134... Line 137...
        /* Create the standard demo application tasks.  See the WEB documentation
        /* Create the standard demo application tasks.  See the WEB documentation
        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 );
 
        vStartDmaDemoTasks( tskIDLE_PRIORITY );
 
 
        vCreateBlockTimeTasks();
        vCreateBlockTimeTasks();
        vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );
        vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );
        vStartDynamicPriorityTasks();
        vStartDynamicPriorityTasks();
 
 
Line 196... Line 200...
                if( xAreDynamicPriorityTasksStillRunning() != pdTRUE )
                if( xAreDynamicPriorityTasksStillRunning() != pdTRUE )
                {
                {
                        ulErrorDetected = pdTRUE;
                        ulErrorDetected = pdTRUE;
                }
                }
 
 
 
                if( xAreDmaDemoTaskStillRunning() != 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));
Line 224... Line 233...
{
{
        // UART controller use 25 Mhz Wishbone bus clock, define in board.h
        // UART controller use 25 Mhz Wishbone bus clock, define in board.h
        uart_init(0);
        uart_init(0);
        uart_rxint_enable(0);
        uart_rxint_enable(0);
 
 
 
        // Initialize DMA controller
 
        dma_init((void *)DMA_BASE);
 
 
        // Initialize internal Programmable Interrupt Controller
        // Initialize internal Programmable Interrupt Controller
        int_init();
        int_init();
 
 
        // GPIO Initialize
        // GPIO Initialize
        gpio_init(0);
        gpio_init(0);

powered by: WebSVN 2.1.0

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