|
|
@ -4,22 +4,23 @@
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
* this software and associated documentation files (the "Software"), to deal in
|
|
|
|
* of this software and associated documentation files (the "Software"), to deal
|
|
|
|
* the Software without restriction, including without limitation the rights to
|
|
|
|
* in the Software without restriction, including without limitation the rights
|
|
|
|
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
|
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
|
|
* copies of the Software, and to permit persons to whom the Software is
|
|
|
|
* subject to the following conditions:
|
|
|
|
* furnished to do so, subject to the following conditions:
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* The above copyright notice and this permission notice shall be included in all
|
|
|
|
* The above copyright notice and this permission notice shall be included in
|
|
|
|
* copies or substantial portions of the Software.
|
|
|
|
* all copies or substantial portions of the Software.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
|
|
|
|
|
* SOFTWARE.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* https://www.FreeRTOS.org
|
|
|
|
* https://www.FreeRTOS.org
|
|
|
|
* https://github.com/FreeRTOS
|
|
|
|
* https://github.com/FreeRTOS
|
|
|
@ -47,10 +48,11 @@
|
|
|
|
/******************************************************************************/
|
|
|
|
/******************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
/* In most cases, configCPU_CLOCK_HZ must be set to the frequency of the clock
|
|
|
|
/* In most cases, configCPU_CLOCK_HZ must be set to the frequency of the clock
|
|
|
|
* that drives the peripheral used to generate the kernels periodic tick interrupt.
|
|
|
|
* that drives the peripheral used to generate the kernels periodic tick
|
|
|
|
* The default value is set to 20MHz and matches the QEMU demo settings. Your
|
|
|
|
* interrupt. The default value is set to 20MHz and matches the QEMU demo
|
|
|
|
* application will certainly need a different value so set this correctly.
|
|
|
|
* settings. Your application will certainly need a different value so set this
|
|
|
|
* This is very often, but not always, equal to the main system clock frequency. */
|
|
|
|
* correctly. This is very often, but not always, equal to the main system clock
|
|
|
|
|
|
|
|
* frequency. */
|
|
|
|
#define configCPU_CLOCK_HZ ( ( unsigned long ) 20000000 )
|
|
|
|
#define configCPU_CLOCK_HZ ( ( unsigned long ) 20000000 )
|
|
|
|
|
|
|
|
|
|
|
|
/* configSYSTICK_CLOCK_HZ is an optional parameter for ARM Cortex-M ports only.
|
|
|
|
/* configSYSTICK_CLOCK_HZ is an optional parameter for ARM Cortex-M ports only.
|
|
|
@ -59,11 +61,11 @@
|
|
|
|
* Cortex-M SysTick timer. Most Cortex-M MCUs run the SysTick timer at the same
|
|
|
|
* Cortex-M SysTick timer. Most Cortex-M MCUs run the SysTick timer at the same
|
|
|
|
* frequency as the MCU itself - when that is the case configSYSTICK_CLOCK_HZ is
|
|
|
|
* frequency as the MCU itself - when that is the case configSYSTICK_CLOCK_HZ is
|
|
|
|
* not needed and should be left undefined. If the SysTick timer is clocked at a
|
|
|
|
* not needed and should be left undefined. If the SysTick timer is clocked at a
|
|
|
|
* different frequency to the MCU core then set configCPU_CLOCK_HZ to the MCU clock
|
|
|
|
* different frequency to the MCU core then set configCPU_CLOCK_HZ to the MCU
|
|
|
|
* frequency, as normal, and configSYSTICK_CLOCK_HZ to the SysTick clock
|
|
|
|
* clock frequency, as normal, and configSYSTICK_CLOCK_HZ to the SysTick clock
|
|
|
|
* frequency. Not used if left undefined.
|
|
|
|
* frequency. Not used if left undefined.
|
|
|
|
* The default value is undefined (commented out). If you need this value bring it
|
|
|
|
* The default value is undefined (commented out). If you need this value bring
|
|
|
|
* back and set it to a suitable value. */
|
|
|
|
* it back and set it to a suitable value. */
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
#define configSYSTICK_CLOCK_HZ [Platform specific]
|
|
|
|
#define configSYSTICK_CLOCK_HZ [Platform specific]
|
|
|
@ -90,28 +92,29 @@
|
|
|
|
#define configUSE_TIME_SLICING 0
|
|
|
|
#define configUSE_TIME_SLICING 0
|
|
|
|
|
|
|
|
|
|
|
|
/* Set configUSE_PORT_OPTIMISED_TASK_SELECTION to 1 to select the next task to
|
|
|
|
/* Set configUSE_PORT_OPTIMISED_TASK_SELECTION to 1 to select the next task to
|
|
|
|
* run using an algorithm optimised to the instruction set of the target hardware -
|
|
|
|
* run using an algorithm optimised to the instruction set of the target
|
|
|
|
* normally using a count leading zeros assembly instruction. Set to 0 to select
|
|
|
|
* hardware - normally using a count leading zeros assembly instruction. Set to
|
|
|
|
* the next task to run using a generic C algorithm that works for all FreeRTOS
|
|
|
|
* 0 to select the next task to run using a generic C algorithm that works for
|
|
|
|
* ports. Not all FreeRTOS ports have this option. Defaults to 0 if left
|
|
|
|
* all FreeRTOS ports. Not all FreeRTOS ports have this option. Defaults to 0
|
|
|
|
* undefined. */
|
|
|
|
* if left undefined. */
|
|
|
|
#define configUSE_PORT_OPTIMISED_TASK_SELECTION 0
|
|
|
|
#define configUSE_PORT_OPTIMISED_TASK_SELECTION 0
|
|
|
|
|
|
|
|
|
|
|
|
/* Set configUSE_TICKLESS_IDLE to 1 to use the low power tickless mode. Set to
|
|
|
|
/* Set configUSE_TICKLESS_IDLE to 1 to use the low power tickless mode. Set to
|
|
|
|
* 0 to keep the tick interrupt running at all times. Not all FreeRTOS ports
|
|
|
|
* 0 to keep the tick interrupt running at all times. Not all FreeRTOS ports
|
|
|
|
* support tickless mode. See https://www.freertos.org/low-power-tickless-rtos.html
|
|
|
|
* support tickless mode. See
|
|
|
|
* Defaults to 0 if left undefined. */
|
|
|
|
* https://www.freertos.org/low-power-tickless-rtos.html Defaults to 0 if left
|
|
|
|
|
|
|
|
* undefined. */
|
|
|
|
#define configUSE_TICKLESS_IDLE 0
|
|
|
|
#define configUSE_TICKLESS_IDLE 0
|
|
|
|
|
|
|
|
|
|
|
|
/* configMAX_PRIORITIES Sets the number of available task priorities. Tasks can
|
|
|
|
/* configMAX_PRIORITIES Sets the number of available task priorities. Tasks can
|
|
|
|
* be assigned priorities of 0 to (configMAX_PRIORITIES - 1). Zero is the lowest
|
|
|
|
* be assigned priorities of 0 to (configMAX_PRIORITIES - 1). Zero is the
|
|
|
|
* priority. */
|
|
|
|
* lowest priority. */
|
|
|
|
#define configMAX_PRIORITIES 5
|
|
|
|
#define configMAX_PRIORITIES 5
|
|
|
|
|
|
|
|
|
|
|
|
/* configMINIMAL_STACK_SIZE defines the size of the stack used by the Idle task
|
|
|
|
/* configMINIMAL_STACK_SIZE defines the size of the stack used by the Idle task
|
|
|
|
* (in words, not in bytes!). The kernel does not use this constant for any other
|
|
|
|
* (in words, not in bytes!). The kernel does not use this constant for any
|
|
|
|
* purpose. Demo applications use the constant to make the demos somewhat portable
|
|
|
|
* other purpose. Demo applications use the constant to make the demos somewhat
|
|
|
|
* across hardware architectures. */
|
|
|
|
* portable across hardware architectures. */
|
|
|
|
#define configMINIMAL_STACK_SIZE 128
|
|
|
|
#define configMINIMAL_STACK_SIZE 128
|
|
|
|
|
|
|
|
|
|
|
|
/* configMAX_TASK_NAME_LEN sets the maximum length (in characters) of a task's
|
|
|
|
/* configMAX_TASK_NAME_LEN sets the maximum length (in characters) of a task's
|
|
|
@ -122,7 +125,8 @@
|
|
|
|
* has executed since the RTOS kernel was started.
|
|
|
|
* has executed since the RTOS kernel was started.
|
|
|
|
* The tick count is held in a variable of type TickType_t.
|
|
|
|
* The tick count is held in a variable of type TickType_t.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* configTICK_TYPE_WIDTH_IN_BITS controls the type (and therefore bit-width) of TickType_t:
|
|
|
|
* configTICK_TYPE_WIDTH_IN_BITS controls the type (and therefore bit-width) of
|
|
|
|
|
|
|
|
* TickType_t:
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Defining configTICK_TYPE_WIDTH_IN_BITS as TICK_TYPE_WIDTH_16_BITS causes
|
|
|
|
* Defining configTICK_TYPE_WIDTH_IN_BITS as TICK_TYPE_WIDTH_16_BITS causes
|
|
|
|
* TickType_t to be defined (typedef'ed) as an unsigned 16-bit type.
|
|
|
|
* TickType_t to be defined (typedef'ed) as an unsigned 16-bit type.
|
|
|
@ -135,15 +139,15 @@
|
|
|
|
#define configTICK_TYPE_WIDTH_IN_BITS TICK_TYPE_WIDTH_64_BITS
|
|
|
|
#define configTICK_TYPE_WIDTH_IN_BITS TICK_TYPE_WIDTH_64_BITS
|
|
|
|
|
|
|
|
|
|
|
|
/* Set configIDLE_SHOULD_YIELD to 1 to have the Idle task yield to an
|
|
|
|
/* Set configIDLE_SHOULD_YIELD to 1 to have the Idle task yield to an
|
|
|
|
* application task if there is an Idle priority (priority 0) application task that
|
|
|
|
* application task if there is an Idle priority (priority 0) application task
|
|
|
|
* can run. Set to 0 to have the Idle task use all of its timeslice. Default to 1
|
|
|
|
* that can run. Set to 0 to have the Idle task use all of its timeslice.
|
|
|
|
* if left undefined. */
|
|
|
|
* Default to 1 if left undefined. */
|
|
|
|
#define configIDLE_SHOULD_YIELD 1
|
|
|
|
#define configIDLE_SHOULD_YIELD 1
|
|
|
|
|
|
|
|
|
|
|
|
/* Each task has an array of task notifications.
|
|
|
|
/* Each task has an array of task notifications.
|
|
|
|
* configTASK_NOTIFICATION_ARRAY_ENTRIES sets the number of indexes in the array.
|
|
|
|
* configTASK_NOTIFICATION_ARRAY_ENTRIES sets the number of indexes in the
|
|
|
|
* See https://www.freertos.org/RTOS-task-notifications.html Defaults to 1 if
|
|
|
|
* array. See https://www.freertos.org/RTOS-task-notifications.html Defaults to
|
|
|
|
* left undefined. */
|
|
|
|
* 1 if left undefined. */
|
|
|
|
#define configTASK_NOTIFICATION_ARRAY_ENTRIES 1
|
|
|
|
#define configTASK_NOTIFICATION_ARRAY_ENTRIES 1
|
|
|
|
|
|
|
|
|
|
|
|
/* configQUEUE_REGISTRY_SIZE sets the maximum number of queues and semaphores
|
|
|
|
/* configQUEUE_REGISTRY_SIZE sets the maximum number of queues and semaphores
|
|
|
@ -152,21 +156,22 @@
|
|
|
|
#define configQUEUE_REGISTRY_SIZE 0
|
|
|
|
#define configQUEUE_REGISTRY_SIZE 0
|
|
|
|
|
|
|
|
|
|
|
|
/* Set configENABLE_BACKWARD_COMPATIBILITY to 1 to map function names and
|
|
|
|
/* Set configENABLE_BACKWARD_COMPATIBILITY to 1 to map function names and
|
|
|
|
* datatypes from old version of FreeRTOS to their latest equivalent. Defaults to
|
|
|
|
* datatypes from old version of FreeRTOS to their latest equivalent. Defaults
|
|
|
|
* 1 if left undefined. */
|
|
|
|
* to 1 if left undefined. */
|
|
|
|
#define configENABLE_BACKWARD_COMPATIBILITY 0
|
|
|
|
#define configENABLE_BACKWARD_COMPATIBILITY 0
|
|
|
|
|
|
|
|
|
|
|
|
/* Each task has its own array of pointers that can be used as thread local
|
|
|
|
/* Each task has its own array of pointers that can be used as thread local
|
|
|
|
* storage. configNUM_THREAD_LOCAL_STORAGE_POINTERS set the number of indexes in
|
|
|
|
* storage. configNUM_THREAD_LOCAL_STORAGE_POINTERS set the number of indexes
|
|
|
|
* the array. See https://www.freertos.org/thread-local-storage-pointers.html
|
|
|
|
* in the array. See
|
|
|
|
* Defaults to 0 if left undefined. */
|
|
|
|
* https://www.freertos.org/thread-local-storage-pointers.html Defaults to 0 if
|
|
|
|
|
|
|
|
* left undefined. */
|
|
|
|
#define configNUM_THREAD_LOCAL_STORAGE_POINTERS 0
|
|
|
|
#define configNUM_THREAD_LOCAL_STORAGE_POINTERS 0
|
|
|
|
|
|
|
|
|
|
|
|
/* When configUSE_MINI_LIST_ITEM is set to 0, MiniListItem_t and ListItem_t are
|
|
|
|
/* When configUSE_MINI_LIST_ITEM is set to 0, MiniListItem_t and ListItem_t are
|
|
|
|
* both the same. When configUSE_MINI_LIST_ITEM is set to 1, MiniListItem_t contains
|
|
|
|
* both the same. When configUSE_MINI_LIST_ITEM is set to 1, MiniListItem_t
|
|
|
|
* 3 fewer fields than ListItem_t which saves some RAM at the cost of violating
|
|
|
|
* contains 3 fewer fields than ListItem_t which saves some RAM at the cost of
|
|
|
|
* strict aliasing rules which some compilers depend on for optimization. Defaults
|
|
|
|
* violating strict aliasing rules which some compilers depend on for
|
|
|
|
* to 1 if left undefined. */
|
|
|
|
* optimization. Defaults to 1 if left undefined. */
|
|
|
|
#define configUSE_MINI_LIST_ITEM 1
|
|
|
|
#define configUSE_MINI_LIST_ITEM 1
|
|
|
|
|
|
|
|
|
|
|
|
/* Sets the type used by the parameter to xTaskCreate() that specifies the stack
|
|
|
|
/* Sets the type used by the parameter to xTaskCreate() that specifies the stack
|
|
|
@ -176,22 +181,22 @@
|
|
|
|
#define configSTACK_DEPTH_TYPE size_t
|
|
|
|
#define configSTACK_DEPTH_TYPE size_t
|
|
|
|
|
|
|
|
|
|
|
|
/* configMESSAGE_BUFFER_LENGTH_TYPE sets the type used to store the length of
|
|
|
|
/* configMESSAGE_BUFFER_LENGTH_TYPE sets the type used to store the length of
|
|
|
|
* each message written to a FreeRTOS message buffer (the length is also written to
|
|
|
|
* each message written to a FreeRTOS message buffer (the length is also written
|
|
|
|
* the message buffer. Defaults to size_t if left undefined - but that may waste
|
|
|
|
* to the message buffer. Defaults to size_t if left undefined - but that may
|
|
|
|
* space if messages never go above a length that could be held in a uint8_t. */
|
|
|
|
* waste space if messages never go above a length that could be held in a
|
|
|
|
|
|
|
|
* uint8_t. */
|
|
|
|
#define configMESSAGE_BUFFER_LENGTH_TYPE size_t
|
|
|
|
#define configMESSAGE_BUFFER_LENGTH_TYPE size_t
|
|
|
|
|
|
|
|
|
|
|
|
/* If configHEAP_CLEAR_MEMORY_ON_FREE is set to 1, then blocks of memory allocated
|
|
|
|
/* If configHEAP_CLEAR_MEMORY_ON_FREE is set to 1, then blocks of memory
|
|
|
|
* using pvPortMalloc() will be cleared (i.e. set to zero) when freed using
|
|
|
|
* allocated using pvPortMalloc() will be cleared (i.e. set to zero) when freed
|
|
|
|
* vPortFree(). Defaults to 0 if left undefined. */
|
|
|
|
* using vPortFree(). Defaults to 0 if left undefined. */
|
|
|
|
#define configHEAP_CLEAR_MEMORY_ON_FREE 1
|
|
|
|
#define configHEAP_CLEAR_MEMORY_ON_FREE 1
|
|
|
|
|
|
|
|
|
|
|
|
/* vTaskList and vTaskGetRunTimeStats APIs take a buffer as a parameter and assume
|
|
|
|
/* vTaskList and vTaskGetRunTimeStats APIs take a buffer as a parameter and
|
|
|
|
* that the length of the buffer is configSTATS_BUFFER_MAX_LENGTH. Defaults to
|
|
|
|
* assume that the length of the buffer is configSTATS_BUFFER_MAX_LENGTH.
|
|
|
|
* 0xFFFF if left undefined.
|
|
|
|
* Defaults to 0xFFFF if left undefined. New applications are recommended to use
|
|
|
|
* New applications are recommended to use vTaskListTasks and
|
|
|
|
* vTaskListTasks and vTaskGetRunTimeStatistics APIs instead and supply the
|
|
|
|
* vTaskGetRunTimeStatistics APIs instead and supply the length of the buffer
|
|
|
|
* length of the buffer explicitly to avoid memory corruption. */
|
|
|
|
* explicitly to avoid memory corruption. */
|
|
|
|
|
|
|
|
#define configSTATS_BUFFER_MAX_LENGTH 0xFFFF
|
|
|
|
#define configSTATS_BUFFER_MAX_LENGTH 0xFFFF
|
|
|
|
|
|
|
|
|
|
|
|
/* Set configUSE_NEWLIB_REENTRANT to 1 to have a newlib reent structure
|
|
|
|
/* Set configUSE_NEWLIB_REENTRANT to 1 to have a newlib reent structure
|
|
|
@ -199,11 +204,11 @@
|
|
|
|
* Default to 0 if left undefined.
|
|
|
|
* Default to 0 if left undefined.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Note Newlib support has been included by popular demand, but is not used or
|
|
|
|
* Note Newlib support has been included by popular demand, but is not used or
|
|
|
|
* tested by the FreeRTOS maintainers themselves. FreeRTOS is not responsible for
|
|
|
|
* tested by the FreeRTOS maintainers themselves. FreeRTOS is not responsible
|
|
|
|
* resulting newlib operation. User must be familiar with newlib and must provide
|
|
|
|
* for resulting newlib operation. User must be familiar with newlib and must
|
|
|
|
* system-wide implementations of the necessary stubs. Note that (at the time of
|
|
|
|
* provide system-wide implementations of the necessary stubs. Note that (at the
|
|
|
|
* writing) the current newlib design implements a system-wide malloc() that must
|
|
|
|
* time of writing) the current newlib design implements a system-wide malloc()
|
|
|
|
* be provided with locks. */
|
|
|
|
* that must be provided with locks. */
|
|
|
|
#define configUSE_NEWLIB_REENTRANT 0
|
|
|
|
#define configUSE_NEWLIB_REENTRANT 0
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************************/
|
|
|
|
/******************************************************************************/
|
|
|
@ -220,20 +225,21 @@
|
|
|
|
/* configTIMER_TASK_PRIORITY sets the priority used by the timer task. Only
|
|
|
|
/* configTIMER_TASK_PRIORITY sets the priority used by the timer task. Only
|
|
|
|
* used if configUSE_TIMERS is set to 1. The timer task is a standard FreeRTOS
|
|
|
|
* used if configUSE_TIMERS is set to 1. The timer task is a standard FreeRTOS
|
|
|
|
* task, so its priority is set like any other task. See
|
|
|
|
* task, so its priority is set like any other task. See
|
|
|
|
* https://www.freertos.org/RTOS-software-timer-service-daemon-task.html Only used
|
|
|
|
* https://www.freertos.org/RTOS-software-timer-service-daemon-task.html Only
|
|
|
|
* if configUSE_TIMERS is set to 1. */
|
|
|
|
* used if configUSE_TIMERS is set to 1. */
|
|
|
|
#define configTIMER_TASK_PRIORITY ( configMAX_PRIORITIES - 1 )
|
|
|
|
#define configTIMER_TASK_PRIORITY ( configMAX_PRIORITIES - 1 )
|
|
|
|
|
|
|
|
|
|
|
|
/* configTIMER_TASK_STACK_DEPTH sets the size of the stack allocated to the
|
|
|
|
/* configTIMER_TASK_STACK_DEPTH sets the size of the stack allocated to the
|
|
|
|
* timer task (in words, not in bytes!). The timer task is a standard FreeRTOS
|
|
|
|
* timer task (in words, not in bytes!). The timer task is a standard FreeRTOS
|
|
|
|
* task. See https://www.freertos.org/RTOS-software-timer-service-daemon-task.html
|
|
|
|
* task. See
|
|
|
|
* Only used if configUSE_TIMERS is set to 1. */
|
|
|
|
* https://www.freertos.org/RTOS-software-timer-service-daemon-task.html Only
|
|
|
|
|
|
|
|
* used if configUSE_TIMERS is set to 1. */
|
|
|
|
#define configTIMER_TASK_STACK_DEPTH configMINIMAL_STACK_SIZE
|
|
|
|
#define configTIMER_TASK_STACK_DEPTH configMINIMAL_STACK_SIZE
|
|
|
|
|
|
|
|
|
|
|
|
/* configTIMER_QUEUE_LENGTH sets the length of the queue (the number of discrete
|
|
|
|
/* configTIMER_QUEUE_LENGTH sets the length of the queue (the number of discrete
|
|
|
|
* items the queue can hold) used to send commands to the timer task. See
|
|
|
|
* items the queue can hold) used to send commands to the timer task. See
|
|
|
|
* https://www.freertos.org/RTOS-software-timer-service-daemon-task.html Only used
|
|
|
|
* https://www.freertos.org/RTOS-software-timer-service-daemon-task.html Only
|
|
|
|
* if configUSE_TIMERS is set to 1. */
|
|
|
|
* used if configUSE_TIMERS is set to 1. */
|
|
|
|
#define configTIMER_QUEUE_LENGTH 10
|
|
|
|
#define configTIMER_QUEUE_LENGTH 10
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************************/
|
|
|
|
/******************************************************************************/
|
|
|
@ -270,21 +276,22 @@
|
|
|
|
#define configSUPPORT_STATIC_ALLOCATION 1
|
|
|
|
#define configSUPPORT_STATIC_ALLOCATION 1
|
|
|
|
|
|
|
|
|
|
|
|
/* Set configSUPPORT_DYNAMIC_ALLOCATION to 1 to include FreeRTOS API functions
|
|
|
|
/* Set configSUPPORT_DYNAMIC_ALLOCATION to 1 to include FreeRTOS API functions
|
|
|
|
* that create FreeRTOS objects (tasks, queues, etc.) using dynamically allocated
|
|
|
|
* that create FreeRTOS objects (tasks, queues, etc.) using dynamically
|
|
|
|
* memory in the build. Set to 0 to exclude the ability to create dynamically
|
|
|
|
* allocated memory in the build. Set to 0 to exclude the ability to create
|
|
|
|
* allocated objects from the build. Defaults to 1 if left undefined. See
|
|
|
|
* dynamically allocated objects from the build. Defaults to 1 if left
|
|
|
|
|
|
|
|
* undefined. See
|
|
|
|
* https://www.freertos.org/Static_Vs_Dynamic_Memory_Allocation.html. */
|
|
|
|
* https://www.freertos.org/Static_Vs_Dynamic_Memory_Allocation.html. */
|
|
|
|
#define configSUPPORT_DYNAMIC_ALLOCATION 1
|
|
|
|
#define configSUPPORT_DYNAMIC_ALLOCATION 1
|
|
|
|
|
|
|
|
|
|
|
|
/* Sets the total size of the FreeRTOS heap, in bytes, when heap_1.c, heap_2.c
|
|
|
|
/* Sets the total size of the FreeRTOS heap, in bytes, when heap_1.c, heap_2.c
|
|
|
|
* or heap_4.c are included in the build. This value is defaulted to 4096 bytes but
|
|
|
|
* or heap_4.c are included in the build. This value is defaulted to 4096 bytes
|
|
|
|
* it must be tailored to each application. Note the heap will appear in the .bss
|
|
|
|
* but it must be tailored to each application. Note the heap will appear in
|
|
|
|
* section. See https://www.freertos.org/a00111.html. */
|
|
|
|
* the .bss section. See https://www.freertos.org/a00111.html. */
|
|
|
|
#define configTOTAL_HEAP_SIZE 4096
|
|
|
|
#define configTOTAL_HEAP_SIZE 4096
|
|
|
|
|
|
|
|
|
|
|
|
/* Set configAPPLICATION_ALLOCATED_HEAP to 1 to have the application allocate
|
|
|
|
/* Set configAPPLICATION_ALLOCATED_HEAP to 1 to have the application allocate
|
|
|
|
* the array used as the FreeRTOS heap. Set to 0 to have the linker allocate the
|
|
|
|
* the array used as the FreeRTOS heap. Set to 0 to have the linker allocate
|
|
|
|
* array used as the FreeRTOS heap. Defaults to 0 if left undefined. */
|
|
|
|
* the array used as the FreeRTOS heap. Defaults to 0 if left undefined. */
|
|
|
|
#define configAPPLICATION_ALLOCATED_HEAP 0
|
|
|
|
#define configAPPLICATION_ALLOCATED_HEAP 0
|
|
|
|
|
|
|
|
|
|
|
|
/* Set configSTACK_ALLOCATION_FROM_SEPARATE_HEAP to 1 to have task stacks
|
|
|
|
/* Set configSTACK_ALLOCATION_FROM_SEPARATE_HEAP to 1 to have task stacks
|
|
|
@ -295,9 +302,9 @@
|
|
|
|
* Defaults to 0 if left undefined. */
|
|
|
|
* Defaults to 0 if left undefined. */
|
|
|
|
#define configSTACK_ALLOCATION_FROM_SEPARATE_HEAP 0
|
|
|
|
#define configSTACK_ALLOCATION_FROM_SEPARATE_HEAP 0
|
|
|
|
|
|
|
|
|
|
|
|
/* Set configENABLE_HEAP_PROTECTOR to 1 to enable bounds checking and obfuscation
|
|
|
|
/* Set configENABLE_HEAP_PROTECTOR to 1 to enable bounds checking and
|
|
|
|
* to internal heap block pointers in heap_4.c and heap_5.c to help catch pointer
|
|
|
|
* obfuscation to internal heap block pointers in heap_4.c and heap_5.c to help
|
|
|
|
* corruptions. Defaults to 0 if left undefined. */
|
|
|
|
* catch pointer corruptions. Defaults to 0 if left undefined. */
|
|
|
|
#define configENABLE_HEAP_PROTECTOR 0
|
|
|
|
#define configENABLE_HEAP_PROTECTOR 0
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************************/
|
|
|
|
/******************************************************************************/
|
|
|
@ -311,11 +318,11 @@
|
|
|
|
#define configKERNEL_INTERRUPT_PRIORITY 0
|
|
|
|
#define configKERNEL_INTERRUPT_PRIORITY 0
|
|
|
|
|
|
|
|
|
|
|
|
/* configMAX_SYSCALL_INTERRUPT_PRIORITY sets the interrupt priority above which
|
|
|
|
/* configMAX_SYSCALL_INTERRUPT_PRIORITY sets the interrupt priority above which
|
|
|
|
* FreeRTOS API calls must not be made. Interrupts above this priority are never
|
|
|
|
* FreeRTOS API calls must not be made. Interrupts above this priority are
|
|
|
|
* disabled, so never delayed by RTOS activity. The default value is set to the
|
|
|
|
* never disabled, so never delayed by RTOS activity. The default value is set
|
|
|
|
* highest interrupt priority (0). Not supported by all FreeRTOS ports.
|
|
|
|
* to the highest interrupt priority (0). Not supported by all FreeRTOS ports.
|
|
|
|
* See https://www.freertos.org/RTOS-Cortex-M3-M4.html for information specific to
|
|
|
|
* See https://www.freertos.org/RTOS-Cortex-M3-M4.html for information specific
|
|
|
|
* ARM Cortex-M devices. */
|
|
|
|
* to ARM Cortex-M devices. */
|
|
|
|
#define configMAX_SYSCALL_INTERRUPT_PRIORITY 0
|
|
|
|
#define configMAX_SYSCALL_INTERRUPT_PRIORITY 0
|
|
|
|
|
|
|
|
|
|
|
|
/* Another name for configMAX_SYSCALL_INTERRUPT_PRIORITY - the name used depends
|
|
|
|
/* Another name for configMAX_SYSCALL_INTERRUPT_PRIORITY - the name used depends
|
|
|
@ -327,9 +334,9 @@
|
|
|
|
/******************************************************************************/
|
|
|
|
/******************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
/* Set the following configUSE_* constants to 1 to include the named hook
|
|
|
|
/* Set the following configUSE_* constants to 1 to include the named hook
|
|
|
|
* functionality in the build. Set to 0 to exclude the hook functionality from the
|
|
|
|
* functionality in the build. Set to 0 to exclude the hook functionality from
|
|
|
|
* build. The application writer is responsible for providing the hook function
|
|
|
|
* the build. The application writer is responsible for providing the hook
|
|
|
|
* for any set to 1. See https://www.freertos.org/a00016.html. */
|
|
|
|
* function for any set to 1. See https://www.freertos.org/a00016.html. */
|
|
|
|
#define configUSE_IDLE_HOOK 0
|
|
|
|
#define configUSE_IDLE_HOOK 0
|
|
|
|
#define configUSE_TICK_HOOK 0
|
|
|
|
#define configUSE_TICK_HOOK 0
|
|
|
|
#define configUSE_MALLOC_FAILED_HOOK 0
|
|
|
|
#define configUSE_MALLOC_FAILED_HOOK 0
|
|
|
@ -346,14 +353,15 @@
|
|
|
|
/* Set configCHECK_FOR_STACK_OVERFLOW to 1 or 2 for FreeRTOS to check for a
|
|
|
|
/* Set configCHECK_FOR_STACK_OVERFLOW to 1 or 2 for FreeRTOS to check for a
|
|
|
|
* stack overflow at the time of a context switch. Set to 0 to not look for a
|
|
|
|
* stack overflow at the time of a context switch. Set to 0 to not look for a
|
|
|
|
* stack overflow. If configCHECK_FOR_STACK_OVERFLOW is 1 then the check only
|
|
|
|
* stack overflow. If configCHECK_FOR_STACK_OVERFLOW is 1 then the check only
|
|
|
|
* looks for the stack pointer being out of bounds when a task's context is saved
|
|
|
|
* looks for the stack pointer being out of bounds when a task's context is
|
|
|
|
* to its stack - this is fast but somewhat ineffective. If
|
|
|
|
* saved to its stack - this is fast but somewhat ineffective. If
|
|
|
|
* configCHECK_FOR_STACK_OVERFLOW is 2 then the check looks for a pattern written
|
|
|
|
* configCHECK_FOR_STACK_OVERFLOW is 2 then the check looks for a pattern
|
|
|
|
* to the end of a task's stack having been overwritten. This is slower, but will
|
|
|
|
* written to the end of a task's stack having been overwritten. This is
|
|
|
|
* catch most (but not all) stack overflows. The application writer must provide
|
|
|
|
* slower, but will catch most (but not all) stack overflows. The application
|
|
|
|
* the stack overflow callback when configCHECK_FOR_STACK_OVERFLOW is set to 1.
|
|
|
|
* writer must provide the stack overflow callback when
|
|
|
|
* See https://www.freertos.org/Stacks-and-stack-overflow-checking.html Defaults
|
|
|
|
* configCHECK_FOR_STACK_OVERFLOW is set to 1. See
|
|
|
|
* to 0 if left undefined. */
|
|
|
|
* https://www.freertos.org/Stacks-and-stack-overflow-checking.html Defaults to
|
|
|
|
|
|
|
|
* 0 if left undefined. */
|
|
|
|
#define configCHECK_FOR_STACK_OVERFLOW 2
|
|
|
|
#define configCHECK_FOR_STACK_OVERFLOW 2
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************************/
|
|
|
|
/******************************************************************************/
|
|
|
@ -362,8 +370,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
/* Set configGENERATE_RUN_TIME_STATS to 1 to have FreeRTOS collect data on the
|
|
|
|
/* Set configGENERATE_RUN_TIME_STATS to 1 to have FreeRTOS collect data on the
|
|
|
|
* processing time used by each task. Set to 0 to not collect the data. The
|
|
|
|
* processing time used by each task. Set to 0 to not collect the data. The
|
|
|
|
* application writer needs to provide a clock source if set to 1. Defaults to 0
|
|
|
|
* application writer needs to provide a clock source if set to 1. Defaults to
|
|
|
|
* if left undefined. See https://www.freertos.org/rtos-run-time-stats.html. */
|
|
|
|
* 0 if left undefined. See https://www.freertos.org/rtos-run-time-stats.html.
|
|
|
|
|
|
|
|
*/
|
|
|
|
#define configGENERATE_RUN_TIME_STATS 0
|
|
|
|
#define configGENERATE_RUN_TIME_STATS 0
|
|
|
|
|
|
|
|
|
|
|
|
/* Set configUSE_TRACE_FACILITY to include additional task structure members
|
|
|
|
/* Set configUSE_TRACE_FACILITY to include additional task structure members
|
|
|
@ -385,8 +394,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
/* Set configUSE_CO_ROUTINES to 1 to include co-routine functionality in the
|
|
|
|
/* Set configUSE_CO_ROUTINES to 1 to include co-routine functionality in the
|
|
|
|
* build, or 0 to omit co-routine functionality from the build. To include
|
|
|
|
* build, or 0 to omit co-routine functionality from the build. To include
|
|
|
|
* co-routines, croutine.c must be included in the project. Defaults to 0 if left
|
|
|
|
* co-routines, croutine.c must be included in the project. Defaults to 0 if
|
|
|
|
* undefined. */
|
|
|
|
* left undefined. */
|
|
|
|
#define configUSE_CO_ROUTINES 0
|
|
|
|
#define configUSE_CO_ROUTINES 0
|
|
|
|
|
|
|
|
|
|
|
|
/* configMAX_CO_ROUTINE_PRIORITIES defines the number of priorities available
|
|
|
|
/* configMAX_CO_ROUTINE_PRIORITIES defines the number of priorities available
|
|
|
@ -403,9 +412,9 @@
|
|
|
|
* at all (i.e. comment out or delete the definitions) to completely remove
|
|
|
|
* at all (i.e. comment out or delete the definitions) to completely remove
|
|
|
|
* assertions. configASSERT() can be defined to anything you want, for example
|
|
|
|
* assertions. configASSERT() can be defined to anything you want, for example
|
|
|
|
* you can call a function if an assert fails that passes the filename and line
|
|
|
|
* you can call a function if an assert fails that passes the filename and line
|
|
|
|
* number of the failing assert (for example, "vAssertCalled( __FILE__, __LINE__ )"
|
|
|
|
* number of the failing assert (for example, "vAssertCalled( __FILE__, __LINE__
|
|
|
|
* or it can simple disable interrupts and sit in a loop to halt all execution
|
|
|
|
* )" or it can simple disable interrupts and sit in a loop to halt all
|
|
|
|
* on the failing line for viewing in a debugger. */
|
|
|
|
* execution on the failing line for viewing in a debugger. */
|
|
|
|
#define configASSERT( x ) \
|
|
|
|
#define configASSERT( x ) \
|
|
|
|
if( ( x ) == 0 ) \
|
|
|
|
if( ( x ) == 0 ) \
|
|
|
|
{ \
|
|
|
|
{ \
|
|
|
@ -420,9 +429,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
/* If configINCLUDE_APPLICATION_DEFINED_PRIVILEGED_FUNCTIONS is set to 1 then
|
|
|
|
/* If configINCLUDE_APPLICATION_DEFINED_PRIVILEGED_FUNCTIONS is set to 1 then
|
|
|
|
* the application writer can provide functions that execute in privileged mode.
|
|
|
|
* the application writer can provide functions that execute in privileged mode.
|
|
|
|
* See: https://www.freertos.org/a00110.html#configINCLUDE_APPLICATION_DEFINED_PRIVILEGED_FUNCTIONS
|
|
|
|
* See:
|
|
|
|
* Defaults to 0 if left undefined. Only used by the FreeRTOS Cortex-M MPU ports,
|
|
|
|
* https://www.freertos.org/a00110.html#configINCLUDE_APPLICATION_DEFINED_PRIVILEGED_FUNCTIONS
|
|
|
|
* not the standard ARMv7-M Cortex-M port. */
|
|
|
|
* Defaults to 0 if left undefined. Only used by the FreeRTOS Cortex-M MPU
|
|
|
|
|
|
|
|
* ports, not the standard ARMv7-M Cortex-M port. */
|
|
|
|
#define configINCLUDE_APPLICATION_DEFINED_PRIVILEGED_FUNCTIONS 0
|
|
|
|
#define configINCLUDE_APPLICATION_DEFINED_PRIVILEGED_FUNCTIONS 0
|
|
|
|
|
|
|
|
|
|
|
|
/* Set configTOTAL_MPU_REGIONS to the number of MPU regions implemented on your
|
|
|
|
/* Set configTOTAL_MPU_REGIONS to the number of MPU regions implemented on your
|
|
|
@ -432,24 +442,24 @@
|
|
|
|
#define configTOTAL_MPU_REGIONS 8
|
|
|
|
#define configTOTAL_MPU_REGIONS 8
|
|
|
|
|
|
|
|
|
|
|
|
/* configTEX_S_C_B_FLASH allows application writers to override the default
|
|
|
|
/* configTEX_S_C_B_FLASH allows application writers to override the default
|
|
|
|
* values for the for TEX, Shareable (S), Cacheable (C) and Bufferable (B) bits for
|
|
|
|
* values for the for TEX, Shareable (S), Cacheable (C) and Bufferable (B) bits
|
|
|
|
* the MPU region covering Flash. Defaults to 0x07UL (which means TEX=000, S=1,
|
|
|
|
* for the MPU region covering Flash. Defaults to 0x07UL (which means TEX=000,
|
|
|
|
* C=1, B=1) if left undefined. Only used by the FreeRTOS Cortex-M MPU ports, not
|
|
|
|
* S=1, C=1, B=1) if left undefined. Only used by the FreeRTOS Cortex-M MPU
|
|
|
|
* the standard ARMv7-M Cortex-M port. */
|
|
|
|
* ports, not the standard ARMv7-M Cortex-M port. */
|
|
|
|
#define configTEX_S_C_B_FLASH 0x07UL
|
|
|
|
#define configTEX_S_C_B_FLASH 0x07UL
|
|
|
|
|
|
|
|
|
|
|
|
/* configTEX_S_C_B_SRAM allows application writers to override the default
|
|
|
|
/* configTEX_S_C_B_SRAM allows application writers to override the default
|
|
|
|
* values for the for TEX, Shareable (S), Cacheable (C) and Bufferable (B) bits for
|
|
|
|
* values for the for TEX, Shareable (S), Cacheable (C) and Bufferable (B) bits
|
|
|
|
* the MPU region covering RAM. Defaults to 0x07UL (which means TEX=000, S=1, C=1,
|
|
|
|
* for the MPU region covering RAM. Defaults to 0x07UL (which means TEX=000,
|
|
|
|
* B=1) if left undefined. Only used by the FreeRTOS Cortex-M MPU ports, not
|
|
|
|
* S=1, C=1, B=1) if left undefined. Only used by the FreeRTOS Cortex-M MPU
|
|
|
|
* the standard ARMv7-M Cortex-M port. */
|
|
|
|
* ports, not the standard ARMv7-M Cortex-M port. */
|
|
|
|
#define configTEX_S_C_B_SRAM 0x07UL
|
|
|
|
#define configTEX_S_C_B_SRAM 0x07UL
|
|
|
|
|
|
|
|
|
|
|
|
/* Set configENFORCE_SYSTEM_CALLS_FROM_KERNEL_ONLY to 0 to prevent any privilege
|
|
|
|
/* Set configENFORCE_SYSTEM_CALLS_FROM_KERNEL_ONLY to 0 to prevent any privilege
|
|
|
|
* escalations originating from outside of the kernel code itself. Set to 1 to
|
|
|
|
* escalations originating from outside of the kernel code itself. Set to 1 to
|
|
|
|
* allow application tasks to raise privilege. Defaults to 1 if left undefined.
|
|
|
|
* allow application tasks to raise privilege. Defaults to 1 if left undefined.
|
|
|
|
* Only used by the FreeRTOS Cortex-M MPU ports, not the standard ARMv7-M Cortex-M
|
|
|
|
* Only used by the FreeRTOS Cortex-M MPU ports, not the standard ARMv7-M
|
|
|
|
* port. */
|
|
|
|
* Cortex-M port. */
|
|
|
|
#define configENFORCE_SYSTEM_CALLS_FROM_KERNEL_ONLY 1
|
|
|
|
#define configENFORCE_SYSTEM_CALLS_FROM_KERNEL_ONLY 1
|
|
|
|
|
|
|
|
|
|
|
|
/* Set configALLOW_UNPRIVILEGED_CRITICAL_SECTIONS to 1 to allow unprivileged
|
|
|
|
/* Set configALLOW_UNPRIVILEGED_CRITICAL_SECTIONS to 1 to allow unprivileged
|
|
|
@ -493,8 +503,8 @@
|
|
|
|
/* SMP( Symmetric MultiProcessing ) Specific Configuration definitions. *******/
|
|
|
|
/* SMP( Symmetric MultiProcessing ) Specific Configuration definitions. *******/
|
|
|
|
/******************************************************************************/
|
|
|
|
/******************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
/* Set configNUMBER_OF_CORES to the number of available processor cores. Defaults
|
|
|
|
/* Set configNUMBER_OF_CORES to the number of available processor cores.
|
|
|
|
* to 1 if left undefined. */
|
|
|
|
* Defaults to 1 if left undefined. */
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
#define configNUMBER_OF_CORES [Num of available cores]
|
|
|
|
#define configNUMBER_OF_CORES [Num of available cores]
|
|
|
@ -511,19 +521,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
/* When using SMP (i.e. configNUMBER_OF_CORES is greater than one), set
|
|
|
|
/* When using SMP (i.e. configNUMBER_OF_CORES is greater than one), set
|
|
|
|
* configUSE_CORE_AFFINITY to 1 to enable core affinity feature. When core
|
|
|
|
* configUSE_CORE_AFFINITY to 1 to enable core affinity feature. When core
|
|
|
|
* affinity feature is enabled, the vTaskCoreAffinitySet and vTaskCoreAffinityGet
|
|
|
|
* affinity feature is enabled, the vTaskCoreAffinitySet and
|
|
|
|
* APIs can be used to set and retrieve which cores a task can run on. If
|
|
|
|
* vTaskCoreAffinityGet APIs can be used to set and retrieve which cores a task
|
|
|
|
* configUSE_CORE_AFFINITY is set to 0 then the FreeRTOS scheduler is free to
|
|
|
|
* can run on. If configUSE_CORE_AFFINITY is set to 0 then the FreeRTOS
|
|
|
|
* run any task on any available core. */
|
|
|
|
* scheduler is free to run any task on any available core. */
|
|
|
|
#define configUSE_CORE_AFFINITY 0
|
|
|
|
#define configUSE_CORE_AFFINITY 0
|
|
|
|
|
|
|
|
|
|
|
|
/* When using SMP with core affinity feature enabled, set
|
|
|
|
/* When using SMP with core affinity feature enabled, set
|
|
|
|
* configTASK_DEFAULT_CORE_AFFINITY to change the default core affinity mask for
|
|
|
|
* configTASK_DEFAULT_CORE_AFFINITY to change the default core affinity mask for
|
|
|
|
* tasks created without an affinity mask specified. Setting the define to 1 would
|
|
|
|
* tasks created without an affinity mask specified. Setting the define to 1
|
|
|
|
* make such tasks run on core 0 and setting it to (1 << portGET_CORE_ID()) would
|
|
|
|
* would make such tasks run on core 0 and setting it to (1 <<
|
|
|
|
* make such tasks run on the current core. This config value is useful, if
|
|
|
|
* portGET_CORE_ID()) would make such tasks run on the current core. This config
|
|
|
|
* swapping tasks between cores is not supported (e.g. Tricore) or if legacy code
|
|
|
|
* value is useful, if swapping tasks between cores is not supported (e.g.
|
|
|
|
* should be controlled. Defaults to tskNO_AFFINITY if left undefined. */
|
|
|
|
* Tricore) or if legacy code should be controlled. Defaults to tskNO_AFFINITY
|
|
|
|
|
|
|
|
* if left undefined. */
|
|
|
|
#define configTASK_DEFAULT_CORE_AFFINITY tskNO_AFFINITY
|
|
|
|
#define configTASK_DEFAULT_CORE_AFFINITY tskNO_AFFINITY
|
|
|
|
|
|
|
|
|
|
|
|
/* When using SMP (i.e. configNUMBER_OF_CORES is greater than one), if
|
|
|
|
/* When using SMP (i.e. configNUMBER_OF_CORES is greater than one), if
|
|
|
@ -534,8 +545,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
/* When using SMP (i.e. configNUMBER_OF_CORES is greater than one), set
|
|
|
|
/* When using SMP (i.e. configNUMBER_OF_CORES is greater than one), set
|
|
|
|
* configUSE_PASSIVE_IDLE_HOOK to 1 to allow the application writer to use
|
|
|
|
* configUSE_PASSIVE_IDLE_HOOK to 1 to allow the application writer to use
|
|
|
|
* the passive idle task hook to add background functionality without the overhead
|
|
|
|
* the passive idle task hook to add background functionality without the
|
|
|
|
* of a separate task. Defaults to 0 if left undefined. */
|
|
|
|
* overhead of a separate task. Defaults to 0 if left undefined. */
|
|
|
|
#define configUSE_PASSIVE_IDLE_HOOK 0
|
|
|
|
#define configUSE_PASSIVE_IDLE_HOOK 0
|
|
|
|
|
|
|
|
|
|
|
|
/* When using SMP (i.e. configNUMBER_OF_CORES is greater than one),
|
|
|
|
/* When using SMP (i.e. configNUMBER_OF_CORES is greater than one),
|
|
|
@ -544,19 +555,19 @@
|
|
|
|
* tskNO_AFFINITY if left undefined. */
|
|
|
|
* tskNO_AFFINITY if left undefined. */
|
|
|
|
#define configTIMER_SERVICE_TASK_CORE_AFFINITY tskNO_AFFINITY
|
|
|
|
#define configTIMER_SERVICE_TASK_CORE_AFFINITY tskNO_AFFINITY
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************************/
|
|
|
|
/******************************************************************************/
|
|
|
|
/* ARMv8-M secure side port related definitions. ******************************/
|
|
|
|
/* ARMv8-M secure side port related definitions. ******************************/
|
|
|
|
/******************************************************************************/
|
|
|
|
/******************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
/* secureconfigMAX_SECURE_CONTEXTS define the maximum number of tasks that can
|
|
|
|
/* secureconfigMAX_SECURE_CONTEXTS define the maximum number of tasks that can
|
|
|
|
* call into the secure side of an ARMv8-M chip. Not used by any other ports. */
|
|
|
|
* call into the secure side of an ARMv8-M chip. Not used by any other ports.
|
|
|
|
|
|
|
|
*/
|
|
|
|
#define secureconfigMAX_SECURE_CONTEXTS 5
|
|
|
|
#define secureconfigMAX_SECURE_CONTEXTS 5
|
|
|
|
|
|
|
|
|
|
|
|
/* Defines the kernel provided implementation of
|
|
|
|
/* Defines the kernel provided implementation of
|
|
|
|
* vApplicationGetIdleTaskMemory() and vApplicationGetTimerTaskMemory()
|
|
|
|
* vApplicationGetIdleTaskMemory() and vApplicationGetTimerTaskMemory()
|
|
|
|
* to provide the memory that is used by the Idle task and Timer task respectively.
|
|
|
|
* to provide the memory that is used by the Idle task and Timer task
|
|
|
|
* The application can provide it's own implementation of
|
|
|
|
* respectively. The application can provide it's own implementation of
|
|
|
|
* vApplicationGetIdleTaskMemory() and vApplicationGetTimerTaskMemory() by
|
|
|
|
* vApplicationGetIdleTaskMemory() and vApplicationGetTimerTaskMemory() by
|
|
|
|
* setting configKERNEL_PROVIDED_STATIC_MEMORY to 0 or leaving it undefined. */
|
|
|
|
* setting configKERNEL_PROVIDED_STATIC_MEMORY to 0 or leaving it undefined. */
|
|
|
|
#define configKERNEL_PROVIDED_STATIC_MEMORY 1
|
|
|
|
#define configKERNEL_PROVIDED_STATIC_MEMORY 1
|
|
|
@ -571,11 +582,11 @@
|
|
|
|
* exported from secure side. */
|
|
|
|
* exported from secure side. */
|
|
|
|
#define configENABLE_TRUSTZONE 1
|
|
|
|
#define configENABLE_TRUSTZONE 1
|
|
|
|
|
|
|
|
|
|
|
|
/* If the application writer does not want to use TrustZone, but the hardware does
|
|
|
|
/* If the application writer does not want to use TrustZone, but the hardware
|
|
|
|
* not support disabling TrustZone then the entire application (including the FreeRTOS
|
|
|
|
* does not support disabling TrustZone then the entire application (including
|
|
|
|
* scheduler) can run on the secure side without ever branching to the non-secure side.
|
|
|
|
* the FreeRTOS scheduler) can run on the secure side without ever branching to
|
|
|
|
* To do that, in addition to setting configENABLE_TRUSTZONE to 0, also set
|
|
|
|
* the non-secure side. To do that, in addition to setting
|
|
|
|
* configRUN_FREERTOS_SECURE_ONLY to 1. */
|
|
|
|
* configENABLE_TRUSTZONE to 0, also set configRUN_FREERTOS_SECURE_ONLY to 1. */
|
|
|
|
#define configRUN_FREERTOS_SECURE_ONLY 1
|
|
|
|
#define configRUN_FREERTOS_SECURE_ONLY 1
|
|
|
|
|
|
|
|
|
|
|
|
/* Set configENABLE_MPU to 1 to enable the Memory Protection Unit (MPU), or 0
|
|
|
|
/* Set configENABLE_MPU to 1 to enable the Memory Protection Unit (MPU), or 0
|
|
|
@ -586,27 +597,31 @@
|
|
|
|
* to leave the Floating Point Unit disabled. */
|
|
|
|
* to leave the Floating Point Unit disabled. */
|
|
|
|
#define configENABLE_FPU 1
|
|
|
|
#define configENABLE_FPU 1
|
|
|
|
|
|
|
|
|
|
|
|
/* Set configENABLE_MVE to 1 to enable the M-Profile Vector Extension (MVE) support,
|
|
|
|
/* Set configENABLE_MVE to 1 to enable the M-Profile Vector Extension (MVE)
|
|
|
|
* or 0 to leave the MVE support disabled. This option is only applicable to Cortex-M55
|
|
|
|
* support, or 0 to leave the MVE support disabled. This option is only
|
|
|
|
* and Cortex-M85 ports as M-Profile Vector Extension (MVE) is available only on
|
|
|
|
* applicable to Cortex-M55 and Cortex-M85 ports as M-Profile Vector Extension
|
|
|
|
* these architectures. configENABLE_MVE must be left undefined, or defined to 0
|
|
|
|
* (MVE) is available only on these architectures. configENABLE_MVE must be left
|
|
|
|
* for the Cortex-M23,Cortex-M33 and Cortex-M35P ports. */
|
|
|
|
* undefined, or defined to 0 for the Cortex-M23,Cortex-M33 and Cortex-M35P
|
|
|
|
|
|
|
|
* ports. */
|
|
|
|
#define configENABLE_MVE 1
|
|
|
|
#define configENABLE_MVE 1
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************************/
|
|
|
|
/******************************************************************************/
|
|
|
|
/* ARMv7-M and ARMv8-M port Specific Configuration definitions. ***************/
|
|
|
|
/* ARMv7-M and ARMv8-M port Specific Configuration definitions. ***************/
|
|
|
|
/******************************************************************************/
|
|
|
|
/******************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
/* Set configCHECK_HANDLER_INSTALLATION to 1 to enable additional asserts to verify
|
|
|
|
/* Set configCHECK_HANDLER_INSTALLATION to 1 to enable additional asserts to
|
|
|
|
* that the application has correctly installed FreeRTOS interrupt handlers.
|
|
|
|
* verify that the application has correctly installed FreeRTOS interrupt
|
|
|
|
|
|
|
|
* handlers.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* An application can install FreeRTOS interrupt handlers in one of the following ways:
|
|
|
|
* An application can install FreeRTOS interrupt handlers in one of the
|
|
|
|
* 1. Direct Routing - Install the functions vPortSVCHandler and xPortPendSVHandler
|
|
|
|
* following ways:
|
|
|
|
* for SVC call and PendSV interrupts respectively.
|
|
|
|
* 1. Direct Routing - Install the functions vPortSVCHandler and
|
|
|
|
|
|
|
|
* xPortPendSVHandler for SVC call and PendSV interrupts respectively.
|
|
|
|
* 2. Indirect Routing - Install separate handlers for SVC call and PendSV
|
|
|
|
* 2. Indirect Routing - Install separate handlers for SVC call and PendSV
|
|
|
|
* interrupts and route program control from those handlers
|
|
|
|
* interrupts and route program control from those
|
|
|
|
* to vPortSVCHandler and xPortPendSVHandler functions.
|
|
|
|
* handlers to vPortSVCHandler and xPortPendSVHandler functions. The
|
|
|
|
* The applications that use Indirect Routing must set configCHECK_HANDLER_INSTALLATION to 0.
|
|
|
|
* applications that use Indirect Routing must set
|
|
|
|
|
|
|
|
* configCHECK_HANDLER_INSTALLATION to 0.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Defaults to 1 if left undefined. */
|
|
|
|
* Defaults to 1 if left undefined. */
|
|
|
|
#define configCHECK_HANDLER_INSTALLATION 1
|
|
|
|
#define configCHECK_HANDLER_INSTALLATION 1
|
|
|
@ -624,6 +639,10 @@
|
|
|
|
#define configUSE_QUEUE_SETS 0
|
|
|
|
#define configUSE_QUEUE_SETS 0
|
|
|
|
#define configUSE_APPLICATION_TASK_TAG 0
|
|
|
|
#define configUSE_APPLICATION_TASK_TAG 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* USE_POSIX_ERRNO enables the task global FreeRTOS_errno variable which will
|
|
|
|
|
|
|
|
* containthe most recent error for that task. */
|
|
|
|
|
|
|
|
#define configUSE_POSIX_ERRNO 0
|
|
|
|
|
|
|
|
|
|
|
|
/* Set the following INCLUDE_* constants to 1 to incldue the named API function,
|
|
|
|
/* Set the following INCLUDE_* constants to 1 to incldue the named API function,
|
|
|
|
* or 0 to exclude the named API function. Most linkers will remove unused
|
|
|
|
* or 0 to exclude the named API function. Most linkers will remove unused
|
|
|
|
* functions even when the constant is 1. */
|
|
|
|
* functions even when the constant is 1. */
|
|
|
|