8 #ifndef FREERTOS_CONFIG_H
9 #define FREERTOS_CONFIG_H
24 #if (portasmHAS_MTIME == 0)
25 #define configMTIME_BASE_ADDRESS (0)
26 #define configMTIMECMP_BASE_ADDRESS (0)
28 #define configMTIME_BASE_ADDRESS (HPM_MCHTMR_BASE)
29 #define configMTIMECMP_BASE_ADDRESS (HPM_MCHTMR_BASE + 8UL)
32 #define configUSE_PREEMPTION 1
33 #define configCPU_CLOCK_HZ ((uint32_t) 24000000)
34 #define configTICK_RATE_HZ ((TickType_t) 1000)
35 #define configMAX_PRIORITIES (32)
36 #define configMINIMAL_STACK_SIZE (256)
37 #define configMAX_TASK_NAME_LEN 16
38 #define configUSE_16_BIT_TICKS 0
39 #define configIDLE_SHOULD_YIELD 0
40 #define configUSE_APPLICATION_TASK_TAG 0
41 #define configGENERATE_RUN_TIME_STATS 0
43 #define configUSE_COUNTING_SEMAPHORES 1
44 #define configUSE_MUTEXES 1
47 #define configSUPPORT_STATIC_ALLOCATION 0
48 #define configSUPPORT_DYNAMIC_ALLOCATION 1
49 #ifndef configTOTAL_HEAP_SIZE
50 #define configTOTAL_HEAP_SIZE ((size_t) (20 * 1024))
54 #define configUSE_IDLE_HOOK 0
55 #define configUSE_TICK_HOOK 0
56 #define configCHECK_FOR_STACK_OVERFLOW 0
57 #define configUSE_RECURSIVE_MUTEXES 1
58 #define configUSE_MALLOC_FAILED_HOOK 0
59 #define configUSE_DAEMON_TASK_STARTUP_HOOK 0
62 #define configGENERATE_RUN_TIME_STATS 0
63 #define configUSE_TRACE_FACILITY 1
64 #define configUSE_STATS_FORMATTING_FUNCTIONS 0
67 #define INCLUDE_vTaskPrioritySet 1
68 #define INCLUDE_uxTaskPriorityGet 1
69 #define INCLUDE_vTaskDelete 1
70 #define INCLUDE_vTaskCleanUpResources 1
71 #define INCLUDE_vTaskSuspend 1
72 #define INCLUDE_vTaskDelayUntil 1
73 #define INCLUDE_vTaskDelay 1
74 #define INCLUDE_xTaskGetCurrentTaskHandle 1
75 #define INCLUDE_xTimerPendFunctionCall 1
76 #define INCLUDE_eTaskGetState 1
77 #define INCLUDE_xTaskAbortDelay 1
78 #define INCLUDE_xTaskGetHandle 1
79 #define INCLUDE_xSemaphoreGetMutexHolder 1
82 #define configUSE_CO_ROUTINES 0
83 #define configMAX_CO_ROUTINE_PRIORITIES 2
86 #define configUSE_TIMERS 1
87 #define configTIMER_TASK_PRIORITY (configMAX_PRIORITIES - 1)
88 #define configTIMER_QUEUE_LENGTH 4
89 #define configTIMER_TASK_STACK_DEPTH (configMINIMAL_STACK_SIZE)
92 #ifndef uartPRIMARY_PRIORITY
93 #define uartPRIMARY_PRIORITY (configMAX_PRIORITIES - 3)
97 #define configASSERT(x) if ((x) == 0) { taskDISABLE_INTERRUPTS(); __asm volatile("ebreak"); for (;;); }
112 #define configCOMMAND_INT_MAX_OUTPUT_SIZE 2096
113 #define configINCLUDE_QUERY_HEAP_COMMAND 1
116 #ifndef __ASSEMBLER__
130 #define configSETUP_TICK_INTERRUPT() vConfigureTickInterrupt()
131 #define configCLEAR_TICK_INTERRUPT() vClearTickInterrupt()
139 #define configPRE_SLEEP_PROCESSING(uxExpectedIdleTime) vPreSleepProcessing(uxExpectedIdleTime);
140 #define configPOST_SLEEP_PROCESSING(uxExpectedIdleTime) vPostSleepProcessing(uxExpectedIdleTime);
144 #define fabs(x) __builtin_fabs(x)
147 #define configHSP_ENABLE 0
150 #if (configHSP_ENABLE == 1 && configRECORD_STACK_HIGH_ADDRESS != 1)
151 #define configRECORD_STACK_HIGH_ADDRESS 1
void vConfigureTickInterrupt(void)
void vAssertCalled(const char *pcFile, unsigned long ulLine)
void vClearTickInterrupt(void)
void vPreSleepProcessing(unsigned long uxExpectedIdleTime)
void vPostSleepProcessing(unsigned long uxExpectedIdleTime)