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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [CORTEX_STM32F107_GCC_Rowley/] [FreeRTOSConfig.h.scsc] - Blame information for rev 611

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 582 jeremybenn
/*
2
        FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd.
3
 
4
        This file is part of the FreeRTOS distribution.
5
 
6
        FreeRTOS is free software; you can redistribute it and/or modify it     under
7
        the terms of the GNU General Public License (version 2) as published by the
8
        Free Software Foundation and modified by the FreeRTOS exception.
9
        **NOTE** The exception to the GPL is included to allow you to distribute a
10
        combined work that includes FreeRTOS without being obliged to provide the
11
        source code for proprietary components outside of the FreeRTOS kernel.
12
        Alternative commercial license and support terms are also available upon
13
        request.  See the licensing section of http://www.FreeRTOS.org for full
14
        license details.
15
 
16
        FreeRTOS is distributed in the hope that it will be useful,     but WITHOUT
17
        ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18
        FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
19
        more details.
20
 
21
        You should have received a copy of the GNU General Public License along
22
        with FreeRTOS; if not, write to the Free Software Foundation, Inc., 59
23
        Temple Place, Suite 330, Boston, MA  02111-1307  USA.
24
 
25
 
26
        ***************************************************************************
27
        *                                                                         *
28
        * Looking for a quick start?  Then check out the FreeRTOS eBook!          *
29
        * See http://www.FreeRTOS.org/Documentation for details                   *
30
        *                                                                         *
31
        ***************************************************************************
32
 
33
        1 tab == 4 spaces!
34
 
35
        Please ensure to read the configuration and relevant port sections of the
36
        online documentation.
37
 
38
        http://www.FreeRTOS.org - Documentation, latest information, license and
39
        contact details.
40
 
41
        http://www.SafeRTOS.com - A version that is certified for use in safety
42
        critical systems.
43
 
44
        http://www.OpenRTOS.com - Commercial support, development, porting,
45
        licensing and training services.
46
*/
47
 
48
#ifndef FREERTOS_CONFIG_H
49
#define FREERTOS_CONFIG_H
50
 
51
/*-----------------------------------------------------------
52
 * Application specific definitions.
53
 *
54
 * These definitions should be adjusted for your particular hardware and
55
 * application requirements.
56
 *
57
 * THESE PARAMETERS ARE DESCRIBED WITHIN THE 'CONFIGURATION' SECTION OF THE
58
 * FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE.
59
 *
60
 * See http://www.freertos.org/a00110.html.
61
 *----------------------------------------------------------*/
62
 
63
#define configUSE_PREEMPTION            1
64
#define configUSE_IDLE_HOOK                     0
65
#define configUSE_TICK_HOOK                     1
66
#define configCPU_CLOCK_HZ                      ( ( unsigned portLONG ) 62500000 )
67
#define configTICK_RATE_HZ                      ( ( portTickType ) 1000 )
68
#define configMAX_PRIORITIES            ( ( unsigned portBASE_TYPE ) 5 )
69
#define configMINIMAL_STACK_SIZE        ( ( unsigned portSHORT ) 128 )
70
#define configTOTAL_HEAP_SIZE           ( ( size_t ) ( 30 * 1024 ) )
71
#define configMAX_TASK_NAME_LEN         ( 16 )
72
#define configUSE_TRACE_FACILITY        1
73
#define configUSE_16_BIT_TICKS          0
74
#define configIDLE_SHOULD_YIELD         1
75
 
76
/* Co-routine definitions. */
77
#define configUSE_CO_ROUTINES           0
78
#define configMAX_CO_ROUTINE_PRIORITIES ( 2 )
79
 
80
#define configUSE_MUTEXES                               1
81
#define configUSE_COUNTING_SEMAPHORES   0
82
#define configUSE_ALTERNATIVE_API               0
83
#define configCHECK_FOR_STACK_OVERFLOW  2
84
#define configUSE_RECURSIVE_MUTEXES             1
85
#define configQUEUE_REGISTRY_SIZE               0
86
#define configGENERATE_RUN_TIME_STATS   1
87
 
88
/* Set the following definitions to 1 to include the API function, or zero
89
to exclude the API function. */
90
 
91
#define INCLUDE_vTaskPrioritySet                1
92
#define INCLUDE_uxTaskPriorityGet               1
93
#define INCLUDE_vTaskDelete                             1
94
#define INCLUDE_vTaskCleanUpResources   0
95
#define INCLUDE_vTaskSuspend                    1
96
#define INCLUDE_vTaskDelayUntil                 1
97
#define INCLUDE_vTaskDelay                              1
98
 
99
/* This is the raw value as per the Cortex-M3 NVIC.  Values can be 255
100
(lowest) to 0 (1?) (highest). */
101
#define configKERNEL_INTERRUPT_PRIORITY                 255
102
#define configMAX_SYSCALL_INTERRUPT_PRIORITY    191 /* equivalent to 0xb0, or priority 11. */
103
 
104
 
105
/* This is the value being used as per the ST library which permits 16
106
priority values, 0 to 15.  This must correspond to the
107
configKERNEL_INTERRUPT_PRIORITY setting.  Here 15 corresponds to the lowest
108
NVIC value of 255. */
109
#define configLIBRARY_KERNEL_INTERRUPT_PRIORITY 15
110
 
111
/*-----------------------------------------------------------
112
 * Ethernet configuration.
113
 *-----------------------------------------------------------*/
114
 
115
/* MAC address configuration. */
116
#define configMAC_ADDR0 0x00
117
#define configMAC_ADDR1 0x12
118
#define configMAC_ADDR2 0x13
119
#define configMAC_ADDR3 0x10
120
#define configMAC_ADDR4 0x15
121
#define configMAC_ADDR5 0x11
122
 
123
/* IP address configuration. */
124
#define configIP_ADDR0          172
125
#define configIP_ADDR1          25
126
#define configIP_ADDR2          218
127
#define configIP_ADDR3          202
128
 
129
/* Netmask configuration. */
130
#define configNET_MASK0         255
131
#define configNET_MASK1         255
132
#define configNET_MASK2         255
133
#define configNET_MASK3         0
134
 
135
 
136
/*-----------------------------------------------------------
137
 * Macros required to setup the timer for the run time stats.
138
 *-----------------------------------------------------------*/
139
/* The run time stats time base just uses the existing high frequency timer
140
test clock.  All these macros do is clear and return the high frquency
141
interrupt count respectively. */
142
extern unsigned long ulRunTimeStatsClock;
143
#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() ulRunTimeStatsClock = 0
144
#define portGET_RUN_TIME_COUNTER_VALUE() ulRunTimeStatsClock
145
 
146
 
147
#endif /* FREERTOS_CONFIG_H */
148
 

powered by: WebSVN 2.1.0

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