/* * FreeRTOS V202111.00 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of * the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * http://www.FreeRTOS.org * http://aws.amazon.com/freertos * * 1 tab == 4 spaces! *//* ... */#ifndefFREERTOS_CONFIG_EXAMPLES_COMMON_H#defineFREERTOS_CONFIG_EXAMPLES_COMMON_H/*----------------------------------------------------------- * Application specific definitions. * * These definitions should be adjusted for your particular hardware and * application requirements. * * THESE PARAMETERS ARE DESCRIBED WITHIN THE 'CONFIGURATION' SECTION OF THE * FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE. * * See http://www.freertos.org/a00110.html *----------------------------------------------------------*//* ... *//* Scheduler Related */#defineconfigUSE_PREEMPTION1#defineconfigUSE_TICKLESS_IDLE0#defineconfigUSE_IDLE_HOOK0#defineconfigUSE_TICK_HOOK0#defineconfigTICK_RATE_HZ((TickType_t)1000)#defineconfigMAX_PRIORITIES32#defineconfigMINIMAL_STACK_SIZE(configSTACK_DEPTH_TYPE)512#defineconfigUSE_16_BIT_TICKS0#defineconfigIDLE_SHOULD_YIELD1/* Synchronization Related */#defineconfigUSE_MUTEXES1#defineconfigUSE_RECURSIVE_MUTEXES1#defineconfigUSE_APPLICATION_TASK_TAG0#defineconfigUSE_COUNTING_SEMAPHORES1#defineconfigQUEUE_REGISTRY_SIZE8#defineconfigUSE_QUEUE_SETS1#defineconfigUSE_TIME_SLICING1#defineconfigUSE_NEWLIB_REENTRANT0// todo need this for lwip FreeRTOS sys_arch to compile#defineconfigENABLE_BACKWARD_COMPATIBILITY1#defineconfigNUM_THREAD_LOCAL_STORAGE_POINTERS5/* System */#defineconfigSTACK_DEPTH_TYPEuint32_t#defineconfigMESSAGE_BUFFER_LENGTH_TYPEsize_t/* Memory allocation related definitions. */#defineconfigSUPPORT_STATIC_ALLOCATION0#defineconfigSUPPORT_DYNAMIC_ALLOCATION1#defineconfigTOTAL_HEAP_SIZE(128*1024)#defineconfigAPPLICATION_ALLOCATED_HEAP0/* Hook function related definitions. */#defineconfigCHECK_FOR_STACK_OVERFLOW0#defineconfigUSE_MALLOC_FAILED_HOOK0#defineconfigUSE_DAEMON_TASK_STARTUP_HOOK0/* Run time and task stats gathering related definitions. */#defineconfigGENERATE_RUN_TIME_STATS0#defineconfigUSE_TRACE_FACILITY1#defineconfigUSE_STATS_FORMATTING_FUNCTIONS0/* Co-routine related definitions. */#defineconfigUSE_CO_ROUTINES0#defineconfigMAX_CO_ROUTINE_PRIORITIES1/* Software timer related definitions. */#defineconfigUSE_TIMERS1#defineconfigTIMER_TASK_PRIORITY(configMAX_PRIORITIES-1)#defineconfigTIMER_QUEUE_LENGTH10#defineconfigTIMER_TASK_STACK_DEPTH1024/* Interrupt nesting behaviour configuration. *//*#define configKERNEL_INTERRUPT_PRIORITY [dependent of processor]#define configMAX_SYSCALL_INTERRUPT_PRIORITY [dependent on processor and application]#define configMAX_API_CALL_INTERRUPT_PRIORITY [dependent on processor and application]*//* ... */#defineconfigNUMBER_OF_CORES2/* SMP (configNUMBER_OF_CORES > 1) only */#defineconfigTICK_CORE0#defineconfigRUN_MULTIPLE_PRIORITIES141 defines#ifconfigNUMBER_OF_CORES>1#defineconfigUSE_CORE_AFFINITY1#endif#defineconfigUSE_PASSIVE_IDLE_HOOK0/* Armv8-M *//* Not currently supported */#defineconfigENABLE_MPU0//#define configSYSTEM_CALL_STACK_SIZE ( configSTACK_DEPTH_TYPE ) 512#defineconfigENABLE_FPU1/* Not currently supported */#defineconfigENABLE_TRUSTZONE0#defineconfigRUN_FREERTOS_SECURE_ONLY1// see https://www.freertos.org/RTOS-Cortex-M3-M4.html#defineconfigMAX_SYSCALL_INTERRUPT_PRIORITY16/* RP2xxx specific */#defineconfigSUPPORT_PICO_SYNC_INTEROP1#defineconfigSUPPORT_PICO_TIME_INTEROP18 defines#include<assert.h>/* Define to trap errors during development. */#defineconfigASSERT(x)assert(x)/* Set the following definitions to 1 to include the API function, or zeroto exclude the API function. *//* ... */#defineINCLUDE_vTaskPrioritySet1#defineINCLUDE_uxTaskPriorityGet1#defineINCLUDE_vTaskDelete1#defineINCLUDE_vTaskSuspend1#defineINCLUDE_vTaskDelayUntil1#defineINCLUDE_vTaskDelay1#defineINCLUDE_xTaskGetSchedulerState1#defineINCLUDE_xTaskGetCurrentTaskHandle1#defineINCLUDE_uxTaskGetStackHighWaterMark1#defineINCLUDE_xTaskGetIdleTaskHandle1#defineINCLUDE_eTaskGetState1#defineINCLUDE_xTimerPendFunctionCall1#defineINCLUDE_xTaskAbortDelay1#defineINCLUDE_xTaskGetHandle1#defineINCLUDE_xTaskResumeFromISR1#defineINCLUDE_xQueueGetMutexHolder117 defines/* A header file that defines trace macro can be included here. *//* ... */#endif/* FREERTOS_CONFIG_H */
Details
Show: from
Types: Columns:
All items filtered out
All items filtered out
This file uses the notable symbols shown below. Click anywhere in the file to view more details.