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
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062 #define configUSE_PREEMPTION 1
00063 #define configUSE_IDLE_HOOK 0
00064 #define configUSE_TICK_HOOK 0
00065 #define configCPU_CLOCK_HZ ( FOSC0 )
00066 #define configPBA_CLOCK_HZ ( FOSC0 )
00067 #define configTICK_RATE_HZ ( ( portTickType ) 1000 )
00068 #define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 4 )
00069 #define configMINIMAL_STACK_SIZE ( ( unsigned portSHORT ) 256 )
00070
00071 #define configTOTAL_HEAP_SIZE ( ( size_t ) ( 1024*25 ) )
00072 #define configMAX_TASK_NAME_LEN ( 20 )
00073 #define configUSE_TRACE_FACILITY 0
00074 #define configUSE_16_BIT_TICKS 0
00075 #define configIDLE_SHOULD_YIELD 1
00076
00077
00078 #define configUSE_CO_ROUTINES 0
00079 #define configMAX_CO_ROUTINE_PRIORITIES ( 0 )
00080
00081
00082
00083
00084 #define INCLUDE_vTaskPrioritySet 1
00085 #define INCLUDE_uxTaskPriorityGet 1
00086 #define INCLUDE_vTaskDelete 1
00087 #define INCLUDE_vTaskCleanUpResources 0
00088 #define INCLUDE_vTaskSuspend 1
00089 #define INCLUDE_vTaskDelayUntil 1
00090 #define INCLUDE_vTaskDelay 1
00091 #define INCLUDE_xTaskGetCurrentTaskHandle 0
00092 #define INCLUDE_xTaskGetSchedulerState 0
00093
00094
00095
00096
00097
00098
00099
00100 #define configTICK_USE_TC 0
00101 #define configTICK_TC_CHANNEL 2
00102
00103
00104
00105 #define configHEAP_INIT 0
00106
00107
00108
00109 #if BOARD == EVK1100
00110 #define configDBG 1
00111 #define configDBG_USART (&AVR32_USART1)
00112 #define configDBG_USART_RX_PIN AVR32_USART1_RXD_0_0_PIN
00113 #define configDBG_USART_RX_FUNCTION AVR32_USART1_RXD_0_0_FUNCTION
00114 #define configDBG_USART_TX_PIN AVR32_USART1_TXD_0_0_PIN
00115 #define configDBG_USART_TX_FUNCTION AVR32_USART1_TXD_0_0_FUNCTION
00116 #define configDBG_USART_BAUDRATE 57600
00117 #elif BOARD == EVK1101
00118 #define configDBG 1
00119 #define configDBG_USART (&AVR32_USART1)
00120 #define configDBG_USART_RX_PIN AVR32_USART1_RXD_0_0_PIN
00121 #define configDBG_USART_RX_FUNCTION AVR32_USART1_RXD_0_0_FUNCTION
00122 #define configDBG_USART_TX_PIN AVR32_USART1_TXD_0_0_PIN
00123 #define configDBG_USART_TX_FUNCTION AVR32_USART1_TXD_0_0_FUNCTION
00124 #define configDBG_USART_BAUDRATE 57600
00125 #endif
00126
00127
00128
00129 #define configTSK_USB_NAME ((const signed portCHAR *)"USB")
00130 #define configTSK_USB_STACK_SIZE 256
00131 #define configTSK_USB_PRIORITY (tskIDLE_PRIORITY + 7)
00132
00133
00134 #define configTSK_USB_DEV_NAME ((const signed portCHAR *)"USB Device")
00135 #define configTSK_USB_DEV_STACK_SIZE 256
00136 #define configTSK_USB_DEV_PRIORITY (tskIDLE_PRIORITY + 3)
00137 #define configTSK_USB_DEV_PERIOD 20
00138
00139
00140 #define configTSK_USB_HST_NAME ((const signed portCHAR *)"USB Host")
00141 #define configTSK_USB_HST_STACK_SIZE 256
00142 #define configTSK_USB_HST_PRIORITY (tskIDLE_PRIORITY + 2)
00143 #define configTSK_USB_HST_PERIOD 20
00144
00145
00146 #define configTSK_USB_DFC_NAME ((const signed portCHAR *)"USB Device Full Custom")
00147 #define configTSK_USB_DFC_STACK_SIZE 1536
00148 #define configTSK_USB_DFC_PRIORITY (tskIDLE_PRIORITY + 2)
00149 #define configTSK_USB_DFC_PERIOD 10
00150
00151
00152 #define configTSK_USB_HHID_KBD_NAME ((const signed portCHAR *)"USB Host Keyboard HID")
00153 #define configTSK_USB_HHID_KBD_STACK_SIZE 256
00154 #define configTSK_USB_HHID_KBD_PRIORITY (tskIDLE_PRIORITY + 1)
00155 #define configTSK_USB_HHID_KBD_PERIOD 20
00156
00157
00158 #define configTSK_USB_HHID_MOUSE_NAME ((const signed portCHAR *)"USB Host Mouse HID")
00159 #define configTSK_USB_HHID_MOUSE_STACK_SIZE 256
00160 #define configTSK_USB_HHID_MOUSE_PRIORITY (tskIDLE_PRIORITY + 1)
00161 #define configTSK_USB_HHID_MOUSE_PERIOD 20
00162
00163
00164 #define configTSK_USB_DMS_NAME ((const signed portCHAR *)"USB Device MS")
00165 #define configTSK_USB_DMS_STACK_SIZE 256
00166 #define configTSK_USB_DMS_PRIORITY (tskIDLE_PRIORITY + 1)
00167 #define configTSK_USB_DMS_PERIOD 20
00168
00169
00170 #endif