67 #ifndef FREERTOS_CONFIG_H 68 #define FREERTOS_CONFIG_H 83 #if defined(__ICCARM__) || defined(__CC_ARM) || defined(__GNUC__) 85 extern uint32_t SystemCoreClock;
88 #define configUSE_PREEMPTION 1 89 #define configUSE_PORT_OPTIMISED_TASK_SELECTION 0 90 #define configUSE_TICKLESS_IDLE 0 91 #define configCPU_CLOCK_HZ ( SystemCoreClock ) 92 #define configTICK_RATE_HZ ((TickType_t)1000) 93 #define configMAX_PRIORITIES ( 5 ) 94 #define configMAX_TASK_NAME_LEN ( 5 ) 95 #define configMINIMAL_STACK_SIZE ((uint16_t)70) 96 #define configUSE_16_BIT_TICKS 0 97 #define configIDLE_SHOULD_YIELD 1 98 #define configUSE_TASK_NOTIFICATIONS 0 99 #if defined(DEBUG) || defined(SYS_DEBUG) 100 #define configUSE_MUTEXES 1 102 #define configUSE_MUTEXES 0 104 #define configUSE_RECURSIVE_MUTEXES 0 105 #define configUSE_COUNTING_SEMAPHORES 0 106 #define configQUEUE_REGISTRY_SIZE 7 107 #define configUSE_QUEUE_SETS 0 108 #define configENABLE_BACKWARD_COMPATIBILITY 0 109 #define configNUM_THREAD_LOCAL_STORAGE_POINTERS 0 112 #define configSUPPORT_STATIC_ALLOCATION 0 113 #define configSUPPORT_DYNAMIC_ALLOCATION 1 114 #if defined(DEBUG) || (SYS_DBG_ENABLE_TA4>=1) 115 #define configTOTAL_HEAP_SIZE ((size_t)4000) 117 #define configTOTAL_HEAP_SIZE ((size_t)3000) 119 #define configAPPLICATION_ALLOCATED_HEAP 1 122 #define configUSE_IDLE_HOOK 1 123 #define configUSE_TICK_HOOK 0 125 #define configCHECK_FOR_STACK_OVERFLOW 2 127 #define configCHECK_FOR_STACK_OVERFLOW 0 130 #define configUSE_MALLOC_FAILED_HOOK 1 132 #define configUSE_MALLOC_FAILED_HOOK 0 134 #define configUSE_DAEMON_TASK_STARTUP_HOOK 0 138 #define configGENERATE_RUN_TIME_STATS 1 139 #define configUSE_TRACE_FACILITY 1 141 #define configGENERATE_RUN_TIME_STATS 0 142 #if (SYS_DBG_ENABLE_TA4>=1) 143 #define configUSE_TRACE_FACILITY 1 145 #define configUSE_TRACE_FACILITY 0 148 #define configUSE_STATS_FORMATTING_FUNCTIONS 0 151 #define configUSE_CO_ROUTINES 0 152 #define configMAX_CO_ROUTINE_PRIORITIES ( 2 ) 155 #define configUSE_TIMERS 1 156 #define configTIMER_TASK_PRIORITY 3 157 #define configTIMER_QUEUE_LENGTH 10 158 #define configTIMER_TASK_STACK_DEPTH configMINIMAL_STACK_SIZE 161 #define configUSE_APPLICATION_TASK_TAG 0 165 #define INCLUDE_vTaskPrioritySet 0 166 #define INCLUDE_uxTaskPriorityGet 0 167 #define INCLUDE_vTaskDelete 0 168 #define INCLUDE_vTaskSuspend 1 169 #define INCLUDE_vTaskDelayUntil 0 170 #define INCLUDE_vTaskDelay 1 171 #define INCLUDE_vTaskCleanUpResources 0 172 #define INCLUDE_xTaskGetSchedulerState 1 173 #define INCLUDE_xTaskGetCurrentTaskHandle 1 174 #define INCLUDE_uxTaskGetStackHighWaterMark 0 175 #define INCLUDE_xTaskGetIdleTaskHandle 0 176 #define INCLUDE_eTaskGetState 0 177 #define INCLUDE_xEventGroupSetBitFromISR 0 178 #define INCLUDE_xTimerPendFunctionCall 0 179 #define INCLUDE_xTaskAbortDelay 0 180 #define INCLUDE_xTaskGetHandle 0 181 #define INCLUDE_xTaskResumeFromISR 1 184 #ifdef __NVIC_PRIO_BITS 186 #define configPRIO_BITS __NVIC_PRIO_BITS 188 #define configPRIO_BITS 4 193 #define configLIBRARY_LOWEST_INTERRUPT_PRIORITY 0xf 199 #define configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY 5 203 #define configKERNEL_INTERRUPT_PRIORITY ( configLIBRARY_LOWEST_INTERRUPT_PRIORITY << (8 - configPRIO_BITS) ) 206 #define configMAX_SYSCALL_INTERRUPT_PRIORITY ( configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY << (8 - configPRIO_BITS) ) 210 #if defined(__ICCARM__) || defined(__GNUC__) 213 void vFreeRTOSAssertCalled(
unsigned long ulLine,
const char *
const pcFileName );
215 #define vFreeRTOSAssertCalled(line, file) { taskDISABLE_INTERRUPTS(); for( ;; ); } 217 #define configASSERT( x ) if ((x) == 0) vFreeRTOSAssertCalled(__LINE__, __FILE__) 221 #define vPortSVCHandler SVC_Handler 222 #define xPortPendSVHandler PendSV_Handler 228 #if defined(__ICCARM__) || defined(__CC_ARM) || defined(__GNUC__) 236 #if configUSE_TICKLESS_IDLE == 1 237 #define configPRE_SLEEP_PROCESSING SysPreSleepProcessing 238 #define configPOST_SLEEP_PROCESSING SysPostSleepProcessing 242 #if configGENERATE_RUN_TIME_STATS == 1 245 extern uint32_t g_ulHighFrequencyTimerTicks;
247 #define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() SysDebugStartRunTimeStatsTimer() 248 #define portGET_RUN_TIME_COUNTER_VALUE() g_ulHighFrequencyTimerTicks 252 #if (SYS_DBG_ENABLE_TA4>=1) 253 #include "trcRecorder.h" void SysPreSleepProcessing(uint32_t *ulExpectedIdleTime)
void SysDebugStartRunTimeStatsTimer()
void SysPostSleepProcessing(uint32_t *ulExpectedIdleTime)