2 * FreeRTOS Kernel V10.0.1
\r
3 * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
\r
5 * Permission is hereby granted, free of charge, to any person obtaining a copy of
\r
6 * this software and associated documentation files (the "Software"), to deal in
\r
7 * the Software without restriction, including without limitation the rights to
\r
8 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
\r
9 * the Software, and to permit persons to whom the Software is furnished to do so,
\r
10 * subject to the following conditions:
\r
12 * The above copyright notice and this permission notice shall be included in all
\r
13 * copies or substantial portions of the Software.
\r
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
\r
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
\r
17 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
\r
18 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
\r
19 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
\r
20 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\r
22 * http://www.FreeRTOS.org
\r
23 * http://aws.amazon.com/freertos
\r
25 * 1 tab == 4 spaces!
\r
28 #ifndef FREERTOS_CONFIG_H
\r
29 #define FREERTOS_CONFIG_H
\r
31 #include "MCF52235.h"
\r
33 /*-----------------------------------------------------------
\r
34 * Application specific definitions.
\r
36 * These definitions should be adjusted for your particular hardware and
\r
37 * application requirements.
\r
39 * THESE PARAMETERS ARE DESCRIBED WITHIN THE 'CONFIGURATION' SECTION OF THE
\r
40 * FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE.
\r
42 * See http://www.freertos.org/a00110.html.
\r
43 *----------------------------------------------------------*/
\r
45 #define configUSE_PREEMPTION 1
\r
46 #define configUSE_IDLE_HOOK 0
\r
47 #define configUSE_TICK_HOOK 0
\r
48 #define configCPU_CLOCK_HZ ( ( unsigned long ) 60000000 )
\r
49 #define configTICK_RATE_HZ ( ( portTickType ) 1000 )
\r
50 #define configMINIMAL_STACK_SIZE ( ( unsigned short ) 100 )
\r
51 #define configTOTAL_HEAP_SIZE ( ( size_t ) ( 19000 ) )
\r
52 #define configMAX_TASK_NAME_LEN ( 12 )
\r
53 #define configUSE_TRACE_FACILITY 1
\r
54 #define configUSE_16_BIT_TICKS 0
\r
55 #define configIDLE_SHOULD_YIELD 0
\r
56 #define configUSE_CO_ROUTINES 0
\r
57 #define configUSE_MUTEXES 1
\r
58 #define configCHECK_FOR_STACK_OVERFLOW 1
\r
59 #define configUSE_RECURSIVE_MUTEXES 1
\r
60 #define configQUEUE_REGISTRY_SIZE 10
\r
61 #define configUSE_COUNTING_SEMAPHORES 0
\r
63 #define configMAX_PRIORITIES ( 6 )
\r
64 #define configMAX_CO_ROUTINE_PRIORITIES ( 2 )
\r
66 /* Set the following definitions to 1 to include the API function, or zero
\r
67 to exclude the API function. */
\r
69 #define INCLUDE_vTaskPrioritySet 1
\r
70 #define INCLUDE_uxTaskPriorityGet 1
\r
71 #define INCLUDE_vTaskDelete 1
\r
72 #define INCLUDE_vTaskCleanUpResources 0
\r
73 #define INCLUDE_vTaskSuspend 1
\r
74 #define INCLUDE_vTaskDelayUntil 1
\r
75 #define INCLUDE_vTaskDelay 1
\r
76 #define INCLUDE_uxTaskGetStackHighWaterMark 1
\r
78 /* This demo makes use of one or more example stats formatting functions. These
\r
79 format the raw data provided by the uxTaskGetSystemState() function in to human
\r
80 readable ASCII form. See the notes in the implementation of vTaskList() within
\r
81 FreeRTOS/Source/tasks.c for limitations. */
\r
82 #define configUSE_STATS_FORMATTING_FUNCTIONS 1
\r
84 /* Port specific definitions. */
\r
85 #define configYIELD_INTERRUPT_VECTOR 16UL
\r
86 #define configKERNEL_INTERRUPT_PRIORITY 1
\r
87 #define configMAX_SYSCALL_INTERRUPT_PRIORITY 4
\r
89 /* The function that initialises the tick and context switch interrupts. This
\r
90 function is part of the application side (rather than kernel) to allow users to
\r
91 change the peripherals and vectors being used should they conflict in any way
\r
92 with the application itself. */
\r
93 void vApplicationSetupInterrupts( void );
\r
95 /* Ethernet configuration. **************************/
\r
97 /* Defines the MAC address to be used. */
\r
98 #define configMAC_0 0x00
\r
99 #define configMAC_1 0x04
\r
100 #define configMAC_2 0x9F
\r
101 #define configMAC_3 0x00
\r
102 #define configMAC_4 0xAB
\r
103 #define configMAC_5 0x2B
\r
105 /* Defines the IP address to be used. */
\r
106 #define configIP_ADDR0 192
\r
107 #define configIP_ADDR1 168
\r
108 #define configIP_ADDR2 0
\r
109 #define configIP_ADDR3 11
\r
111 /* Defines the gateway address to be used. */
\r
112 #define configGW_ADDR0 192
\r
113 #define configGW_ADDR1 168
\r
114 #define configGW_ADDR2 0
\r
115 #define configGW_ADDR3 1
\r
117 /* Defins the net mask. */
\r
118 #define configNET_MASK0 255
\r
119 #define configNET_MASK1 255
\r
120 #define configNET_MASK2 255
\r
121 #define configNET_MASK3 0
\r
123 /* FEC driver configuration. */
\r
124 #define configNUM_FEC_RX_BUFFERS 3
\r
125 #define configFEC_BUFFER_SIZE 1520
\r
126 #define configUSE_PROMISCUOUS_MODE 0
\r
127 #define configFEC_INTERRUPT_PRIORITY configMAX_SYSCALL_INTERRUPT_PRIORITY
\r
128 #define configPHY_ADDRESS 0
\r
130 #if ( configFEC_BUFFER_SIZE & 0x0F ) != 0
\r
131 #error configFEC_BUFFER_SIZE must be a multiple of 16.
\r
135 #endif /* FREERTOS_CONFIG_H */
\r