mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 09:38:32 -04:00
Introduce configRECORD_STACK_HIGH_ADDRESS, which when set will result in both limits of the stack being saved in the TCB to allow enhanced debug capabilities.
Introduce configINCLUDE_FREERTOS_TASK_C_ADDITIONS_H, which allows a user provided header file to be included at the bottom of the tasks.c source file, which can add user functions and access file scope data. Replace global on/off switches used for lint errors with save/restore switches.
This commit is contained in:
parent
f11912c5de
commit
40201bc253
5 changed files with 70 additions and 23 deletions
|
@ -84,7 +84,8 @@
|
|||
* 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.
|
||||
* See http://www.freertos.org/a00110.html for a full list of configuration
|
||||
* options.
|
||||
*----------------------------------------------------------*/
|
||||
|
||||
/*
|
||||
|
@ -93,8 +94,8 @@
|
|||
* Interrupts that are assigned a priority at or below
|
||||
* configMAX_API_CALL_INTERRUPT_PRIORITY (which counter-intuitively in the ARM
|
||||
* generic interrupt controller [GIC] means a priority that has a numerical
|
||||
* value above configMAX_API_CALL_INTERRUPT_PRIORITY) can call FreeRTOS safe API
|
||||
* functions and will nest.
|
||||
* value above configMAX_API_CALL_INTERRUPT_PRIORITY) can call interrupt safe
|
||||
* FreeRTOS API functions and will nest.
|
||||
*
|
||||
* Interrupts that are assigned a priority above
|
||||
* configMAX_API_CALL_INTERRUPT_PRIORITY (which in the GIC means a numerical
|
||||
|
@ -114,7 +115,7 @@
|
|||
#define configMAX_API_CALL_INTERRUPT_PRIORITY 18
|
||||
|
||||
/* The application will define the array used as the RTOS heap to ensure it can
|
||||
be located in the (faster) on-chip RAM. Whe this parameter is set to 1 the
|
||||
be located in the (faster) on-chip RAM. When this parameter is set to 1 the
|
||||
application must define an array using the name and size as follows below, but
|
||||
is free to locate the array in any suitable RAM region (the faster the better as
|
||||
the stacks used by the tasks are allocated from this array):
|
||||
|
@ -124,13 +125,11 @@ uint8_t ucHeap[ configTOTAL_HEAP_SIZE ];
|
|||
*/
|
||||
#define configAPPLICATION_ALLOCATED_HEAP 1
|
||||
|
||||
#define configCPU_CLOCK_HZ /* Not used in this portabsciex.com. */
|
||||
#define configCPU_CLOCK_HZ /* Not used in this demo. */
|
||||
#define configUSE_PORT_OPTIMISED_TASK_SELECTION 1
|
||||
#define configUSE_TICKLESS_IDLE 0
|
||||
#define configTICK_RATE_HZ ( ( TickType_t ) 1000 )
|
||||
#define configUSE_PREEMPTION 1
|
||||
#define configUSE_IDLE_HOOK 1
|
||||
#define configUSE_TICK_HOOK 1
|
||||
#define configMAX_PRIORITIES ( 7 )
|
||||
#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 200 )
|
||||
#define configTOTAL_HEAP_SIZE ( 50 * 1024 )
|
||||
|
@ -142,11 +141,16 @@ uint8_t ucHeap[ configTOTAL_HEAP_SIZE ];
|
|||
#define configQUEUE_REGISTRY_SIZE 8
|
||||
#define configCHECK_FOR_STACK_OVERFLOW 2
|
||||
#define configUSE_RECURSIVE_MUTEXES 1
|
||||
#define configUSE_MALLOC_FAILED_HOOK 1
|
||||
#define configUSE_APPLICATION_TASK_TAG 0
|
||||
#define configUSE_COUNTING_SEMAPHORES 1
|
||||
#define configUSE_QUEUE_SETS 1
|
||||
|
||||
/* Hook/Callback related definitions. */
|
||||
#define configUSE_MALLOC_FAILED_HOOK 1
|
||||
#define configUSE_IDLE_HOOK 1
|
||||
#define configUSE_TICK_HOOK 1
|
||||
#define configUSE_DAEMON_TASK_STARTUP_HOOK 1
|
||||
|
||||
/* Co-routine definitions. */
|
||||
#define configUSE_CO_ROUTINES 0
|
||||
#define configMAX_CO_ROUTINE_PRIORITIES ( 2 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue