00001
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046 #ifndef FREERTOS_CONFIG_H
00047 #define FREERTOS_CONFIG_H
00048
00049 #include "board.h"
00050 #include "mass_storage_example.h"
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063 #define configUSE_PREEMPTION 1
00064 #define configUSE_IDLE_HOOK 0
00065 #define configUSE_TICK_HOOK 0
00066 #define configCPU_CLOCK_HZ ( FCPU_HZ )
00067 #define configPBA_CLOCK_HZ ( FPBA_HZ )
00068 #define configTICK_RATE_HZ ( ( portTickType ) 1000 )
00069 #define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 5 )
00070 #define configMINIMAL_STACK_SIZE ( ( unsigned portSHORT ) 128 )
00071
00072 #define configTOTAL_HEAP_SIZE ( ( size_t ) ( 1024*25 ) )
00073 #define configMAX_TASK_NAME_LEN ( 20 )
00074 #define configUSE_TRACE_FACILITY 0
00075 #define configUSE_16_BIT_TICKS 0
00076 #define configIDLE_SHOULD_YIELD 1
00077
00078
00079 #define configUSE_CO_ROUTINES 0
00080 #define configMAX_CO_ROUTINE_PRIORITIES ( 0 )
00081
00082
00083
00084
00085 #define INCLUDE_vTaskPrioritySet 1
00086 #define INCLUDE_uxTaskPriorityGet 1
00087 #define INCLUDE_vTaskDelete 1
00088 #define INCLUDE_vTaskCleanUpResources 0
00089 #define INCLUDE_vTaskSuspend 1
00090 #define INCLUDE_vTaskDelayUntil 1
00091 #define INCLUDE_vTaskDelay 1
00092 #define INCLUDE_xTaskGetCurrentTaskHandle 0
00093 #define INCLUDE_xTaskGetSchedulerState 0
00094
00095
00096
00097
00098
00099
00100
00101 #define configTICK_USE_TC 0
00102 #define configTICK_TC_CHANNEL 2
00103
00104
00105
00106 #define configHEAP_INIT 0
00107
00108
00109
00110 #if BOARD == EVK1100
00111 #define configDBG 1
00112 #define configDBG_USART (&AVR32_USART1)
00113 #define configDBG_USART_RX_PIN AVR32_USART1_RXD_0_0_PIN
00114 #define configDBG_USART_RX_FUNCTION AVR32_USART1_RXD_0_0_FUNCTION
00115 #define configDBG_USART_TX_PIN AVR32_USART1_TXD_0_0_PIN
00116 #define configDBG_USART_TX_FUNCTION AVR32_USART1_TXD_0_0_FUNCTION
00117 #define configDBG_USART_BAUDRATE 57600
00118 #elif BOARD == EVK1101 || BOARD == EVK1104 || BOARD == EVK1105 || BOARD == UC3C_EK
00119 #define configDBG 0
00120 #else
00121 #error The board USART configuration should be defined here.
00122 #endif
00123
00124
00125
00126 #define configTSK_USB_NAME ((const signed portCHAR *)"USB")
00127 #define configTSK_USB_STACK_SIZE 256
00128 #define configTSK_USB_PRIORITY (tskIDLE_PRIORITY + 4)
00129
00130
00131 #define configTSK_USB_DEV_NAME ((const signed portCHAR *)"USB Device")
00132 #define configTSK_USB_DEV_STACK_SIZE 256
00133 #define configTSK_USB_DEV_PRIORITY (tskIDLE_PRIORITY + 3)
00134 #define configTSK_USB_DEV_PERIOD 20
00135
00136
00137 #define configTSK_USB_HST_NAME ((const signed portCHAR *)"USB Host")
00138 #define configTSK_USB_HST_STACK_SIZE 256
00139 #define configTSK_USB_HST_PRIORITY (tskIDLE_PRIORITY + 3)
00140 #define configTSK_USB_HST_PERIOD 20
00141
00142
00143 #define configTSK_USB_DMS_NAME ((const signed portCHAR *)"USB Device MS")
00144 #define configTSK_USB_DMS_STACK_SIZE 256
00145 #define configTSK_USB_DMS_PRIORITY (tskIDLE_PRIORITY + 2)
00146 #define configTSK_USB_DMS_PERIOD 20
00147
00148
00149 #define configTSK_USB_HMS_NAME ((const signed portCHAR *)"USB Host MS")
00150 #define configTSK_USB_HMS_STACK_SIZE 256
00151 #define configTSK_USB_HMS_PRIORITY (tskIDLE_PRIORITY + 2)
00152 #define configTSK_USB_HMS_PERIOD 20
00153
00154
00155 #define configTSK_USHELL_NAME ((const signed portCHAR *)"uShell")
00156 #define configTSK_USHELL_STACK_SIZE 768
00157 #define configTSK_USHELL_PRIORITY (tskIDLE_PRIORITY + 1)
00158 #define configTSK_USHELL_PERIOD 50
00159
00160
00161 #endif