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 ) 128 )
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 #elif BOARD == EVK1104
00126 #define configDBG 1
00127 #define configDBG_USART (&AVR32_USART1)
00128 #define configDBG_USART_RX_PIN AVR32_USART1_RXD_0_0_PIN
00129 #define configDBG_USART_RX_FUNCTION AVR32_USART1_RXD_0_0_FUNCTION
00130 #define configDBG_USART_TX_PIN AVR32_USART1_TXD_0_0_PIN
00131 #define configDBG_USART_TX_FUNCTION AVR32_USART1_TXD_0_0_FUNCTION
00132 #define configDBG_USART_BAUDRATE 57600
00133 #elif BOARD == EVK1105
00134 #define configDBG 1
00135 #define configDBG_USART (&AVR32_USART0)
00136 #define configDBG_USART_RX_PIN AVR32_USART0_RXD_0_0_PIN
00137 #define configDBG_USART_RX_FUNCTION AVR32_USART0_RXD_0_0_FUNCTION
00138 #define configDBG_USART_TX_PIN AVR32_USART0_TXD_0_0_PIN
00139 #define configDBG_USART_TX_FUNCTION AVR32_USART0_TXD_0_0_FUNCTION
00140 #define configDBG_USART_BAUDRATE 57600
00141 #elif BOARD == UC3C_EK
00142 #define configDBG 1
00143 #define configDBG_USART (&AVR32_USART2)
00144 #define configDBG_USART_RX_PIN AVR32_USART2_RXD_0_1_PIN
00145 #define configDBG_USART_RX_FUNCTION AVR32_USART2_RXD_0_1_FUNCTION
00146 #define configDBG_USART_TX_PIN AVR32_USART2_TXD_0_1_PIN
00147 #define configDBG_USART_TX_FUNCTION AVR32_USART2_TXD_0_1_FUNCTION
00148 #define configDBG_USART_BAUDRATE 57600
00149 #else
00150 #error The board USART configuration should be defined here.
00151 #endif
00152
00153
00154
00155 #define configTSK_USB_NAME ((const signed portCHAR *)"USB")
00156 #define configTSK_USB_STACK_SIZE 256
00157 #define configTSK_USB_PRIORITY (tskIDLE_PRIORITY + 3)
00158
00159
00160 #define configTSK_USB_DEV_NAME ((const signed portCHAR *)"USB Device")
00161 #define configTSK_USB_DEV_STACK_SIZE 256
00162 #define configTSK_USB_DEV_PRIORITY (tskIDLE_PRIORITY + 2)
00163 #define configTSK_USB_DEV_PERIOD 20
00164
00165
00166 #define configTSK_USB_HST_NAME ((const signed portCHAR *)"USB Host")
00167 #define configTSK_USB_HST_STACK_SIZE 256
00168 #define configTSK_USB_HST_PRIORITY (tskIDLE_PRIORITY + 2)
00169 #define configTSK_USB_HST_PERIOD 20
00170
00171
00172 #define configTSK_USB_DTP_NAME ((const signed portCHAR *)"USB Device Template")
00173 #define configTSK_USB_DTP_STACK_SIZE 256
00174 #define configTSK_USB_DTP_PRIORITY (tskIDLE_PRIORITY + 1)
00175 #define configTSK_USB_DTP_PERIOD 20
00176
00177
00178 #define configTSK_USB_HTP_NAME ((const signed portCHAR *)"USB Host Template")
00179 #define configTSK_USB_HTP_STACK_SIZE 256
00180 #define configTSK_USB_HTP_PRIORITY (tskIDLE_PRIORITY + 1)
00181 #define configTSK_USB_HTP_PERIOD 20
00182
00183
00184 #endif