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 "conf_ctrlpanel.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 ( CP_CPU_SPEED )
00067 #define configPBA_CLOCK_HZ ( CP_PBA_SPEED )
00068 #define configTICK_RATE_HZ ( ( portTickType ) 1000 )
00069 #define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 8 )
00070 #define configMINIMAL_STACK_SIZE ( ( unsigned portSHORT ) 256 )
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 1
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 1
00107
00108
00109
00110 #define configDBG 0
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
00121 #define configSTACK_CONSUMPTION_CHECK 0
00122
00123 #if ( configSTACK_CONSUMPTION_CHECK == 1 ) && ( configUSE_TRACE_FACILITY == 0 )
00124 #error "configUSE_TRACE_FACILITY must be set to 1 when configSTACK_CONSUMPTION_CHECK is set to 1."
00125 #endif
00126
00127
00128
00129 #define configTSK_USB_NAME ((const signed portCHAR *)"USB")
00130 #define configTSK_USB_STACK_SIZE 2*256
00131
00132 #define configTSK_USB_PRIORITY (configMAX_PRIORITIES - 1)
00133
00134
00135 #define configTSK_USB_DEV_NAME ((const signed portCHAR *)"UD")
00136 #define configTSK_USB_DEV_STACK_SIZE 256
00137 #define configTSK_USB_DEV_PRIORITY (tskIDLE_PRIORITY + 3)
00138 #define configTSK_USB_DEV_PERIOD 20
00139
00140
00141 #define configTSK_USB_HST_NAME ((const signed portCHAR *)"UH")
00142 #define configTSK_USB_HST_STACK_SIZE 256
00143 #define configTSK_USB_HST_PRIORITY (tskIDLE_PRIORITY + 3)
00144 #define configTSK_USB_HST_PERIOD 20
00145
00146
00147 #define configTSK_USB_DMS_NAME ((const signed portCHAR *)"UDMS")
00148 #define configTSK_USB_DMS_STACK_SIZE 256
00149 #define configTSK_USB_DMS_PRIORITY (tskIDLE_PRIORITY + 2)
00150 #define configTSK_USB_DMS_PERIOD 20
00151
00152
00153 #define configTSK_USB_HMS_NAME ((const signed portCHAR *)"UHMS")
00154 #define configTSK_USB_HMS_STACK_SIZE 256
00155 #define configTSK_USB_HMS_PRIORITY (tskIDLE_PRIORITY + 2)
00156 #define configTSK_USB_HMS_PERIOD 20
00157
00158
00159 #endif