71#ifndef FREERTOS_CONFIG_H
72#define FREERTOS_CONFIG_H
88#if defined(__ICCARM__) || defined(__CC_ARM) || defined(__GNUC__)
90 extern uint32_t SystemCoreClock;
92#include "cmsis_compiler.h"
96#define configUSE_PREEMPTION 1
97#define configUSE_IDLE_HOOK 0
98#define configUSE_TICK_HOOK 0
103#define configCPU_CLOCK_HZ 400000000
105#define configTICK_RATE_HZ ( ( TickType_t ) 1000 )
107#define configMAX_PRIORITIES ( 32 )
108#define configMINIMAL_STACK_SIZE ( ( uint16_t ) 128 )
109#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 50 * 1024 ) )
110#define configMAX_TASK_NAME_LEN ( 16 )
111#define configUSE_TRACE_FACILITY 1
112#define configUSE_16_BIT_TICKS 0
113#define configIDLE_SHOULD_YIELD 1
114#define configUSE_MUTEXES 1
115#define configQUEUE_REGISTRY_SIZE 8
116#define configCHECK_FOR_STACK_OVERFLOW 1
117#define configUSE_RECURSIVE_MUTEXES 1
118#define configUSE_MALLOC_FAILED_HOOK 0
119#define configUSE_APPLICATION_TASK_TAG 0
120#define configUSE_COUNTING_SEMAPHORES 1
121#define configGENERATE_RUN_TIME_STATS 1
122#define configUSE_STATS_FORMATTING_FUNCTIONS 1
125#define configUSE_CO_ROUTINES 0
126#define configMAX_CO_ROUTINE_PRIORITIES ( 2 )
129#define configUSE_TIMERS 1
130#define configTIMER_TASK_PRIORITY ( TASK_PRIORITY_Timer )
131#define configTIMER_QUEUE_LENGTH 10
132#define configTIMER_TASK_STACK_DEPTH ( configMINIMAL_STACK_SIZE * 2 )
136#define INCLUDE_vTaskPrioritySet 1
137#define INCLUDE_uxTaskPriorityGet 1
138#define INCLUDE_vTaskDelete 1
139#define INCLUDE_vTaskCleanUpResources 0
140#define INCLUDE_vTaskSuspend 0
141#define INCLUDE_vTaskDelayUntil 1
142#define INCLUDE_vTaskDelay 1
143#define INCLUDE_xTaskGetSchedulerState 1
144#define INCLUDE_xTaskGetIdleTaskHandle 1
147#ifdef __NVIC_PRIO_BITS
149 #define configPRIO_BITS __NVIC_PRIO_BITS
151 #define configPRIO_BITS 4
156#define configLIBRARY_LOWEST_INTERRUPT_PRIORITY 0xf
162#define configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY 5
166#define configKERNEL_INTERRUPT_PRIORITY ( configLIBRARY_LOWEST_INTERRUPT_PRIORITY << (8 - configPRIO_BITS) )
169#define configMAX_SYSCALL_INTERRUPT_PRIORITY ( configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY << (8 - configPRIO_BITS) )
174#define configASSERT( x ) if( ( x ) == 0 ) { taskDISABLE_INTERRUPTS(); AssertFaultHandler((char *)__FILE__, __LINE__); }
178#define vPortSVCHandler SVC_Handler
179#define xPortPendSVHandler PendSV_Handler
188#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() CPULoadInit()
189#define portGET_RUN_TIME_COUNTER_VALUE() getCPULoadTimerTick()
194 #include "trcRecorder.h"
void AssertFaultHandler(char *file, uint32_t line)