]> begriffs open source - cmsis-freertos/blob - Demo/RX700_RX71M_RSK_GCC_e2studio_IAR/src/FreeRTOSConfig.h
Updated pack to FreeRTOS 10.4.4
[cmsis-freertos] / Demo / RX700_RX71M_RSK_GCC_e2studio_IAR / src / FreeRTOSConfig.h
1 /*
2  * FreeRTOS V202107.00
3  * Copyright (C) 2020 Amazon.com, Inc. or its affiliates.  All Rights Reserved.
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a copy of
6  * this software and associated documentation files (the "Software"), to deal in
7  * the Software without restriction, including without limitation the rights to
8  * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9  * the Software, and to permit persons to whom the Software is furnished to do so,
10  * subject to the following conditions:
11  *
12  * The above copyright notice and this permission notice shall be included in all
13  * copies or substantial portions of the Software.
14  *
15  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17  * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18  * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21  *
22  * http://www.FreeRTOS.org
23  * http://aws.amazon.com/freertos
24  *
25  * 1 tab == 4 spaces!
26  */
27
28 #ifndef FREERTOS_CONFIG_H
29 #define FREERTOS_CONFIG_H
30
31 /* Renesas hardware definition header. */
32 #ifdef __ICCRX__
33         #include <iorx71m.h>
34         #include <machine.h>
35 #endif
36
37 #ifdef __GNUC__
38         #include "iodefine.h"
39 #endif
40
41 /*-----------------------------------------------------------
42  * Application specific definitions.
43  *
44  * These definitions should be adjusted for your particular hardware and
45  * application requirements.
46  *
47  * THESE PARAMETERS ARE DESCRIBED WITHIN THE 'CONFIGURATION' SECTION OF THE
48  * FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE.
49  *
50  * See http://www.freertos.org/a00110.html
51  *----------------------------------------------------------*/
52
53 #define configUSE_PREEMPTION                    1
54 #define configUSE_IDLE_HOOK                             1
55 #define configUSE_TICK_HOOK                             1
56 #define configCPU_CLOCK_HZ                              ( 120000000UL )
57 #define configPERIPHERAL_CLOCK_HZ               ( 60000000UL )
58 #define configTICK_RATE_HZ                              ( ( TickType_t ) 1000 )
59 #define configMINIMAL_STACK_SIZE                ( ( unsigned short ) 120 )
60 #define configTOTAL_HEAP_SIZE                   ( ( size_t ) ( 50 * 1024 ) )
61 #define configMAX_TASK_NAME_LEN                 ( 12 )
62 #define configUSE_TRACE_FACILITY                1
63 #define configUSE_16_BIT_TICKS                  0
64 #define configIDLE_SHOULD_YIELD                 1
65 #define configUSE_CO_ROUTINES                   0
66 #define configUSE_MUTEXES                               1
67 #define configGENERATE_RUN_TIME_STATS   0
68 #define configCHECK_FOR_STACK_OVERFLOW  2
69 #define configUSE_RECURSIVE_MUTEXES             1
70 #define configQUEUE_REGISTRY_SIZE               0
71 #define configUSE_MALLOC_FAILED_HOOK    1
72 #define configUSE_APPLICATION_TASK_TAG  0
73 #define configUSE_QUEUE_SETS                    1
74 #define configUSE_COUNTING_SEMAPHORES   1
75 #define configMAX_PRIORITIES                    ( 7 )
76 #define configMAX_CO_ROUTINE_PRIORITIES ( 2 )
77
78 /* This demo makes use of one or more example stats formatting functions.  These
79 format the raw data provided by the uxTaskGetSystemState() function in to human
80 readable ASCII form.  See the notes in the implementation of vTaskList() within
81 FreeRTOS/Source/tasks.c for limitations. */
82 #define configUSE_STATS_FORMATTING_FUNCTIONS    1
83
84 /* Software timer definitions. */
85 #define configUSE_TIMERS                                1
86 #define configTIMER_TASK_PRIORITY               ( configMAX_PRIORITIES - 1 )
87 #define configTIMER_QUEUE_LENGTH                5
88 #define configTIMER_TASK_STACK_DEPTH    ( configMINIMAL_STACK_SIZE )
89
90 /* The interrupt priority used by the kernel itself for the tick interrupt and
91 the pended interrupt.  This would normally be the lowest priority. */
92 #define configKERNEL_INTERRUPT_PRIORITY         1
93
94 /* The maximum interrupt priority from which FreeRTOS API calls can be made.
95 Interrupts that use a priority above this will not be effected by anything the
96 kernel is doing. */
97 #define configMAX_SYSCALL_INTERRUPT_PRIORITY    4
98
99 /* The peripheral used to generate the tick interrupt is configured as part of
100 the application code.  This constant should be set to the vector number of the
101 peripheral chosen.  As supplied this is CMT0. */
102 #define configTICK_VECTOR                                               28 /*vect _CMT0_CMI0*/
103
104 /* Set the following definitions to 1 to include the API function, or zero
105 to exclude the API function. */
106
107 #define INCLUDE_vTaskPrioritySet                        1
108 #define INCLUDE_uxTaskPriorityGet                       1
109 #define INCLUDE_vTaskDelete                                     1
110 #define INCLUDE_vTaskCleanUpResources           0
111 #define INCLUDE_vTaskSuspend                            1
112 #define INCLUDE_vTaskDelayUntil                         1
113 #define INCLUDE_vTaskDelay                                      1
114 #define INCLUDE_uxTaskGetStackHighWaterMark     1
115 #define INCLUDE_xTaskGetSchedulerState          1
116 #define INCLUDE_eTaskGetState                           1
117 #define INCLUDE_xTimerPendFunctionCall          1
118
119 #define configASSERT( x ) if( ( x ) == 0 ) { taskDISABLE_INTERRUPTS(); for( ;; ); }
120
121 /* The buffer into which output generated by FreeRTOS+CLI is placed.  This must
122 be at least big enough to contain the output of the task-stats command, as the
123 example implementation does not include buffer overlow checking. */
124 #define configCOMMAND_INT_MAX_OUTPUT_SIZE       3500
125 #define configINCLUDE_QUERY_HEAP_COMMAND        1
126
127 /* Override some of the priorities set in the common demo tasks.  This is
128 required to ensure flase positive timing errors are not reported. */
129 #define bktPRIMARY_PRIORITY             ( configMAX_PRIORITIES - 3 )
130 #define bktSECONDARY_PRIORITY   ( configMAX_PRIORITIES - 4 )
131 #define intqHIGHER_PRIORITY             ( configMAX_PRIORITIES - 3 )
132
133
134 #endif /* FREERTOS_CONFIG_H */