|
| 1 | +/* |
| 2 | + * FreeRTOS V202212.01 |
| 3 | + * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. |
| 4 | + * |
| 5 | + * Permission is hereby granted, free of charge, to any person obtaining a copy of |
| 6 | + * this software and associated documentation files (the "Software"), to deal in |
| 7 | + * the Software without restriction, including without limitation the rights to |
| 8 | + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of |
| 9 | + * the Software, and to permit persons to whom the Software is furnished to do so, |
| 10 | + * subject to the following conditions: |
| 11 | + * |
| 12 | + * The above copyright notice and this permission notice shall be included in all |
| 13 | + * copies or substantial portions of the Software. |
| 14 | + * |
| 15 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 16 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS |
| 17 | + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR |
| 18 | + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER |
| 19 | + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
| 20 | + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| 21 | + * |
| 22 | + * https://www.FreeRTOS.org |
| 23 | + * https://github.com/FreeRTOS |
| 24 | + * |
| 25 | + */ |
| 26 | + |
| 27 | +/****************************************************************************** |
| 28 | + See http://www.freertos.org/a00110.html for an explanation of the |
| 29 | + definitions contained in this file. |
| 30 | +******************************************************************************/ |
| 31 | + |
| 32 | +#ifndef FREERTOS_CONFIG_H |
| 33 | +#define FREERTOS_CONFIG_H |
| 34 | + |
| 35 | +/*----------------------------------------------------------- |
| 36 | + * Application specific definitions. |
| 37 | + * |
| 38 | + * These definitions should be adjusted for your particular hardware and |
| 39 | + * application requirements. |
| 40 | + * |
| 41 | + * THESE PARAMETERS ARE DESCRIBED WITHIN THE 'CONFIGURATION' SECTION OF THE |
| 42 | + * FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE. |
| 43 | + * https://www.FreeRTOS.org/a00110.html |
| 44 | + *----------------------------------------------------------*/ |
| 45 | +#ifndef __IASMARM__ |
| 46 | +extern uint32_t SystemCoreClock; |
| 47 | +#endif |
| 48 | + |
| 49 | +/* Cortex M33 port configuration. */ |
| 50 | +#define configENABLE_MPU 0 |
| 51 | +#define configENABLE_FPU 1 |
| 52 | +#define configENABLE_TRUSTZONE 0 |
| 53 | + |
| 54 | +/* This part has 8 MPU regions. */ |
| 55 | +#define configTOTAL_MPU_REGIONS 8 |
| 56 | + |
| 57 | +/* Run FreeRTOS on the secure side and never jump to the non-secure side. */ |
| 58 | +#define configRUN_FREERTOS_SECURE_ONLY 1 |
| 59 | + |
| 60 | +/* Constants related to the behaviour or the scheduler. */ |
| 61 | +#define configUSE_PORT_OPTIMISED_TASK_SELECTION 0 |
| 62 | +#define configUSE_PREEMPTION 1 |
| 63 | +#define configUSE_TIME_SLICING 0 |
| 64 | +#define configMAX_PRIORITIES ( 32U ) |
| 65 | +#define configIDLE_SHOULD_YIELD 0 |
| 66 | +#define configUSE_16_BIT_TICKS 0 /* Only for 8 and 16-bit hardware. */ |
| 67 | + |
| 68 | +/* Constants that describe the hardware and memory usage. */ |
| 69 | +#define configCPU_CLOCK_HZ SystemCoreClock |
| 70 | +#define configMINIMAL_STACK_SIZE ( ( uint16_t ) 256 ) |
| 71 | +#define configMINIMAL_SECURE_STACK_SIZE ( 1024 ) |
| 72 | +#define configMAX_TASK_NAME_LEN ( 12 ) |
| 73 | +#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 50 * 1024 ) ) |
| 74 | + |
| 75 | +/* Constants that build features in or out. */ |
| 76 | +#define configUSE_MUTEXES 1 |
| 77 | +#define configUSE_TICKLESS_IDLE 0 |
| 78 | +#define configUSE_APPLICATION_TASK_TAG 0 |
| 79 | +#define configUSE_NEWLIB_REENTRANT 0 |
| 80 | +#define configUSE_COUNTING_SEMAPHORES 1 |
| 81 | +#define configUSE_RECURSIVE_MUTEXES 1 |
| 82 | +#define configUSE_QUEUE_SETS 0 |
| 83 | +#define configUSE_TASK_NOTIFICATIONS 0 |
| 84 | +#define configUSE_TRACE_FACILITY 0 |
| 85 | + |
| 86 | +/* Constants that define which hook (callback) functions should be used. */ |
| 87 | +#define configUSE_IDLE_HOOK 1 |
| 88 | +#define configUSE_TICK_HOOK 1 |
| 89 | +#define configUSE_MALLOC_FAILED_HOOK 0 |
| 90 | + |
| 91 | +/* Constants provided for debugging and optimisation assistance. */ |
| 92 | +#define configCHECK_FOR_STACK_OVERFLOW 2 |
| 93 | +#define configASSERT( x ) if( ( x ) == 0 ) { taskDISABLE_INTERRUPTS(); for( ;; ); } |
| 94 | +#define configQUEUE_REGISTRY_SIZE 0 |
| 95 | + |
| 96 | +/* Software timer definitions. */ |
| 97 | +#define configUSE_TIMERS 0 |
| 98 | +#define configTIMER_TASK_PRIORITY ( 3 ) |
| 99 | +#define configTIMER_QUEUE_LENGTH 5 |
| 100 | +#define configTIMER_TASK_STACK_DEPTH ( configMINIMAL_STACK_SIZE ) |
| 101 | + |
| 102 | +/* Set the following definitions to 1 to include the API function, or zero |
| 103 | + * to exclude the API function. NOTE: Setting an INCLUDE_ parameter to 0 is |
| 104 | + * only necessary if the linker does not automatically remove functions that are |
| 105 | + * not referenced anyway. */ |
| 106 | +#define INCLUDE_vTaskPrioritySet 1 |
| 107 | +#define INCLUDE_uxTaskPriorityGet 1 |
| 108 | +#define INCLUDE_vTaskDelete 0 |
| 109 | +#define INCLUDE_vTaskCleanUpResources 0 |
| 110 | +#define INCLUDE_vTaskSuspend 1 |
| 111 | +#define INCLUDE_vTaskDelayUntil 1 |
| 112 | +#define INCLUDE_vTaskDelay 1 |
| 113 | +#define INCLUDE_uxTaskGetStackHighWaterMark 0 |
| 114 | +#define INCLUDE_xTaskGetIdleTaskHandle 0 |
| 115 | +#define INCLUDE_eTaskGetState 1 |
| 116 | +#define INCLUDE_xTaskResumeFromISR 0 |
| 117 | +#define INCLUDE_xTaskGetCurrentTaskHandle 1 |
| 118 | +#define INCLUDE_xTaskGetSchedulerState 0 |
| 119 | +#define INCLUDE_xSemaphoreGetMutexHolder 0 |
| 120 | +#define INCLUDE_xTimerPendFunctionCall 1 |
| 121 | + |
| 122 | +#define configUSE_STATS_FORMATTING_FUNCTIONS 0 |
| 123 | + |
| 124 | +/* Dimensions a buffer that can be used by the FreeRTOS+CLI command interpreter. |
| 125 | + * See the FreeRTOS+CLI documentation for more information: |
| 126 | + * https://www.FreeRTOS.org/FreeRTOS-Plus/FreeRTOS_Plus_CLI/ */ |
| 127 | +#define configCOMMAND_INT_MAX_OUTPUT_SIZE 2048 |
| 128 | + |
| 129 | +/* Interrupt priority configuration follows...................... */ |
| 130 | + |
| 131 | +/* Use the system definition, if there is one. */ |
| 132 | +#ifdef __NVIC_PRIO_BITS |
| 133 | + #define configPRIO_BITS __NVIC_PRIO_BITS |
| 134 | +#else |
| 135 | + #define configPRIO_BITS 4 /* 15 priority levels. */ |
| 136 | +#endif |
| 137 | + |
| 138 | +/* The lowest interrupt priority that can be used in a call to a "set priority" |
| 139 | + * function. */ |
| 140 | +#define configLIBRARY_LOWEST_INTERRUPT_PRIORITY 15 |
| 141 | + |
| 142 | +/* The highest interrupt priority that can be used by any interrupt service |
| 143 | + * routine that makes calls to interrupt safe FreeRTOS API functions. DO NOT |
| 144 | + * CALL INTERRUPT SAFE FREERTOS API FUNCTIONS FROM ANY INTERRUPT THAT HAS A |
| 145 | + * HIGHER PRIORITY THAN THIS! (higher priorities are lower numeric values). */ |
| 146 | +#define configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY 4 |
| 147 | + |
| 148 | +/* Interrupt priorities used by the kernel port layer itself. These are generic |
| 149 | + * to all Cortex-M ports, and do not rely on any particular library functions. */ |
| 150 | +#define configKERNEL_INTERRUPT_PRIORITY ( configLIBRARY_LOWEST_INTERRUPT_PRIORITY << ( 8 - configPRIO_BITS ) ) |
| 151 | + |
| 152 | +/* !!!! configMAX_SYSCALL_INTERRUPT_PRIORITY must not be set to zero !!!! |
| 153 | + * See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html. */ |
| 154 | +#define configMAX_SYSCALL_INTERRUPT_PRIORITY ( configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY << ( 8 - configPRIO_BITS ) ) |
| 155 | + |
| 156 | +/* Constants related to the generation of run time stats. */ |
| 157 | +#define configGENERATE_RUN_TIME_STATS 0 |
| 158 | +#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() |
| 159 | +#define portGET_RUN_TIME_COUNTER_VALUE() 0 |
| 160 | +#define configTICK_RATE_HZ ( ( TickType_t ) 100 ) |
| 161 | + |
| 162 | +/* Enable static allocation. */ |
| 163 | +#define configSUPPORT_STATIC_ALLOCATION 1 |
| 164 | +#define configSUPPORT_DYNAMIC_ALLOCATION 0 |
| 165 | + |
| 166 | +#endif /* FREERTOS_CONFIG_H */ |
0 commit comments