Skip to content

Commit 77b2b61

Browse files
author
HirokiIshiguro
committed
2 parents 9927b47 + fa0d36d commit 77b2b61

File tree

5 files changed

+1531
-0
lines changed

5 files changed

+1531
-0
lines changed
Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
/*
2+
* FreeRTOS Kernel V10.0.0
3+
* Copyright (C) 2017 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. If you wish to use our Amazon
14+
* FreeRTOS name, please do so in a fair use way that does not cause confusion.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
18+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
19+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
20+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22+
*
23+
* http://www.FreeRTOS.org
24+
* http://aws.amazon.com/freertos
25+
*
26+
* 1 tab == 4 spaces!
27+
*/
28+
29+
#ifndef FREERTOS_CONFIG_H
30+
#define FREERTOS_CONFIG_H
31+
32+
/* Prevent Renesas headers redefining some stdint.h types. */
33+
#define __TYPEDEF__ 1
34+
35+
/*-----------------------------------------------------------
36+
* Application specific definitions.
37+
*
38+
* These definitions should be adjusted for your particular hardware and
39+
* application requirements.
40+
*
41+
* THESE PARAMETERS ARE DESCRIBED WITHIN THE 'CONFIGURATION' SECTION OF THE
42+
* FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE.
43+
*
44+
* See http://www.freertos.org/a00110.html.
45+
*----------------------------------------------------------*/
46+
47+
#define configUSE_PREEMPTION 1
48+
#define configUSE_IDLE_HOOK 1
49+
#define configUSE_TICK_HOOK 1
50+
#define configCPU_CLOCK_HZ ( BSP_ICLK_HZ )
51+
#define configPERIPHERAL_CLOCK_HZ ( BSP_PCLKB_HZ )
52+
#define configTICK_RATE_HZ ( ( TickType_t ) 1000 )
53+
#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 140 )
54+
#define configTOTAL_HEAP_SIZE_N ( 4 )
55+
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( configTOTAL_HEAP_SIZE_N * 1024 ) )
56+
#define configMAX_TASK_NAME_LEN ( 12 )
57+
#define configUSE_TRACE_FACILITY 1
58+
#define configUSE_16_BIT_TICKS 0
59+
#define configIDLE_SHOULD_YIELD 1
60+
#define configUSE_CO_ROUTINES 0
61+
#define configUSE_MUTEXES 1
62+
#define configGENERATE_RUN_TIME_STATS 0
63+
#define configCHECK_FOR_STACK_OVERFLOW 2
64+
#define configUSE_RECURSIVE_MUTEXES 1
65+
#define configQUEUE_REGISTRY_SIZE 0
66+
#define configUSE_MALLOC_FAILED_HOOK 1
67+
#define configUSE_APPLICATION_TASK_TAG 0
68+
#define configUSE_QUEUE_SETS 1
69+
#define configUSE_COUNTING_SEMAPHORES 1
70+
#define configMAX_PRIORITIES ( 7 )
71+
#define configMAX_CO_ROUTINE_PRIORITIES ( 2 )
72+
#define configUSE_TASK_NOTIFICATIONS 1
73+
#define configRECORD_STACK_HIGH_ADDRESS 0
74+
#define configNUM_THREAD_LOCAL_STORAGE_POINTERS 0
75+
76+
/* Dynamic allocation and static allocation. */
77+
#define configSUPPORT_DYNAMIC_ALLOCATION 1
78+
#define configSUPPORT_STATIC_ALLOCATION 0
79+
80+
/* Run time stats gathering definitions. */
81+
unsigned long ulGetRunTimeCounterValue( void );
82+
void vConfigureTimerForRunTimeStats( void );
83+
#define configGENERATE_RUN_TIME_STATS 0
84+
//#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() vConfigureTimerForRunTimeStats()
85+
//#define portGET_RUN_TIME_COUNTER_VALUE() ulGetRunTimeCounterValue()
86+
87+
/* Software timer definitions. */
88+
#define configUSE_TIMERS 1
89+
#define configTIMER_TASK_PRIORITY ( configMAX_PRIORITIES - 1 )
90+
#define configTIMER_QUEUE_LENGTH 5
91+
#define configTIMER_TASK_STACK_DEPTH ( configMINIMAL_STACK_SIZE )
92+
93+
/* The interrupt priority used by the kernel itself for the tick interrupt and
94+
the pended interrupt. This would normally be the lowest priority. */
95+
#define configKERNEL_INTERRUPT_PRIORITY 1
96+
97+
/* The maximum interrupt priority from which FreeRTOS API calls can be made.
98+
Interrupts that use a priority above this will not be effected by anything the
99+
kernel is doing. */
100+
#define configMAX_SYSCALL_INTERRUPT_PRIORITY 4
101+
102+
/* The peripheral used to generate the tick interrupt is configured as part of
103+
the application code. This constant should be set to the vector number of the
104+
peripheral chosen. As supplied this is CMT0. */
105+
#define configTICK_VECTOR _CMT0_CMI0
106+
107+
/* Set the following definitions to 1 to include the API function, or zero
108+
to exclude the API function. */
109+
110+
#define INCLUDE_vTaskPrioritySet 1
111+
#define INCLUDE_uxTaskPriorityGet 1
112+
#define INCLUDE_vTaskDelete 1
113+
#define INCLUDE_vTaskCleanUpResources 0
114+
#define INCLUDE_vTaskSuspend 1
115+
#define INCLUDE_vTaskDelayUntil 1
116+
#define INCLUDE_vTaskDelay 1
117+
#define INCLUDE_uxTaskGetStackHighWaterMark 1
118+
#define INCLUDE_xTaskGetSchedulerState 1
119+
#define INCLUDE_eTaskGetState 1
120+
#define INCLUDE_xTimerPendFunctionCall 1
121+
122+
void vAssertCalled( void );
123+
#define configASSERT( x ) if( ( x ) == 0 ) vAssertCalled()
124+
125+
/* Override some of the priorities set in the common demo tasks. This is
126+
required to ensure flase positive timing errors are not reported. */
127+
#define bktPRIMARY_PRIORITY ( configMAX_PRIORITIES - 3 )
128+
#define bktSECONDARY_PRIORITY ( configMAX_PRIORITIES - 4 )
129+
#define intqHIGHER_PRIORITY ( configMAX_PRIORITIES - 3 )
130+
131+
132+
/*-----------------------------------------------------------
133+
* Ethernet configuration.
134+
*-----------------------------------------------------------*/
135+
136+
/* MAC address configuration. */
137+
#define configMAC_ADDR0 0x01
138+
#define configMAC_ADDR1 0x12
139+
#define configMAC_ADDR2 0x13
140+
#define configMAC_ADDR3 0x10
141+
#define configMAC_ADDR4 0x15
142+
#define configMAC_ADDR5 0x11
143+
144+
/* IP address configuration. */
145+
#define configIP_ADDR0 192
146+
#define configIP_ADDR1 168
147+
#define configIP_ADDR2 0
148+
#define configIP_ADDR3 200
149+
150+
/* Netmask configuration. */
151+
#define configNET_MASK0 255
152+
#define configNET_MASK1 255
153+
#define configNET_MASK2 255
154+
#define configNET_MASK3 0
155+
156+
/* When the FIT configurator or the Smart Configurator is used, platform.h has to be used. */
157+
#define configINCLUDE_PLATFORM_H_INSTEAD_OF_IODEFINE_H 1
158+
159+
#endif /* FREERTOS_CONFIG_H */

0 commit comments

Comments
 (0)