blob: 005519fd17d5236ed5851542a9084e3c2d44390f [file] [log] [blame]
Bhavik Patel68c1f1b2020-07-29 12:28:18 +02001/*
Anton Moberge348f8f2021-03-31 11:08:58 +02002 * Copyright (c) 2020-2021 Arm Limited. All rights reserved.
Bhavik Patel68c1f1b2020-07-29 12:28:18 +02003 *
4 * SPDX-License-Identifier: Apache-2.0
5 *
6 * Licensed under the Apache License, Version 2.0 (the License); you may
7 * not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an AS IS BASIS, WITHOUT
14 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18/* Please refer to http://www.freertos.org/a00110.html for refernce. */
19#ifndef FREERTOS_CONFIG_H
20#define FREERTOS_CONFIG_H
21/******************************************************************************
22 * Defines
23 ******************************************************************************/
24/* Hardware features */
25#define configENABLE_MPU 0
26#define configENABLE_FPU 0
27#define configENABLE_TRUSTZONE 0
28/* Scheduling */
29#define configCPU_CLOCK_HZ @SYSTEM_CORE_CLOCK@
30#define configUSE_PORT_OPTIMISED_TASK_SELECTION 0
31#define configUSE_PREEMPTION 1
Anton Moberg4fd07fb2021-02-12 17:40:28 +010032#define configUSE_TIME_SLICING 0
Bhavik Patel68c1f1b2020-07-29 12:28:18 +020033#define configMAX_PRIORITIES 5
34#define configIDLE_SHOULD_YIELD 1
35#define configUSE_16_BIT_TICKS 0
36#define configRUN_FREERTOS_SECURE_ONLY 1
37/* Stack and heap */
38#define configMINIMAL_STACK_SIZE (uint16_t)128
39#define configMINIMAL_SECURE_STACK_SIZE 1024
40#define configTOTAL_HEAP_SIZE (size_t)(50 * 1024)
41#define configMAX_TASK_NAME_LEN 12
42/* OS features */
43#define configUSE_MUTEXES 1
44#define configUSE_TICKLESS_IDLE 1
45#define configUSE_APPLICATION_TASK_TAG 0
46#define configUSE_NEWLIB_REENTRANT 0
47#define configUSE_CO_ROUTINES 0
48#define configUSE_COUNTING_SEMAPHORES 1
49#define configUSE_RECURSIVE_MUTEXES 1
50#define configUSE_QUEUE_SETS 0
51#define configUSE_TASK_NOTIFICATIONS 1
52#define configUSE_TRACE_FACILITY 1
53/* Hooks */
54#define configUSE_IDLE_HOOK 0
55#define configUSE_TICK_HOOK 0
56#define configUSE_MALLOC_FAILED_HOOK 0
57/* Debug features */
58#define configCHECK_FOR_STACK_OVERFLOW 0
59#define configASSERT(x) if ((x) == 0) { taskDISABLE_INTERRUPTS(); for( ;; ); }
60#define configQUEUE_REGISTRY_SIZE 0
61/* Timers and queues */
62#define configUSE_TIMERS 0
63#define configTIMER_TASK_PRIORITY 3
64#define configTIMER_TASK_STACK_DEPTH configMINIMAL_STACK_SIZE
65#define configTIMER_QUEUE_LENGTH 5
66/* Task settings */
67#define INCLUDE_vTaskPrioritySet 1
68#define INCLUDE_uxTaskPriorityGet 1
69#define INCLUDE_vTaskDelete 1
70#define INCLUDE_vTaskCleanUpResources 0
71#define INCLUDE_vTaskSuspend 1
72#define INCLUDE_vTaskDelayUntil 1
73#define INCLUDE_vTaskDelay 1
74#define INCLUDE_uxTaskGetStackHighWaterMark 0
75#define INCLUDE_xTaskGetIdleTaskHandle 0
76#define INCLUDE_eTaskGetState 1
77#define INCLUDE_xTaskResumeFromISR 0
78#define INCLUDE_xTaskGetCurrentTaskHandle 1
79#define INCLUDE_xTaskGetSchedulerState 0
80#define INCLUDE_xSemaphoreGetMutexHolder 0
81#define INCLUDE_xTimerPendFunctionCall 1
82#define configUSE_STATS_FORMATTING_FUNCTIONS 1
83#define configCOMMAND_INT_MAX_OUTPUT_SIZE 2048
84#ifdef __NVIC_PRIO_BITS
85#define configPRIO_BITS __NVIC_PRIO_BITS
86#else
87#define configPRIO_BITS 3
88#endif
89/* Interrupt settings */
90#define configLIBRARY_LOWEST_INTERRUPT_PRIORITY 0x07
91#define configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY 5
92#define configKERNEL_INTERRUPT_PRIORITY (configLIBRARY_LOWEST_INTERRUPT_PRIORITY << (8 - configPRIO_BITS))
93#define configMAX_SYSCALL_INTERRUPT_PRIORITY (configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY << (8 - configPRIO_BITS))
94#ifndef __IASMARM__
95 #define configGENERATE_RUN_TIME_STATS 0
96 #define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS()
97 #define portGET_RUN_TIME_COUNTER_VALUE() 0
98 #define configTICK_RATE_HZ (TickType_t)10000
99#endif /* __IASMARM__ */
100#if defined(CPU_CORTEX_M3) || defined(CPU_CORTEX_M4) || defined(CPU_CORTEX_M7)
101#define xPortPendSVHandler PendSV_Handler
102#define vPortSVCHandler SVC_Handler
103#define xPortSysTickHandler SysTick_Handler
104#endif
105#endif /* FREERTOS_CONFIG_H */