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