2 * FreeRTOS Kernel <DEVELOPMENT BRANCH>
3 * Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
5 * SPDX-License-Identifier: MIT
7 * Permission is hereby granted, free of charge, to any person obtaining a copy of
8 * this software and associated documentation files (the "Software"), to deal in
9 * the Software without restriction, including without limitation the rights to
10 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
11 * the Software, and to permit persons to whom the Software is furnished to do so,
12 * subject to the following conditions:
14 * The above copyright notice and this permission notice shall be included in all
15 * copies or substantial portions of the Software.
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
19 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
20 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
21 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24 * https://www.FreeRTOS.org
25 * https://github.com/FreeRTOS
29 #ifndef INC_FREERTOS_H
30 #define INC_FREERTOS_H
33 * Include the generic headers required for the FreeRTOS port being used.
38 * If stdint.h cannot be located then:
39 * + If using GCC ensure the -nostdint options is *not* being used.
40 * + Ensure the project's include path includes the directory in which your
41 * compiler stores stdint.h.
42 * + Set any compiler options necessary for it to support C99, as technically
43 * stdint.h is only mandatory with C99 (FreeRTOS does not require C99 in any
45 * + The FreeRTOS download includes a simple stdint.h definition that can be
46 * used in cases where none is provided by the compiler. The files only
47 * contains the typedefs required to build FreeRTOS. Read the instructions
48 * in FreeRTOS/source/stdint.readme for more information.
50 #include <stdint.h> /* READ COMMENT ABOVE. */
52 /* Acceptable values for configTICK_TYPE_WIDTH_IN_BITS. */
53 #define TICK_TYPE_WIDTH_16_BITS 0
54 #define TICK_TYPE_WIDTH_32_BITS 1
55 #define TICK_TYPE_WIDTH_64_BITS 2
57 /* Application specific configuration options. */
58 #include "FreeRTOSConfig.h"
60 #if !defined( configUSE_16_BIT_TICKS ) && !defined( configTICK_TYPE_WIDTH_IN_BITS )
61 #error Missing definition: One of configUSE_16_BIT_TICKS and configTICK_TYPE_WIDTH_IN_BITS must be defined in FreeRTOSConfig.h. See the Configuration section of the FreeRTOS API documentation for details.
64 #if defined( configUSE_16_BIT_TICKS ) && defined( configTICK_TYPE_WIDTH_IN_BITS )
65 #error Only one of configUSE_16_BIT_TICKS and configTICK_TYPE_WIDTH_IN_BITS must be defined in FreeRTOSConfig.h. See the Configuration section of the FreeRTOS API documentation for details.
68 /* Define configTICK_TYPE_WIDTH_IN_BITS according to the
69 * value of configUSE_16_BIT_TICKS for backward compatibility. */
70 #ifndef configTICK_TYPE_WIDTH_IN_BITS
71 #if ( configUSE_16_BIT_TICKS == 1 )
72 #define configTICK_TYPE_WIDTH_IN_BITS TICK_TYPE_WIDTH_16_BITS
74 #define configTICK_TYPE_WIDTH_IN_BITS TICK_TYPE_WIDTH_32_BITS
78 /* Set configUSE_MPU_WRAPPERS_V1 to 1 to use MPU wrappers v1. */
79 #ifndef configUSE_MPU_WRAPPERS_V1
80 #define configUSE_MPU_WRAPPERS_V1 0
83 /* Set configENABLE_ACCESS_CONTROL_LIST to 1 to enable access control list support. */
84 #ifndef configENABLE_ACCESS_CONTROL_LIST
85 #define configENABLE_ACCESS_CONTROL_LIST 0
88 /* Set default value of configNUMBER_OF_CORES to 1 to use single core FreeRTOS. */
89 #ifndef configNUMBER_OF_CORES
90 #define configNUMBER_OF_CORES 1
93 #ifndef configUSE_MALLOC_FAILED_HOOK
94 #define configUSE_MALLOC_FAILED_HOOK 0
97 /* Basic FreeRTOS definitions. */
100 /* Definitions specific to the port being used. */
101 #include "portable.h"
103 /* Must be defaulted before configUSE_NEWLIB_REENTRANT is used below. */
104 #ifndef configUSE_NEWLIB_REENTRANT
105 #define configUSE_NEWLIB_REENTRANT 0
108 /* Required if struct _reent is used. */
109 #if ( configUSE_NEWLIB_REENTRANT == 1 )
111 #include "newlib-freertos.h"
113 #endif /* if ( configUSE_NEWLIB_REENTRANT == 1 ) */
115 /* Must be defaulted before configUSE_PICOLIBC_TLS is used below. */
116 #ifndef configUSE_PICOLIBC_TLS
117 #define configUSE_PICOLIBC_TLS 0
120 #if ( configUSE_PICOLIBC_TLS == 1 )
122 #include "picolibc-freertos.h"
124 #endif /* if ( configUSE_PICOLIBC_TLS == 1 ) */
132 #ifndef configUSE_C_RUNTIME_TLS_SUPPORT
133 #define configUSE_C_RUNTIME_TLS_SUPPORT 0
136 #if ( configUSE_C_RUNTIME_TLS_SUPPORT == 1 )
138 #ifndef configTLS_BLOCK_TYPE
139 #error Missing definition: configTLS_BLOCK_TYPE must be defined in FreeRTOSConfig.h when configUSE_C_RUNTIME_TLS_SUPPORT is set to 1.
142 #ifndef configINIT_TLS_BLOCK
143 #error Missing definition: configINIT_TLS_BLOCK must be defined in FreeRTOSConfig.h when configUSE_C_RUNTIME_TLS_SUPPORT is set to 1.
146 #ifndef configSET_TLS_BLOCK
147 #error Missing definition: configSET_TLS_BLOCK must be defined in FreeRTOSConfig.h when configUSE_C_RUNTIME_TLS_SUPPORT is set to 1.
150 #ifndef configDEINIT_TLS_BLOCK
151 #error Missing definition: configDEINIT_TLS_BLOCK must be defined in FreeRTOSConfig.h when configUSE_C_RUNTIME_TLS_SUPPORT is set to 1.
153 #endif /* if ( configUSE_C_RUNTIME_TLS_SUPPORT == 1 ) */
156 * Check all the required application specific macros have been defined.
157 * These macros are application specific and (as downloaded) are defined
158 * within FreeRTOSConfig.h.
161 #ifndef configMINIMAL_STACK_SIZE
162 #error Missing definition: configMINIMAL_STACK_SIZE must be defined in FreeRTOSConfig.h. configMINIMAL_STACK_SIZE defines the size (in words) of the stack allocated to the idle task. Refer to the demo project provided for your port for a suitable value.
165 #ifndef configMAX_PRIORITIES
166 #error Missing definition: configMAX_PRIORITIES must be defined in FreeRTOSConfig.h. See the Configuration section of the FreeRTOS API documentation for details.
169 #if configMAX_PRIORITIES < 1
170 #error configMAX_PRIORITIES must be defined to be greater than or equal to 1.
173 #ifndef configUSE_PREEMPTION
174 #error Missing definition: configUSE_PREEMPTION must be defined in FreeRTOSConfig.h as either 1 or 0. See the Configuration section of the FreeRTOS API documentation for details.
177 #ifndef configUSE_IDLE_HOOK
178 #error Missing definition: configUSE_IDLE_HOOK must be defined in FreeRTOSConfig.h as either 1 or 0. See the Configuration section of the FreeRTOS API documentation for details.
181 #if ( configNUMBER_OF_CORES > 1 )
182 #ifndef configUSE_PASSIVE_IDLE_HOOK
183 #error Missing definition: configUSE_PASSIVE_IDLE_HOOK must be defined in FreeRTOSConfig.h as either 1 or 0. See the Configuration section of the FreeRTOS API documentation for details.
187 #ifndef configUSE_TICK_HOOK
188 #error Missing definition: configUSE_TICK_HOOK must be defined in FreeRTOSConfig.h as either 1 or 0. See the Configuration section of the FreeRTOS API documentation for details.
191 #if ( ( configTICK_TYPE_WIDTH_IN_BITS != TICK_TYPE_WIDTH_16_BITS ) && \
192 ( configTICK_TYPE_WIDTH_IN_BITS != TICK_TYPE_WIDTH_32_BITS ) && \
193 ( configTICK_TYPE_WIDTH_IN_BITS != TICK_TYPE_WIDTH_64_BITS ) )
194 #error Macro configTICK_TYPE_WIDTH_IN_BITS is defined to incorrect value. See the Configuration section of the FreeRTOS API documentation for details.
197 #ifndef configUSE_CO_ROUTINES
198 #define configUSE_CO_ROUTINES 0
201 #ifndef INCLUDE_vTaskPrioritySet
202 #define INCLUDE_vTaskPrioritySet 0
205 #ifndef INCLUDE_uxTaskPriorityGet
206 #define INCLUDE_uxTaskPriorityGet 0
209 #ifndef INCLUDE_vTaskDelete
210 #define INCLUDE_vTaskDelete 0
213 #ifndef INCLUDE_vTaskSuspend
214 #define INCLUDE_vTaskSuspend 0
217 #ifdef INCLUDE_xTaskDelayUntil
218 #ifdef INCLUDE_vTaskDelayUntil
220 /* INCLUDE_vTaskDelayUntil was replaced by INCLUDE_xTaskDelayUntil. Backward
221 * compatibility is maintained if only one or the other is defined, but
222 * there is a conflict if both are defined. */
223 #error INCLUDE_vTaskDelayUntil and INCLUDE_xTaskDelayUntil are both defined. INCLUDE_vTaskDelayUntil is no longer required and should be removed
227 #ifndef INCLUDE_xTaskDelayUntil
228 #ifdef INCLUDE_vTaskDelayUntil
230 /* If INCLUDE_vTaskDelayUntil is set but INCLUDE_xTaskDelayUntil is not then
231 * the project's FreeRTOSConfig.h probably pre-dates the introduction of
232 * xTaskDelayUntil and setting INCLUDE_xTaskDelayUntil to whatever
233 * INCLUDE_vTaskDelayUntil is set to will ensure backward compatibility.
235 #define INCLUDE_xTaskDelayUntil INCLUDE_vTaskDelayUntil
239 #ifndef INCLUDE_xTaskDelayUntil
240 #define INCLUDE_xTaskDelayUntil 0
243 #ifndef INCLUDE_vTaskDelay
244 #define INCLUDE_vTaskDelay 0
247 #ifndef INCLUDE_xTaskGetIdleTaskHandle
248 #define INCLUDE_xTaskGetIdleTaskHandle 0
251 #ifndef INCLUDE_xTaskAbortDelay
252 #define INCLUDE_xTaskAbortDelay 0
255 #ifndef INCLUDE_xQueueGetMutexHolder
256 #define INCLUDE_xQueueGetMutexHolder 0
259 #ifndef INCLUDE_xSemaphoreGetMutexHolder
260 #define INCLUDE_xSemaphoreGetMutexHolder INCLUDE_xQueueGetMutexHolder
263 #ifndef INCLUDE_xTaskGetHandle
264 #define INCLUDE_xTaskGetHandle 0
267 #ifndef INCLUDE_uxTaskGetStackHighWaterMark
268 #define INCLUDE_uxTaskGetStackHighWaterMark 0
271 #ifndef INCLUDE_uxTaskGetStackHighWaterMark2
272 #define INCLUDE_uxTaskGetStackHighWaterMark2 0
275 #ifndef INCLUDE_eTaskGetState
276 #define INCLUDE_eTaskGetState 0
279 #ifndef INCLUDE_xTaskResumeFromISR
280 #define INCLUDE_xTaskResumeFromISR 1
283 #ifndef INCLUDE_xTimerPendFunctionCall
284 #define INCLUDE_xTimerPendFunctionCall 0
287 #ifndef INCLUDE_xTaskGetSchedulerState
288 #define INCLUDE_xTaskGetSchedulerState 0
291 #ifndef INCLUDE_xTaskGetCurrentTaskHandle
292 #define INCLUDE_xTaskGetCurrentTaskHandle 1
295 #if configUSE_CO_ROUTINES != 0
296 #ifndef configMAX_CO_ROUTINE_PRIORITIES
297 #error configMAX_CO_ROUTINE_PRIORITIES must be greater than or equal to 1.
301 #ifndef configUSE_APPLICATION_TASK_TAG
302 #define configUSE_APPLICATION_TASK_TAG 0
305 #ifndef configNUM_THREAD_LOCAL_STORAGE_POINTERS
306 #define configNUM_THREAD_LOCAL_STORAGE_POINTERS 0
309 #ifndef configUSE_RECURSIVE_MUTEXES
310 #define configUSE_RECURSIVE_MUTEXES 0
313 #ifndef configUSE_MUTEXES
314 #define configUSE_MUTEXES 0
317 #ifndef configUSE_TIMERS
318 #define configUSE_TIMERS 0
321 #ifndef configUSE_EVENT_GROUPS
322 #define configUSE_EVENT_GROUPS 1
325 #ifndef configUSE_STREAM_BUFFERS
326 #define configUSE_STREAM_BUFFERS 1
329 #ifndef configUSE_DAEMON_TASK_STARTUP_HOOK
330 #define configUSE_DAEMON_TASK_STARTUP_HOOK 0
333 #if ( configUSE_DAEMON_TASK_STARTUP_HOOK != 0 )
334 #if ( configUSE_TIMERS == 0 )
335 #error configUSE_DAEMON_TASK_STARTUP_HOOK is set, but the daemon task is not created because configUSE_TIMERS is 0.
339 #ifndef configUSE_COUNTING_SEMAPHORES
340 #define configUSE_COUNTING_SEMAPHORES 0
343 #ifndef configUSE_TASK_PREEMPTION_DISABLE
344 #define configUSE_TASK_PREEMPTION_DISABLE 0
347 #ifndef configUSE_ALTERNATIVE_API
348 #define configUSE_ALTERNATIVE_API 0
351 #ifndef portCRITICAL_NESTING_IN_TCB
352 #define portCRITICAL_NESTING_IN_TCB 0
355 #ifndef configMAX_TASK_NAME_LEN
356 #define configMAX_TASK_NAME_LEN 16
359 #ifndef configIDLE_SHOULD_YIELD
360 #define configIDLE_SHOULD_YIELD 1
363 #if configMAX_TASK_NAME_LEN < 1
364 #error configMAX_TASK_NAME_LEN must be set to a minimum of 1 in FreeRTOSConfig.h
368 #define configASSERT( x )
369 #define configASSERT_DEFINED 0
371 #define configASSERT_DEFINED 1
374 /* configPRECONDITION should be defined as configASSERT.
375 * The CBMC proofs need a way to track assumptions and assertions.
376 * A configPRECONDITION statement should express an implicit invariant or
377 * assumption made. A configASSERT statement should express an invariant that must
378 * hold explicit before calling the code. */
379 #ifndef configPRECONDITION
380 #define configPRECONDITION( X ) configASSERT( X )
381 #define configPRECONDITION_DEFINED 0
383 #define configPRECONDITION_DEFINED 1
386 #ifndef configCHECK_HANDLER_INSTALLATION
387 #define configCHECK_HANDLER_INSTALLATION 1
390 /* The application has explicitly defined configCHECK_HANDLER_INSTALLATION
391 * to 1. The checks requires configASSERT() to be defined. */
392 #if ( ( configCHECK_HANDLER_INSTALLATION == 1 ) && ( configASSERT_DEFINED == 0 ) )
393 #error You must define configASSERT() when configCHECK_HANDLER_INSTALLATION is 1.
397 #ifndef portMEMORY_BARRIER
398 #define portMEMORY_BARRIER()
401 #ifndef portSOFTWARE_BARRIER
402 #define portSOFTWARE_BARRIER()
405 #ifndef configRUN_MULTIPLE_PRIORITIES
406 #define configRUN_MULTIPLE_PRIORITIES 0
409 #ifndef portGET_CORE_ID
411 #if ( configNUMBER_OF_CORES == 1 )
412 #define portGET_CORE_ID() 0
414 #error configNUMBER_OF_CORES is set to more than 1 then portGET_CORE_ID must also be defined.
415 #endif /* configNUMBER_OF_CORES */
417 #endif /* portGET_CORE_ID */
419 #ifndef portYIELD_CORE
421 #if ( configNUMBER_OF_CORES == 1 )
422 #define portYIELD_CORE( x ) portYIELD()
424 #error configNUMBER_OF_CORES is set to more than 1 then portYIELD_CORE must also be defined.
425 #endif /* configNUMBER_OF_CORES */
427 #endif /* portYIELD_CORE */
429 #ifndef portSET_INTERRUPT_MASK
431 #if ( configNUMBER_OF_CORES > 1 )
432 #error portSET_INTERRUPT_MASK is required in SMP
435 #endif /* portSET_INTERRUPT_MASK */
437 #ifndef portCLEAR_INTERRUPT_MASK
439 #if ( configNUMBER_OF_CORES > 1 )
440 #error portCLEAR_INTERRUPT_MASK is required in SMP
443 #endif /* portCLEAR_INTERRUPT_MASK */
445 #ifndef portRELEASE_TASK_LOCK
447 #if ( configNUMBER_OF_CORES == 1 )
448 #define portRELEASE_TASK_LOCK()
450 #error portRELEASE_TASK_LOCK is required in SMP
453 #endif /* portRELEASE_TASK_LOCK */
455 #ifndef portGET_TASK_LOCK
457 #if ( configNUMBER_OF_CORES == 1 )
458 #define portGET_TASK_LOCK()
460 #error portGET_TASK_LOCK is required in SMP
463 #endif /* portGET_TASK_LOCK */
465 #ifndef portRELEASE_ISR_LOCK
467 #if ( configNUMBER_OF_CORES == 1 )
468 #define portRELEASE_ISR_LOCK()
470 #error portRELEASE_ISR_LOCK is required in SMP
473 #endif /* portRELEASE_ISR_LOCK */
475 #ifndef portGET_ISR_LOCK
477 #if ( configNUMBER_OF_CORES == 1 )
478 #define portGET_ISR_LOCK()
480 #error portGET_ISR_LOCK is required in SMP
483 #endif /* portGET_ISR_LOCK */
485 #ifndef portENTER_CRITICAL_FROM_ISR
487 #if ( configNUMBER_OF_CORES > 1 )
488 #error portENTER_CRITICAL_FROM_ISR is required in SMP
493 #ifndef portEXIT_CRITICAL_FROM_ISR
495 #if ( configNUMBER_OF_CORES > 1 )
496 #error portEXIT_CRITICAL_FROM_ISR is required in SMP
501 #ifndef configUSE_CORE_AFFINITY
502 #define configUSE_CORE_AFFINITY 0
503 #endif /* configUSE_CORE_AFFINITY */
505 #if ( ( configNUMBER_OF_CORES > 1 ) && ( configUSE_CORE_AFFINITY == 1 ) )
506 #ifndef configTASK_DEFAULT_CORE_AFFINITY
507 #define configTASK_DEFAULT_CORE_AFFINITY tskNO_AFFINITY
511 #ifndef configUSE_PASSIVE_IDLE_HOOK
512 #define configUSE_PASSIVE_IDLE_HOOK 0
513 #endif /* configUSE_PASSIVE_IDLE_HOOK */
515 /* The timers module relies on xTaskGetSchedulerState(). */
516 #if configUSE_TIMERS == 1
518 #ifndef configTIMER_TASK_PRIORITY
519 #error If configUSE_TIMERS is set to 1 then configTIMER_TASK_PRIORITY must also be defined.
520 #endif /* configTIMER_TASK_PRIORITY */
522 #ifndef configTIMER_QUEUE_LENGTH
523 #error If configUSE_TIMERS is set to 1 then configTIMER_QUEUE_LENGTH must also be defined.
524 #endif /* configTIMER_QUEUE_LENGTH */
526 #ifndef configTIMER_TASK_STACK_DEPTH
527 #error If configUSE_TIMERS is set to 1 then configTIMER_TASK_STACK_DEPTH must also be defined.
528 #endif /* configTIMER_TASK_STACK_DEPTH */
530 #ifndef portTIMER_CALLBACK_ATTRIBUTE
531 #define portTIMER_CALLBACK_ATTRIBUTE
532 #endif /* portTIMER_CALLBACK_ATTRIBUTE */
534 #endif /* configUSE_TIMERS */
536 #ifndef portHAS_NESTED_INTERRUPTS
537 #if defined( portSET_INTERRUPT_MASK_FROM_ISR ) && defined( portCLEAR_INTERRUPT_MASK_FROM_ISR )
538 #define portHAS_NESTED_INTERRUPTS 1
540 #define portHAS_NESTED_INTERRUPTS 0
544 #ifndef portSET_INTERRUPT_MASK_FROM_ISR
545 #if ( portHAS_NESTED_INTERRUPTS == 1 )
546 #error portSET_INTERRUPT_MASK_FROM_ISR must be defined for ports that support nested interrupts (i.e. portHAS_NESTED_INTERRUPTS is set to 1)
548 #define portSET_INTERRUPT_MASK_FROM_ISR() 0
551 #if ( portHAS_NESTED_INTERRUPTS == 0 )
552 #error portSET_INTERRUPT_MASK_FROM_ISR must not be defined for ports that do not support nested interrupts (i.e. portHAS_NESTED_INTERRUPTS is set to 0)
556 #ifndef portCLEAR_INTERRUPT_MASK_FROM_ISR
557 #if ( portHAS_NESTED_INTERRUPTS == 1 )
558 #error portCLEAR_INTERRUPT_MASK_FROM_ISR must be defined for ports that support nested interrupts (i.e. portHAS_NESTED_INTERRUPTS is set to 1)
560 #define portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedStatusValue ) ( void ) ( uxSavedStatusValue )
563 #if ( portHAS_NESTED_INTERRUPTS == 0 )
564 #error portCLEAR_INTERRUPT_MASK_FROM_ISR must not be defined for ports that do not support nested interrupts (i.e. portHAS_NESTED_INTERRUPTS is set to 0)
568 #ifndef portCLEAN_UP_TCB
569 #define portCLEAN_UP_TCB( pxTCB ) ( void ) ( pxTCB )
572 #ifndef portPRE_TASK_DELETE_HOOK
573 #define portPRE_TASK_DELETE_HOOK( pvTaskToDelete, pxYieldPending )
576 #ifndef portSETUP_TCB
577 #define portSETUP_TCB( pxTCB ) ( void ) ( pxTCB )
580 #ifndef portTASK_SWITCH_HOOK
581 #define portTASK_SWITCH_HOOK( pxTCB ) ( void ) ( pxTCB )
584 #ifndef configQUEUE_REGISTRY_SIZE
585 #define configQUEUE_REGISTRY_SIZE 0U
588 #if ( configQUEUE_REGISTRY_SIZE < 1 )
589 #define vQueueAddToRegistry( xQueue, pcName )
590 #define vQueueUnregisterQueue( xQueue )
591 #define pcQueueGetName( xQueue )
594 #ifndef configUSE_MINI_LIST_ITEM
595 #define configUSE_MINI_LIST_ITEM 1
598 #ifndef portPOINTER_SIZE_TYPE
599 #define portPOINTER_SIZE_TYPE uint32_t
602 /* Remove any unused trace macros. */
605 /* Used to perform any necessary initialisation - for example, open a file
606 * into which trace is to be written. */
612 /* Use to close a trace, for example close a file into which trace has been
617 #ifndef traceTASK_SWITCHED_IN
619 /* Called after a task has been selected to run. pxCurrentTCB holds a pointer
620 * to the task control block of the selected task. */
621 #define traceTASK_SWITCHED_IN()
624 #ifndef traceINCREASE_TICK_COUNT
626 /* Called before stepping the tick count after waking from tickless idle
628 #define traceINCREASE_TICK_COUNT( x )
631 #ifndef traceLOW_POWER_IDLE_BEGIN
632 /* Called immediately before entering tickless idle. */
633 #define traceLOW_POWER_IDLE_BEGIN()
636 #ifndef traceLOW_POWER_IDLE_END
637 /* Called when returning to the Idle task after a tickless idle. */
638 #define traceLOW_POWER_IDLE_END()
641 #ifndef traceTASK_SWITCHED_OUT
643 /* Called before a task has been selected to run. pxCurrentTCB holds a pointer
644 * to the task control block of the task being switched out. */
645 #define traceTASK_SWITCHED_OUT()
648 #ifndef traceTASK_PRIORITY_INHERIT
650 /* Called when a task attempts to take a mutex that is already held by a
651 * lower priority task. pxTCBOfMutexHolder is a pointer to the TCB of the task
652 * that holds the mutex. uxInheritedPriority is the priority the mutex holder
653 * will inherit (the priority of the task that is attempting to obtain the
655 #define traceTASK_PRIORITY_INHERIT( pxTCBOfMutexHolder, uxInheritedPriority )
658 #ifndef traceTASK_PRIORITY_DISINHERIT
660 /* Called when a task releases a mutex, the holding of which had resulted in
661 * the task inheriting the priority of a higher priority task.
662 * pxTCBOfMutexHolder is a pointer to the TCB of the task that is releasing the
663 * mutex. uxOriginalPriority is the task's configured (base) priority. */
664 #define traceTASK_PRIORITY_DISINHERIT( pxTCBOfMutexHolder, uxOriginalPriority )
667 #ifndef traceBLOCKING_ON_QUEUE_RECEIVE
669 /* Task is about to block because it cannot read from a
670 * queue/mutex/semaphore. pxQueue is a pointer to the queue/mutex/semaphore
671 * upon which the read was attempted. pxCurrentTCB points to the TCB of the
672 * task that attempted the read. */
673 #define traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue )
676 #ifndef traceBLOCKING_ON_QUEUE_PEEK
678 /* Task is about to block because it cannot read from a
679 * queue/mutex/semaphore. pxQueue is a pointer to the queue/mutex/semaphore
680 * upon which the read was attempted. pxCurrentTCB points to the TCB of the
681 * task that attempted the read. */
682 #define traceBLOCKING_ON_QUEUE_PEEK( pxQueue )
685 #ifndef traceBLOCKING_ON_QUEUE_SEND
687 /* Task is about to block because it cannot write to a
688 * queue/mutex/semaphore. pxQueue is a pointer to the queue/mutex/semaphore
689 * upon which the write was attempted. pxCurrentTCB points to the TCB of the
690 * task that attempted the write. */
691 #define traceBLOCKING_ON_QUEUE_SEND( pxQueue )
694 #ifndef configCHECK_FOR_STACK_OVERFLOW
695 #define configCHECK_FOR_STACK_OVERFLOW 0
698 #ifndef configRECORD_STACK_HIGH_ADDRESS
699 #define configRECORD_STACK_HIGH_ADDRESS 0
702 #ifndef configINCLUDE_FREERTOS_TASK_C_ADDITIONS_H
703 #define configINCLUDE_FREERTOS_TASK_C_ADDITIONS_H 0
706 /* The following event macros are embedded in the kernel API calls. */
708 #ifndef traceMOVED_TASK_TO_READY_STATE
709 #define traceMOVED_TASK_TO_READY_STATE( pxTCB )
712 #ifndef tracePOST_MOVED_TASK_TO_READY_STATE
713 #define tracePOST_MOVED_TASK_TO_READY_STATE( pxTCB )
716 #ifndef traceMOVED_TASK_TO_DELAYED_LIST
717 #define traceMOVED_TASK_TO_DELAYED_LIST()
720 #ifndef traceMOVED_TASK_TO_OVERFLOW_DELAYED_LIST
721 #define traceMOVED_TASK_TO_OVERFLOW_DELAYED_LIST()
724 #ifndef traceQUEUE_CREATE
725 #define traceQUEUE_CREATE( pxNewQueue )
728 #ifndef traceQUEUE_CREATE_FAILED
729 #define traceQUEUE_CREATE_FAILED( ucQueueType )
732 #ifndef traceCREATE_MUTEX
733 #define traceCREATE_MUTEX( pxNewQueue )
736 #ifndef traceCREATE_MUTEX_FAILED
737 #define traceCREATE_MUTEX_FAILED()
740 #ifndef traceGIVE_MUTEX_RECURSIVE
741 #define traceGIVE_MUTEX_RECURSIVE( pxMutex )
744 #ifndef traceGIVE_MUTEX_RECURSIVE_FAILED
745 #define traceGIVE_MUTEX_RECURSIVE_FAILED( pxMutex )
748 #ifndef traceTAKE_MUTEX_RECURSIVE
749 #define traceTAKE_MUTEX_RECURSIVE( pxMutex )
752 #ifndef traceTAKE_MUTEX_RECURSIVE_FAILED
753 #define traceTAKE_MUTEX_RECURSIVE_FAILED( pxMutex )
756 #ifndef traceCREATE_COUNTING_SEMAPHORE
757 #define traceCREATE_COUNTING_SEMAPHORE()
760 #ifndef traceCREATE_COUNTING_SEMAPHORE_FAILED
761 #define traceCREATE_COUNTING_SEMAPHORE_FAILED()
764 #ifndef traceQUEUE_SET_SEND
765 #define traceQUEUE_SET_SEND traceQUEUE_SEND
768 #ifndef traceQUEUE_SEND
769 #define traceQUEUE_SEND( pxQueue )
772 #ifndef traceQUEUE_SEND_FAILED
773 #define traceQUEUE_SEND_FAILED( pxQueue )
776 #ifndef traceQUEUE_RECEIVE
777 #define traceQUEUE_RECEIVE( pxQueue )
780 #ifndef traceQUEUE_PEEK
781 #define traceQUEUE_PEEK( pxQueue )
784 #ifndef traceQUEUE_PEEK_FAILED
785 #define traceQUEUE_PEEK_FAILED( pxQueue )
788 #ifndef traceQUEUE_PEEK_FROM_ISR
789 #define traceQUEUE_PEEK_FROM_ISR( pxQueue )
792 #ifndef traceQUEUE_RECEIVE_FAILED
793 #define traceQUEUE_RECEIVE_FAILED( pxQueue )
796 #ifndef traceQUEUE_SEND_FROM_ISR
797 #define traceQUEUE_SEND_FROM_ISR( pxQueue )
800 #ifndef traceQUEUE_SEND_FROM_ISR_FAILED
801 #define traceQUEUE_SEND_FROM_ISR_FAILED( pxQueue )
804 #ifndef traceQUEUE_RECEIVE_FROM_ISR
805 #define traceQUEUE_RECEIVE_FROM_ISR( pxQueue )
808 #ifndef traceQUEUE_RECEIVE_FROM_ISR_FAILED
809 #define traceQUEUE_RECEIVE_FROM_ISR_FAILED( pxQueue )
812 #ifndef traceQUEUE_PEEK_FROM_ISR_FAILED
813 #define traceQUEUE_PEEK_FROM_ISR_FAILED( pxQueue )
816 #ifndef traceQUEUE_DELETE
817 #define traceQUEUE_DELETE( pxQueue )
820 #ifndef traceTASK_CREATE
821 #define traceTASK_CREATE( pxNewTCB )
824 #ifndef traceTASK_CREATE_FAILED
825 #define traceTASK_CREATE_FAILED()
828 #ifndef traceTASK_DELETE
829 #define traceTASK_DELETE( pxTaskToDelete )
832 #ifndef traceTASK_DELAY_UNTIL
833 #define traceTASK_DELAY_UNTIL( x )
836 #ifndef traceTASK_DELAY
837 #define traceTASK_DELAY()
840 #ifndef traceTASK_PRIORITY_SET
841 #define traceTASK_PRIORITY_SET( pxTask, uxNewPriority )
844 #ifndef traceTASK_SUSPEND
845 #define traceTASK_SUSPEND( pxTaskToSuspend )
848 #ifndef traceTASK_RESUME
849 #define traceTASK_RESUME( pxTaskToResume )
852 #ifndef traceTASK_RESUME_FROM_ISR
853 #define traceTASK_RESUME_FROM_ISR( pxTaskToResume )
856 #ifndef traceTASK_INCREMENT_TICK
857 #define traceTASK_INCREMENT_TICK( xTickCount )
860 #ifndef traceTIMER_CREATE
861 #define traceTIMER_CREATE( pxNewTimer )
864 #ifndef traceTIMER_CREATE_FAILED
865 #define traceTIMER_CREATE_FAILED()
868 #ifndef traceTIMER_COMMAND_SEND
869 #define traceTIMER_COMMAND_SEND( xTimer, xMessageID, xMessageValueValue, xReturn )
872 #ifndef traceTIMER_EXPIRED
873 #define traceTIMER_EXPIRED( pxTimer )
876 #ifndef traceTIMER_COMMAND_RECEIVED
877 #define traceTIMER_COMMAND_RECEIVED( pxTimer, xMessageID, xMessageValue )
881 #define traceMALLOC( pvAddress, uiSize )
885 #define traceFREE( pvAddress, uiSize )
888 #ifndef traceEVENT_GROUP_CREATE
889 #define traceEVENT_GROUP_CREATE( xEventGroup )
892 #ifndef traceEVENT_GROUP_CREATE_FAILED
893 #define traceEVENT_GROUP_CREATE_FAILED()
896 #ifndef traceEVENT_GROUP_SYNC_BLOCK
897 #define traceEVENT_GROUP_SYNC_BLOCK( xEventGroup, uxBitsToSet, uxBitsToWaitFor )
900 #ifndef traceEVENT_GROUP_SYNC_END
901 #define traceEVENT_GROUP_SYNC_END( xEventGroup, uxBitsToSet, uxBitsToWaitFor, xTimeoutOccurred ) ( void ) ( xTimeoutOccurred )
904 #ifndef traceEVENT_GROUP_WAIT_BITS_BLOCK
905 #define traceEVENT_GROUP_WAIT_BITS_BLOCK( xEventGroup, uxBitsToWaitFor )
908 #ifndef traceEVENT_GROUP_WAIT_BITS_END
909 #define traceEVENT_GROUP_WAIT_BITS_END( xEventGroup, uxBitsToWaitFor, xTimeoutOccurred ) ( void ) ( xTimeoutOccurred )
912 #ifndef traceEVENT_GROUP_CLEAR_BITS
913 #define traceEVENT_GROUP_CLEAR_BITS( xEventGroup, uxBitsToClear )
916 #ifndef traceEVENT_GROUP_CLEAR_BITS_FROM_ISR
917 #define traceEVENT_GROUP_CLEAR_BITS_FROM_ISR( xEventGroup, uxBitsToClear )
920 #ifndef traceEVENT_GROUP_SET_BITS
921 #define traceEVENT_GROUP_SET_BITS( xEventGroup, uxBitsToSet )
924 #ifndef traceEVENT_GROUP_SET_BITS_FROM_ISR
925 #define traceEVENT_GROUP_SET_BITS_FROM_ISR( xEventGroup, uxBitsToSet )
928 #ifndef traceEVENT_GROUP_DELETE
929 #define traceEVENT_GROUP_DELETE( xEventGroup )
932 #ifndef tracePEND_FUNC_CALL
933 #define tracePEND_FUNC_CALL( xFunctionToPend, pvParameter1, ulParameter2, ret )
936 #ifndef tracePEND_FUNC_CALL_FROM_ISR
937 #define tracePEND_FUNC_CALL_FROM_ISR( xFunctionToPend, pvParameter1, ulParameter2, ret )
940 #ifndef traceQUEUE_REGISTRY_ADD
941 #define traceQUEUE_REGISTRY_ADD( xQueue, pcQueueName )
944 #ifndef traceTASK_NOTIFY_TAKE_BLOCK
945 #define traceTASK_NOTIFY_TAKE_BLOCK( uxIndexToWait )
948 #ifndef traceTASK_NOTIFY_TAKE
949 #define traceTASK_NOTIFY_TAKE( uxIndexToWait )
952 #ifndef traceTASK_NOTIFY_WAIT_BLOCK
953 #define traceTASK_NOTIFY_WAIT_BLOCK( uxIndexToWait )
956 #ifndef traceTASK_NOTIFY_WAIT
957 #define traceTASK_NOTIFY_WAIT( uxIndexToWait )
960 #ifndef traceTASK_NOTIFY
961 #define traceTASK_NOTIFY( uxIndexToNotify )
964 #ifndef traceTASK_NOTIFY_FROM_ISR
965 #define traceTASK_NOTIFY_FROM_ISR( uxIndexToNotify )
968 #ifndef traceTASK_NOTIFY_GIVE_FROM_ISR
969 #define traceTASK_NOTIFY_GIVE_FROM_ISR( uxIndexToNotify )
972 #ifndef traceISR_EXIT_TO_SCHEDULER
973 #define traceISR_EXIT_TO_SCHEDULER()
976 #ifndef traceISR_EXIT
977 #define traceISR_EXIT()
980 #ifndef traceISR_ENTER
981 #define traceISR_ENTER()
984 #ifndef traceSTREAM_BUFFER_CREATE_FAILED
985 #define traceSTREAM_BUFFER_CREATE_FAILED( xStreamBufferType )
988 #ifndef traceSTREAM_BUFFER_CREATE_STATIC_FAILED
989 #define traceSTREAM_BUFFER_CREATE_STATIC_FAILED( xReturn, xStreamBufferType )
992 #ifndef traceSTREAM_BUFFER_CREATE
993 #define traceSTREAM_BUFFER_CREATE( pxStreamBuffer, xStreamBufferType )
996 #ifndef traceSTREAM_BUFFER_DELETE
997 #define traceSTREAM_BUFFER_DELETE( xStreamBuffer )
1000 #ifndef traceSTREAM_BUFFER_RESET
1001 #define traceSTREAM_BUFFER_RESET( xStreamBuffer )
1004 #ifndef traceSTREAM_BUFFER_RESET_FROM_ISR
1005 #define traceSTREAM_BUFFER_RESET_FROM_ISR( xStreamBuffer )
1008 #ifndef traceBLOCKING_ON_STREAM_BUFFER_SEND
1009 #define traceBLOCKING_ON_STREAM_BUFFER_SEND( xStreamBuffer )
1012 #ifndef traceSTREAM_BUFFER_SEND
1013 #define traceSTREAM_BUFFER_SEND( xStreamBuffer, xBytesSent )
1016 #ifndef traceSTREAM_BUFFER_SEND_FAILED
1017 #define traceSTREAM_BUFFER_SEND_FAILED( xStreamBuffer )
1020 #ifndef traceSTREAM_BUFFER_SEND_FROM_ISR
1021 #define traceSTREAM_BUFFER_SEND_FROM_ISR( xStreamBuffer, xBytesSent )
1024 #ifndef traceBLOCKING_ON_STREAM_BUFFER_RECEIVE
1025 #define traceBLOCKING_ON_STREAM_BUFFER_RECEIVE( xStreamBuffer )
1028 #ifndef traceSTREAM_BUFFER_RECEIVE
1029 #define traceSTREAM_BUFFER_RECEIVE( xStreamBuffer, xReceivedLength )
1032 #ifndef traceSTREAM_BUFFER_RECEIVE_FAILED
1033 #define traceSTREAM_BUFFER_RECEIVE_FAILED( xStreamBuffer )
1036 #ifndef traceSTREAM_BUFFER_RECEIVE_FROM_ISR
1037 #define traceSTREAM_BUFFER_RECEIVE_FROM_ISR( xStreamBuffer, xReceivedLength )
1040 #ifndef traceENTER_xEventGroupCreateStatic
1041 #define traceENTER_xEventGroupCreateStatic( pxEventGroupBuffer )
1044 #ifndef traceRETURN_xEventGroupCreateStatic
1045 #define traceRETURN_xEventGroupCreateStatic( pxEventBits )
1048 #ifndef traceENTER_xEventGroupCreate
1049 #define traceENTER_xEventGroupCreate()
1052 #ifndef traceRETURN_xEventGroupCreate
1053 #define traceRETURN_xEventGroupCreate( pxEventBits )
1056 #ifndef traceENTER_xEventGroupSync
1057 #define traceENTER_xEventGroupSync( xEventGroup, uxBitsToSet, uxBitsToWaitFor, xTicksToWait )
1060 #ifndef traceRETURN_xEventGroupSync
1061 #define traceRETURN_xEventGroupSync( uxReturn )
1064 #ifndef traceENTER_xEventGroupWaitBits
1065 #define traceENTER_xEventGroupWaitBits( xEventGroup, uxBitsToWaitFor, xClearOnExit, xWaitForAllBits, xTicksToWait )
1068 #ifndef traceRETURN_xEventGroupWaitBits
1069 #define traceRETURN_xEventGroupWaitBits( uxReturn )
1072 #ifndef traceENTER_xEventGroupClearBits
1073 #define traceENTER_xEventGroupClearBits( xEventGroup, uxBitsToClear )
1076 #ifndef traceRETURN_xEventGroupClearBits
1077 #define traceRETURN_xEventGroupClearBits( uxReturn )
1080 #ifndef traceENTER_xEventGroupClearBitsFromISR
1081 #define traceENTER_xEventGroupClearBitsFromISR( xEventGroup, uxBitsToClear )
1084 #ifndef traceRETURN_xEventGroupClearBitsFromISR
1085 #define traceRETURN_xEventGroupClearBitsFromISR( xReturn )
1088 #ifndef traceENTER_xEventGroupGetBitsFromISR
1089 #define traceENTER_xEventGroupGetBitsFromISR( xEventGroup )
1092 #ifndef traceRETURN_xEventGroupGetBitsFromISR
1093 #define traceRETURN_xEventGroupGetBitsFromISR( uxReturn )
1096 #ifndef traceENTER_xEventGroupSetBits
1097 #define traceENTER_xEventGroupSetBits( xEventGroup, uxBitsToSet )
1100 #ifndef traceRETURN_xEventGroupSetBits
1101 #define traceRETURN_xEventGroupSetBits( uxEventBits )
1104 #ifndef traceENTER_vEventGroupDelete
1105 #define traceENTER_vEventGroupDelete( xEventGroup )
1108 #ifndef traceRETURN_vEventGroupDelete
1109 #define traceRETURN_vEventGroupDelete()
1112 #ifndef traceENTER_xEventGroupGetStaticBuffer
1113 #define traceENTER_xEventGroupGetStaticBuffer( xEventGroup, ppxEventGroupBuffer )
1116 #ifndef traceRETURN_xEventGroupGetStaticBuffer
1117 #define traceRETURN_xEventGroupGetStaticBuffer( xReturn )
1120 #ifndef traceENTER_vEventGroupSetBitsCallback
1121 #define traceENTER_vEventGroupSetBitsCallback( pvEventGroup, ulBitsToSet )
1124 #ifndef traceRETURN_vEventGroupSetBitsCallback
1125 #define traceRETURN_vEventGroupSetBitsCallback()
1128 #ifndef traceENTER_vEventGroupClearBitsCallback
1129 #define traceENTER_vEventGroupClearBitsCallback( pvEventGroup, ulBitsToClear )
1132 #ifndef traceRETURN_vEventGroupClearBitsCallback
1133 #define traceRETURN_vEventGroupClearBitsCallback()
1136 #ifndef traceENTER_xEventGroupSetBitsFromISR
1137 #define traceENTER_xEventGroupSetBitsFromISR( xEventGroup, uxBitsToSet, pxHigherPriorityTaskWoken )
1140 #ifndef traceRETURN_xEventGroupSetBitsFromISR
1141 #define traceRETURN_xEventGroupSetBitsFromISR( xReturn )
1144 #ifndef traceENTER_uxEventGroupGetNumber
1145 #define traceENTER_uxEventGroupGetNumber( xEventGroup )
1148 #ifndef traceRETURN_uxEventGroupGetNumber
1149 #define traceRETURN_uxEventGroupGetNumber( xReturn )
1152 #ifndef traceENTER_vEventGroupSetNumber
1153 #define traceENTER_vEventGroupSetNumber( xEventGroup, uxEventGroupNumber )
1156 #ifndef traceRETURN_vEventGroupSetNumber
1157 #define traceRETURN_vEventGroupSetNumber()
1160 #ifndef traceENTER_xQueueGenericReset
1161 #define traceENTER_xQueueGenericReset( xQueue, xNewQueue )
1164 #ifndef traceRETURN_xQueueGenericReset
1165 #define traceRETURN_xQueueGenericReset( xReturn )
1168 #ifndef traceENTER_xQueueGenericCreateStatic
1169 #define traceENTER_xQueueGenericCreateStatic( uxQueueLength, uxItemSize, pucQueueStorage, pxStaticQueue, ucQueueType )
1172 #ifndef traceRETURN_xQueueGenericCreateStatic
1173 #define traceRETURN_xQueueGenericCreateStatic( pxNewQueue )
1176 #ifndef traceENTER_xQueueGenericGetStaticBuffers
1177 #define traceENTER_xQueueGenericGetStaticBuffers( xQueue, ppucQueueStorage, ppxStaticQueue )
1180 #ifndef traceRETURN_xQueueGenericGetStaticBuffers
1181 #define traceRETURN_xQueueGenericGetStaticBuffers( xReturn )
1184 #ifndef traceENTER_xQueueGenericCreate
1185 #define traceENTER_xQueueGenericCreate( uxQueueLength, uxItemSize, ucQueueType )
1188 #ifndef traceRETURN_xQueueGenericCreate
1189 #define traceRETURN_xQueueGenericCreate( pxNewQueue )
1192 #ifndef traceENTER_xQueueCreateMutex
1193 #define traceENTER_xQueueCreateMutex( ucQueueType )
1196 #ifndef traceRETURN_xQueueCreateMutex
1197 #define traceRETURN_xQueueCreateMutex( xNewQueue )
1200 #ifndef traceENTER_xQueueCreateMutexStatic
1201 #define traceENTER_xQueueCreateMutexStatic( ucQueueType, pxStaticQueue )
1204 #ifndef traceRETURN_xQueueCreateMutexStatic
1205 #define traceRETURN_xQueueCreateMutexStatic( xNewQueue )
1208 #ifndef traceENTER_xQueueGetMutexHolder
1209 #define traceENTER_xQueueGetMutexHolder( xSemaphore )
1212 #ifndef traceRETURN_xQueueGetMutexHolder
1213 #define traceRETURN_xQueueGetMutexHolder( pxReturn )
1216 #ifndef traceENTER_xQueueGetMutexHolderFromISR
1217 #define traceENTER_xQueueGetMutexHolderFromISR( xSemaphore )
1220 #ifndef traceRETURN_xQueueGetMutexHolderFromISR
1221 #define traceRETURN_xQueueGetMutexHolderFromISR( pxReturn )
1224 #ifndef traceENTER_xQueueGiveMutexRecursive
1225 #define traceENTER_xQueueGiveMutexRecursive( xMutex )
1228 #ifndef traceRETURN_xQueueGiveMutexRecursive
1229 #define traceRETURN_xQueueGiveMutexRecursive( xReturn )
1232 #ifndef traceENTER_xQueueTakeMutexRecursive
1233 #define traceENTER_xQueueTakeMutexRecursive( xMutex, xTicksToWait )
1236 #ifndef traceRETURN_xQueueTakeMutexRecursive
1237 #define traceRETURN_xQueueTakeMutexRecursive( xReturn )
1240 #ifndef traceENTER_xQueueCreateCountingSemaphoreStatic
1241 #define traceENTER_xQueueCreateCountingSemaphoreStatic( uxMaxCount, uxInitialCount, pxStaticQueue )
1244 #ifndef traceRETURN_xQueueCreateCountingSemaphoreStatic
1245 #define traceRETURN_xQueueCreateCountingSemaphoreStatic( xHandle )
1248 #ifndef traceENTER_xQueueCreateCountingSemaphore
1249 #define traceENTER_xQueueCreateCountingSemaphore( uxMaxCount, uxInitialCount )
1252 #ifndef traceRETURN_xQueueCreateCountingSemaphore
1253 #define traceRETURN_xQueueCreateCountingSemaphore( xHandle )
1256 #ifndef traceENTER_xQueueGenericSend
1257 #define traceENTER_xQueueGenericSend( xQueue, pvItemToQueue, xTicksToWait, xCopyPosition )
1260 #ifndef traceRETURN_xQueueGenericSend
1261 #define traceRETURN_xQueueGenericSend( xReturn )
1264 #ifndef traceENTER_xQueueGenericSendFromISR
1265 #define traceENTER_xQueueGenericSendFromISR( xQueue, pvItemToQueue, pxHigherPriorityTaskWoken, xCopyPosition )
1268 #ifndef traceRETURN_xQueueGenericSendFromISR
1269 #define traceRETURN_xQueueGenericSendFromISR( xReturn )
1272 #ifndef traceENTER_xQueueGiveFromISR
1273 #define traceENTER_xQueueGiveFromISR( xQueue, pxHigherPriorityTaskWoken )
1276 #ifndef traceRETURN_xQueueGiveFromISR
1277 #define traceRETURN_xQueueGiveFromISR( xReturn )
1280 #ifndef traceENTER_xQueueReceive
1281 #define traceENTER_xQueueReceive( xQueue, pvBuffer, xTicksToWait )
1284 #ifndef traceRETURN_xQueueReceive
1285 #define traceRETURN_xQueueReceive( xReturn )
1288 #ifndef traceENTER_xQueueSemaphoreTake
1289 #define traceENTER_xQueueSemaphoreTake( xQueue, xTicksToWait )
1292 #ifndef traceRETURN_xQueueSemaphoreTake
1293 #define traceRETURN_xQueueSemaphoreTake( xReturn )
1296 #ifndef traceENTER_xQueuePeek
1297 #define traceENTER_xQueuePeek( xQueue, pvBuffer, xTicksToWait )
1300 #ifndef traceRETURN_xQueuePeek
1301 #define traceRETURN_xQueuePeek( xReturn )
1304 #ifndef traceENTER_xQueueReceiveFromISR
1305 #define traceENTER_xQueueReceiveFromISR( xQueue, pvBuffer, pxHigherPriorityTaskWoken )
1308 #ifndef traceRETURN_xQueueReceiveFromISR
1309 #define traceRETURN_xQueueReceiveFromISR( xReturn )
1312 #ifndef traceENTER_xQueuePeekFromISR
1313 #define traceENTER_xQueuePeekFromISR( xQueue, pvBuffer )
1316 #ifndef traceRETURN_xQueuePeekFromISR
1317 #define traceRETURN_xQueuePeekFromISR( xReturn )
1320 #ifndef traceENTER_uxQueueMessagesWaiting
1321 #define traceENTER_uxQueueMessagesWaiting( xQueue )
1324 #ifndef traceRETURN_uxQueueMessagesWaiting
1325 #define traceRETURN_uxQueueMessagesWaiting( uxReturn )
1328 #ifndef traceENTER_uxQueueSpacesAvailable
1329 #define traceENTER_uxQueueSpacesAvailable( xQueue )
1332 #ifndef traceRETURN_uxQueueSpacesAvailable
1333 #define traceRETURN_uxQueueSpacesAvailable( uxReturn )
1336 #ifndef traceENTER_uxQueueMessagesWaitingFromISR
1337 #define traceENTER_uxQueueMessagesWaitingFromISR( xQueue )
1340 #ifndef traceRETURN_uxQueueMessagesWaitingFromISR
1341 #define traceRETURN_uxQueueMessagesWaitingFromISR( uxReturn )
1344 #ifndef traceENTER_vQueueDelete
1345 #define traceENTER_vQueueDelete( xQueue )
1348 #ifndef traceRETURN_vQueueDelete
1349 #define traceRETURN_vQueueDelete()
1352 #ifndef traceENTER_uxQueueGetQueueNumber
1353 #define traceENTER_uxQueueGetQueueNumber( xQueue )
1356 #ifndef traceRETURN_uxQueueGetQueueNumber
1357 #define traceRETURN_uxQueueGetQueueNumber( uxQueueNumber )
1360 #ifndef traceENTER_vQueueSetQueueNumber
1361 #define traceENTER_vQueueSetQueueNumber( xQueue, uxQueueNumber )
1364 #ifndef traceRETURN_vQueueSetQueueNumber
1365 #define traceRETURN_vQueueSetQueueNumber()
1368 #ifndef traceENTER_ucQueueGetQueueType
1369 #define traceENTER_ucQueueGetQueueType( xQueue )
1372 #ifndef traceRETURN_ucQueueGetQueueType
1373 #define traceRETURN_ucQueueGetQueueType( ucQueueType )
1376 #ifndef traceENTER_uxQueueGetQueueItemSize
1377 #define traceENTER_uxQueueGetQueueItemSize( xQueue )
1380 #ifndef traceRETURN_uxQueueGetQueueItemSize
1381 #define traceRETURN_uxQueueGetQueueItemSize( uxItemSize )
1384 #ifndef traceENTER_uxQueueGetQueueLength
1385 #define traceENTER_uxQueueGetQueueLength( xQueue )
1388 #ifndef traceRETURN_uxQueueGetQueueLength
1389 #define traceRETURN_uxQueueGetQueueLength( uxLength )
1392 #ifndef traceENTER_xQueueIsQueueEmptyFromISR
1393 #define traceENTER_xQueueIsQueueEmptyFromISR( xQueue )
1396 #ifndef traceRETURN_xQueueIsQueueEmptyFromISR
1397 #define traceRETURN_xQueueIsQueueEmptyFromISR( xReturn )
1400 #ifndef traceENTER_xQueueIsQueueFullFromISR
1401 #define traceENTER_xQueueIsQueueFullFromISR( xQueue )
1404 #ifndef traceRETURN_xQueueIsQueueFullFromISR
1405 #define traceRETURN_xQueueIsQueueFullFromISR( xReturn )
1408 #ifndef traceENTER_xQueueCRSend
1409 #define traceENTER_xQueueCRSend( xQueue, pvItemToQueue, xTicksToWait )
1412 #ifndef traceRETURN_xQueueCRSend
1413 #define traceRETURN_xQueueCRSend( xReturn )
1416 #ifndef traceENTER_xQueueCRReceive
1417 #define traceENTER_xQueueCRReceive( xQueue, pvBuffer, xTicksToWait )
1420 #ifndef traceRETURN_xQueueCRReceive
1421 #define traceRETURN_xQueueCRReceive( xReturn )
1424 #ifndef traceENTER_xQueueCRSendFromISR
1425 #define traceENTER_xQueueCRSendFromISR( xQueue, pvItemToQueue, xCoRoutinePreviouslyWoken )
1428 #ifndef traceRETURN_xQueueCRSendFromISR
1429 #define traceRETURN_xQueueCRSendFromISR( xCoRoutinePreviouslyWoken )
1432 #ifndef traceENTER_xQueueCRReceiveFromISR
1433 #define traceENTER_xQueueCRReceiveFromISR( xQueue, pvBuffer, pxCoRoutineWoken )
1436 #ifndef traceRETURN_xQueueCRReceiveFromISR
1437 #define traceRETURN_xQueueCRReceiveFromISR( xReturn )
1440 #ifndef traceENTER_vQueueAddToRegistry
1441 #define traceENTER_vQueueAddToRegistry( xQueue, pcQueueName )
1444 #ifndef traceRETURN_vQueueAddToRegistry
1445 #define traceRETURN_vQueueAddToRegistry()
1448 #ifndef traceENTER_pcQueueGetName
1449 #define traceENTER_pcQueueGetName( xQueue )
1452 #ifndef traceRETURN_pcQueueGetName
1453 #define traceRETURN_pcQueueGetName( pcReturn )
1456 #ifndef traceENTER_vQueueUnregisterQueue
1457 #define traceENTER_vQueueUnregisterQueue( xQueue )
1460 #ifndef traceRETURN_vQueueUnregisterQueue
1461 #define traceRETURN_vQueueUnregisterQueue()
1464 #ifndef traceENTER_vQueueWaitForMessageRestricted
1465 #define traceENTER_vQueueWaitForMessageRestricted( xQueue, xTicksToWait, xWaitIndefinitely )
1468 #ifndef traceRETURN_vQueueWaitForMessageRestricted
1469 #define traceRETURN_vQueueWaitForMessageRestricted()
1472 #ifndef traceENTER_xQueueCreateSet
1473 #define traceENTER_xQueueCreateSet( uxEventQueueLength )
1476 #ifndef traceRETURN_xQueueCreateSet
1477 #define traceRETURN_xQueueCreateSet( pxQueue )
1480 #ifndef traceENTER_xQueueAddToSet
1481 #define traceENTER_xQueueAddToSet( xQueueOrSemaphore, xQueueSet )
1484 #ifndef traceRETURN_xQueueAddToSet
1485 #define traceRETURN_xQueueAddToSet( xReturn )
1488 #ifndef traceENTER_xQueueRemoveFromSet
1489 #define traceENTER_xQueueRemoveFromSet( xQueueOrSemaphore, xQueueSet )
1492 #ifndef traceRETURN_xQueueRemoveFromSet
1493 #define traceRETURN_xQueueRemoveFromSet( xReturn )
1496 #ifndef traceENTER_xQueueSelectFromSet
1497 #define traceENTER_xQueueSelectFromSet( xQueueSet, xTicksToWait )
1500 #ifndef traceRETURN_xQueueSelectFromSet
1501 #define traceRETURN_xQueueSelectFromSet( xReturn )
1504 #ifndef traceENTER_xQueueSelectFromSetFromISR
1505 #define traceENTER_xQueueSelectFromSetFromISR( xQueueSet )
1508 #ifndef traceRETURN_xQueueSelectFromSetFromISR
1509 #define traceRETURN_xQueueSelectFromSetFromISR( xReturn )
1512 #ifndef traceENTER_xTimerCreateTimerTask
1513 #define traceENTER_xTimerCreateTimerTask()
1516 #ifndef traceRETURN_xTimerCreateTimerTask
1517 #define traceRETURN_xTimerCreateTimerTask( xReturn )
1520 #ifndef traceENTER_xTimerCreate
1521 #define traceENTER_xTimerCreate( pcTimerName, xTimerPeriodInTicks, xAutoReload, pvTimerID, pxCallbackFunction )
1524 #ifndef traceRETURN_xTimerCreate
1525 #define traceRETURN_xTimerCreate( pxNewTimer )
1528 #ifndef traceENTER_xTimerCreateStatic
1529 #define traceENTER_xTimerCreateStatic( pcTimerName, xTimerPeriodInTicks, xAutoReload, pvTimerID, pxCallbackFunction, pxTimerBuffer )
1532 #ifndef traceRETURN_xTimerCreateStatic
1533 #define traceRETURN_xTimerCreateStatic( pxNewTimer )
1536 #ifndef traceENTER_xTimerGenericCommandFromTask
1537 #define traceENTER_xTimerGenericCommandFromTask( xTimer, xCommandID, xOptionalValue, pxHigherPriorityTaskWoken, xTicksToWait )
1540 #ifndef traceRETURN_xTimerGenericCommandFromTask
1541 #define traceRETURN_xTimerGenericCommandFromTask( xReturn )
1544 #ifndef traceENTER_xTimerGenericCommandFromISR
1545 #define traceENTER_xTimerGenericCommandFromISR( xTimer, xCommandID, xOptionalValue, pxHigherPriorityTaskWoken, xTicksToWait )
1548 #ifndef traceRETURN_xTimerGenericCommandFromISR
1549 #define traceRETURN_xTimerGenericCommandFromISR( xReturn )
1552 #ifndef traceENTER_xTimerGetTimerDaemonTaskHandle
1553 #define traceENTER_xTimerGetTimerDaemonTaskHandle()
1556 #ifndef traceRETURN_xTimerGetTimerDaemonTaskHandle
1557 #define traceRETURN_xTimerGetTimerDaemonTaskHandle( xTimerTaskHandle )
1560 #ifndef traceENTER_xTimerGetPeriod
1561 #define traceENTER_xTimerGetPeriod( xTimer )
1564 #ifndef traceRETURN_xTimerGetPeriod
1565 #define traceRETURN_xTimerGetPeriod( xTimerPeriodInTicks )
1568 #ifndef traceENTER_vTimerSetReloadMode
1569 #define traceENTER_vTimerSetReloadMode( xTimer, xAutoReload )
1572 #ifndef traceRETURN_vTimerSetReloadMode
1573 #define traceRETURN_vTimerSetReloadMode()
1576 #ifndef traceENTER_xTimerGetReloadMode
1577 #define traceENTER_xTimerGetReloadMode( xTimer )
1580 #ifndef traceRETURN_xTimerGetReloadMode
1581 #define traceRETURN_xTimerGetReloadMode( xReturn )
1584 #ifndef traceENTER_uxTimerGetReloadMode
1585 #define traceENTER_uxTimerGetReloadMode( xTimer )
1588 #ifndef traceRETURN_uxTimerGetReloadMode
1589 #define traceRETURN_uxTimerGetReloadMode( uxReturn )
1592 #ifndef traceENTER_xTimerGetExpiryTime
1593 #define traceENTER_xTimerGetExpiryTime( xTimer )
1596 #ifndef traceRETURN_xTimerGetExpiryTime
1597 #define traceRETURN_xTimerGetExpiryTime( xReturn )
1600 #ifndef traceENTER_xTimerGetStaticBuffer
1601 #define traceENTER_xTimerGetStaticBuffer( xTimer, ppxTimerBuffer )
1604 #ifndef traceRETURN_xTimerGetStaticBuffer
1605 #define traceRETURN_xTimerGetStaticBuffer( xReturn )
1608 #ifndef traceENTER_pcTimerGetName
1609 #define traceENTER_pcTimerGetName( xTimer )
1612 #ifndef traceRETURN_pcTimerGetName
1613 #define traceRETURN_pcTimerGetName( pcTimerName )
1616 #ifndef traceENTER_xTimerIsTimerActive
1617 #define traceENTER_xTimerIsTimerActive( xTimer )
1620 #ifndef traceRETURN_xTimerIsTimerActive
1621 #define traceRETURN_xTimerIsTimerActive( xReturn )
1624 #ifndef traceENTER_pvTimerGetTimerID
1625 #define traceENTER_pvTimerGetTimerID( xTimer )
1628 #ifndef traceRETURN_pvTimerGetTimerID
1629 #define traceRETURN_pvTimerGetTimerID( pvReturn )
1632 #ifndef traceENTER_vTimerSetTimerID
1633 #define traceENTER_vTimerSetTimerID( xTimer, pvNewID )
1636 #ifndef traceRETURN_vTimerSetTimerID
1637 #define traceRETURN_vTimerSetTimerID()
1640 #ifndef traceENTER_xTimerPendFunctionCallFromISR
1641 #define traceENTER_xTimerPendFunctionCallFromISR( xFunctionToPend, pvParameter1, ulParameter2, pxHigherPriorityTaskWoken )
1644 #ifndef traceRETURN_xTimerPendFunctionCallFromISR
1645 #define traceRETURN_xTimerPendFunctionCallFromISR( xReturn )
1648 #ifndef traceENTER_xTimerPendFunctionCall
1649 #define traceENTER_xTimerPendFunctionCall( xFunctionToPend, pvParameter1, ulParameter2, xTicksToWait )
1652 #ifndef traceRETURN_xTimerPendFunctionCall
1653 #define traceRETURN_xTimerPendFunctionCall( xReturn )
1656 #ifndef traceENTER_uxTimerGetTimerNumber
1657 #define traceENTER_uxTimerGetTimerNumber( xTimer )
1660 #ifndef traceRETURN_uxTimerGetTimerNumber
1661 #define traceRETURN_uxTimerGetTimerNumber( uxTimerNumber )
1664 #ifndef traceENTER_vTimerSetTimerNumber
1665 #define traceENTER_vTimerSetTimerNumber( xTimer, uxTimerNumber )
1668 #ifndef traceRETURN_vTimerSetTimerNumber
1669 #define traceRETURN_vTimerSetTimerNumber()
1672 #ifndef traceENTER_xTaskCreateStatic
1673 #define traceENTER_xTaskCreateStatic( pxTaskCode, pcName, uxStackDepth, pvParameters, uxPriority, puxStackBuffer, pxTaskBuffer )
1676 #ifndef traceRETURN_xTaskCreateStatic
1677 #define traceRETURN_xTaskCreateStatic( xReturn )
1680 #ifndef traceENTER_xTaskCreateStaticAffinitySet
1681 #define traceENTER_xTaskCreateStaticAffinitySet( pxTaskCode, pcName, uxStackDepth, pvParameters, uxPriority, puxStackBuffer, pxTaskBuffer, uxCoreAffinityMask )
1684 #ifndef traceRETURN_xTaskCreateStaticAffinitySet
1685 #define traceRETURN_xTaskCreateStaticAffinitySet( xReturn )
1688 #ifndef traceENTER_xTaskCreateRestrictedStatic
1689 #define traceENTER_xTaskCreateRestrictedStatic( pxTaskDefinition, pxCreatedTask )
1692 #ifndef traceRETURN_xTaskCreateRestrictedStatic
1693 #define traceRETURN_xTaskCreateRestrictedStatic( xReturn )
1696 #ifndef traceENTER_xTaskCreateRestrictedStaticAffinitySet
1697 #define traceENTER_xTaskCreateRestrictedStaticAffinitySet( pxTaskDefinition, uxCoreAffinityMask, pxCreatedTask )
1700 #ifndef traceRETURN_xTaskCreateRestrictedStaticAffinitySet
1701 #define traceRETURN_xTaskCreateRestrictedStaticAffinitySet( xReturn )
1704 #ifndef traceENTER_xTaskCreateRestricted
1705 #define traceENTER_xTaskCreateRestricted( pxTaskDefinition, pxCreatedTask )
1708 #ifndef traceRETURN_xTaskCreateRestricted
1709 #define traceRETURN_xTaskCreateRestricted( xReturn )
1712 #ifndef traceENTER_xTaskCreateRestrictedAffinitySet
1713 #define traceENTER_xTaskCreateRestrictedAffinitySet( pxTaskDefinition, uxCoreAffinityMask, pxCreatedTask )
1716 #ifndef traceRETURN_xTaskCreateRestrictedAffinitySet
1717 #define traceRETURN_xTaskCreateRestrictedAffinitySet( xReturn )
1720 #ifndef traceENTER_xTaskCreate
1721 #define traceENTER_xTaskCreate( pxTaskCode, pcName, uxStackDepth, pvParameters, uxPriority, pxCreatedTask )
1724 #ifndef traceRETURN_xTaskCreate
1725 #define traceRETURN_xTaskCreate( xReturn )
1728 #ifndef traceENTER_xTaskCreateAffinitySet
1729 #define traceENTER_xTaskCreateAffinitySet( pxTaskCode, pcName, uxStackDepth, pvParameters, uxPriority, uxCoreAffinityMask, pxCreatedTask )
1732 #ifndef traceRETURN_xTaskCreateAffinitySet
1733 #define traceRETURN_xTaskCreateAffinitySet( xReturn )
1736 #ifndef traceENTER_vTaskDelete
1737 #define traceENTER_vTaskDelete( xTaskToDelete )
1740 #ifndef traceRETURN_vTaskDelete
1741 #define traceRETURN_vTaskDelete()
1744 #ifndef traceENTER_xTaskDelayUntil
1745 #define traceENTER_xTaskDelayUntil( pxPreviousWakeTime, xTimeIncrement )
1748 #ifndef traceRETURN_xTaskDelayUntil
1749 #define traceRETURN_xTaskDelayUntil( xShouldDelay )
1752 #ifndef traceENTER_vTaskDelay
1753 #define traceENTER_vTaskDelay( xTicksToDelay )
1756 #ifndef traceRETURN_vTaskDelay
1757 #define traceRETURN_vTaskDelay()
1760 #ifndef traceENTER_eTaskGetState
1761 #define traceENTER_eTaskGetState( xTask )
1764 #ifndef traceRETURN_eTaskGetState
1765 #define traceRETURN_eTaskGetState( eReturn )
1768 #ifndef traceENTER_uxTaskPriorityGet
1769 #define traceENTER_uxTaskPriorityGet( xTask )
1772 #ifndef traceRETURN_uxTaskPriorityGet
1773 #define traceRETURN_uxTaskPriorityGet( uxReturn )
1776 #ifndef traceENTER_uxTaskPriorityGetFromISR
1777 #define traceENTER_uxTaskPriorityGetFromISR( xTask )
1780 #ifndef traceRETURN_uxTaskPriorityGetFromISR
1781 #define traceRETURN_uxTaskPriorityGetFromISR( uxReturn )
1784 #ifndef traceENTER_uxTaskBasePriorityGet
1785 #define traceENTER_uxTaskBasePriorityGet( xTask )
1788 #ifndef traceRETURN_uxTaskBasePriorityGet
1789 #define traceRETURN_uxTaskBasePriorityGet( uxReturn )
1792 #ifndef traceENTER_uxTaskBasePriorityGetFromISR
1793 #define traceENTER_uxTaskBasePriorityGetFromISR( xTask )
1796 #ifndef traceRETURN_uxTaskBasePriorityGetFromISR
1797 #define traceRETURN_uxTaskBasePriorityGetFromISR( uxReturn )
1800 #ifndef traceENTER_vTaskPrioritySet
1801 #define traceENTER_vTaskPrioritySet( xTask, uxNewPriority )
1804 #ifndef traceRETURN_vTaskPrioritySet
1805 #define traceRETURN_vTaskPrioritySet()
1808 #ifndef traceENTER_vTaskCoreAffinitySet
1809 #define traceENTER_vTaskCoreAffinitySet( xTask, uxCoreAffinityMask )
1812 #ifndef traceRETURN_vTaskCoreAffinitySet
1813 #define traceRETURN_vTaskCoreAffinitySet()
1816 #ifndef traceENTER_vTaskCoreAffinityGet
1817 #define traceENTER_vTaskCoreAffinityGet( xTask )
1820 #ifndef traceRETURN_vTaskCoreAffinityGet
1821 #define traceRETURN_vTaskCoreAffinityGet( uxCoreAffinityMask )
1824 #ifndef traceENTER_vTaskPreemptionDisable
1825 #define traceENTER_vTaskPreemptionDisable( xTask )
1828 #ifndef traceRETURN_vTaskPreemptionDisable
1829 #define traceRETURN_vTaskPreemptionDisable()
1832 #ifndef traceENTER_vTaskPreemptionEnable
1833 #define traceENTER_vTaskPreemptionEnable( xTask )
1836 #ifndef traceRETURN_vTaskPreemptionEnable
1837 #define traceRETURN_vTaskPreemptionEnable()
1840 #ifndef traceENTER_vTaskSuspend
1841 #define traceENTER_vTaskSuspend( xTaskToSuspend )
1844 #ifndef traceRETURN_vTaskSuspend
1845 #define traceRETURN_vTaskSuspend()
1848 #ifndef traceENTER_vTaskResume
1849 #define traceENTER_vTaskResume( xTaskToResume )
1852 #ifndef traceRETURN_vTaskResume
1853 #define traceRETURN_vTaskResume()
1856 #ifndef traceENTER_xTaskResumeFromISR
1857 #define traceENTER_xTaskResumeFromISR( xTaskToResume )
1860 #ifndef traceRETURN_xTaskResumeFromISR
1861 #define traceRETURN_xTaskResumeFromISR( xYieldRequired )
1864 #ifndef traceENTER_vTaskStartScheduler
1865 #define traceENTER_vTaskStartScheduler()
1868 #ifndef traceRETURN_vTaskStartScheduler
1869 #define traceRETURN_vTaskStartScheduler()
1872 #ifndef traceENTER_vTaskEndScheduler
1873 #define traceENTER_vTaskEndScheduler()
1876 #ifndef traceRETURN_vTaskEndScheduler
1877 #define traceRETURN_vTaskEndScheduler()
1880 #ifndef traceENTER_vTaskSuspendAll
1881 #define traceENTER_vTaskSuspendAll()
1884 #ifndef traceRETURN_vTaskSuspendAll
1885 #define traceRETURN_vTaskSuspendAll()
1888 #ifndef traceENTER_xTaskResumeAll
1889 #define traceENTER_xTaskResumeAll()
1892 #ifndef traceRETURN_xTaskResumeAll
1893 #define traceRETURN_xTaskResumeAll( xAlreadyYielded )
1896 #ifndef traceENTER_xTaskGetTickCount
1897 #define traceENTER_xTaskGetTickCount()
1900 #ifndef traceRETURN_xTaskGetTickCount
1901 #define traceRETURN_xTaskGetTickCount( xTicks )
1904 #ifndef traceENTER_xTaskGetTickCountFromISR
1905 #define traceENTER_xTaskGetTickCountFromISR()
1908 #ifndef traceRETURN_xTaskGetTickCountFromISR
1909 #define traceRETURN_xTaskGetTickCountFromISR( xReturn )
1912 #ifndef traceENTER_uxTaskGetNumberOfTasks
1913 #define traceENTER_uxTaskGetNumberOfTasks()
1916 #ifndef traceRETURN_uxTaskGetNumberOfTasks
1917 #define traceRETURN_uxTaskGetNumberOfTasks( uxCurrentNumberOfTasks )
1920 #ifndef traceENTER_pcTaskGetName
1921 #define traceENTER_pcTaskGetName( xTaskToQuery )
1924 #ifndef traceRETURN_pcTaskGetName
1925 #define traceRETURN_pcTaskGetName( pcTaskName )
1928 #ifndef traceENTER_xTaskGetHandle
1929 #define traceENTER_xTaskGetHandle( pcNameToQuery )
1932 #ifndef traceRETURN_xTaskGetHandle
1933 #define traceRETURN_xTaskGetHandle( pxTCB )
1936 #ifndef traceENTER_xTaskGetStaticBuffers
1937 #define traceENTER_xTaskGetStaticBuffers( xTask, ppuxStackBuffer, ppxTaskBuffer )
1940 #ifndef traceRETURN_xTaskGetStaticBuffers
1941 #define traceRETURN_xTaskGetStaticBuffers( xReturn )
1944 #ifndef traceENTER_uxTaskGetSystemState
1945 #define traceENTER_uxTaskGetSystemState( pxTaskStatusArray, uxArraySize, pulTotalRunTime )
1948 #ifndef traceRETURN_uxTaskGetSystemState
1949 #define traceRETURN_uxTaskGetSystemState( uxTask )
1952 #if ( configNUMBER_OF_CORES == 1 )
1953 #ifndef traceENTER_xTaskGetIdleTaskHandle
1954 #define traceENTER_xTaskGetIdleTaskHandle()
1958 #if ( configNUMBER_OF_CORES == 1 )
1959 #ifndef traceRETURN_xTaskGetIdleTaskHandle
1960 #define traceRETURN_xTaskGetIdleTaskHandle( xIdleTaskHandle )
1964 #ifndef traceENTER_xTaskGetIdleTaskHandleForCore
1965 #define traceENTER_xTaskGetIdleTaskHandleForCore( xCoreID )
1968 #ifndef traceRETURN_xTaskGetIdleTaskHandleForCore
1969 #define traceRETURN_xTaskGetIdleTaskHandleForCore( xIdleTaskHandle )
1972 #ifndef traceENTER_vTaskStepTick
1973 #define traceENTER_vTaskStepTick( xTicksToJump )
1976 #ifndef traceRETURN_vTaskStepTick
1977 #define traceRETURN_vTaskStepTick()
1980 #ifndef traceENTER_xTaskCatchUpTicks
1981 #define traceENTER_xTaskCatchUpTicks( xTicksToCatchUp )
1984 #ifndef traceRETURN_xTaskCatchUpTicks
1985 #define traceRETURN_xTaskCatchUpTicks( xYieldOccurred )
1988 #ifndef traceENTER_xTaskAbortDelay
1989 #define traceENTER_xTaskAbortDelay( xTask )
1992 #ifndef traceRETURN_xTaskAbortDelay
1993 #define traceRETURN_xTaskAbortDelay( xReturn )
1996 #ifndef traceENTER_xTaskIncrementTick
1997 #define traceENTER_xTaskIncrementTick()
2000 #ifndef traceRETURN_xTaskIncrementTick
2001 #define traceRETURN_xTaskIncrementTick( xSwitchRequired )
2004 #ifndef traceENTER_vTaskSetApplicationTaskTag
2005 #define traceENTER_vTaskSetApplicationTaskTag( xTask, pxHookFunction )
2008 #ifndef traceRETURN_vTaskSetApplicationTaskTag
2009 #define traceRETURN_vTaskSetApplicationTaskTag()
2012 #ifndef traceENTER_xTaskGetApplicationTaskTag
2013 #define traceENTER_xTaskGetApplicationTaskTag( xTask )
2016 #ifndef traceRETURN_xTaskGetApplicationTaskTag
2017 #define traceRETURN_xTaskGetApplicationTaskTag( xReturn )
2020 #ifndef traceENTER_xTaskGetApplicationTaskTagFromISR
2021 #define traceENTER_xTaskGetApplicationTaskTagFromISR( xTask )
2024 #ifndef traceRETURN_xTaskGetApplicationTaskTagFromISR
2025 #define traceRETURN_xTaskGetApplicationTaskTagFromISR( xReturn )
2028 #ifndef traceENTER_xTaskCallApplicationTaskHook
2029 #define traceENTER_xTaskCallApplicationTaskHook( xTask, pvParameter )
2032 #ifndef traceRETURN_xTaskCallApplicationTaskHook
2033 #define traceRETURN_xTaskCallApplicationTaskHook( xReturn )
2036 #ifndef traceENTER_vTaskSwitchContext
2037 #define traceENTER_vTaskSwitchContext()
2040 #ifndef traceRETURN_vTaskSwitchContext
2041 #define traceRETURN_vTaskSwitchContext()
2044 #ifndef traceENTER_vTaskPlaceOnEventList
2045 #define traceENTER_vTaskPlaceOnEventList( pxEventList, xTicksToWait )
2048 #ifndef traceRETURN_vTaskPlaceOnEventList
2049 #define traceRETURN_vTaskPlaceOnEventList()
2052 #ifndef traceENTER_vTaskPlaceOnUnorderedEventList
2053 #define traceENTER_vTaskPlaceOnUnorderedEventList( pxEventList, xItemValue, xTicksToWait )
2056 #ifndef traceRETURN_vTaskPlaceOnUnorderedEventList
2057 #define traceRETURN_vTaskPlaceOnUnorderedEventList()
2060 #ifndef traceENTER_vTaskPlaceOnEventListRestricted
2061 #define traceENTER_vTaskPlaceOnEventListRestricted( pxEventList, xTicksToWait, xWaitIndefinitely )
2064 #ifndef traceRETURN_vTaskPlaceOnEventListRestricted
2065 #define traceRETURN_vTaskPlaceOnEventListRestricted()
2068 #ifndef traceENTER_xTaskRemoveFromEventList
2069 #define traceENTER_xTaskRemoveFromEventList( pxEventList )
2072 #ifndef traceRETURN_xTaskRemoveFromEventList
2073 #define traceRETURN_xTaskRemoveFromEventList( xReturn )
2076 #ifndef traceENTER_vTaskRemoveFromUnorderedEventList
2077 #define traceENTER_vTaskRemoveFromUnorderedEventList( pxEventListItem, xItemValue )
2080 #ifndef traceRETURN_vTaskRemoveFromUnorderedEventList
2081 #define traceRETURN_vTaskRemoveFromUnorderedEventList()
2084 #ifndef traceENTER_vTaskSetTimeOutState
2085 #define traceENTER_vTaskSetTimeOutState( pxTimeOut )
2088 #ifndef traceRETURN_vTaskSetTimeOutState
2089 #define traceRETURN_vTaskSetTimeOutState()
2092 #ifndef traceENTER_vTaskInternalSetTimeOutState
2093 #define traceENTER_vTaskInternalSetTimeOutState( pxTimeOut )
2096 #ifndef traceRETURN_vTaskInternalSetTimeOutState
2097 #define traceRETURN_vTaskInternalSetTimeOutState()
2100 #ifndef traceENTER_xTaskCheckForTimeOut
2101 #define traceENTER_xTaskCheckForTimeOut( pxTimeOut, pxTicksToWait )
2104 #ifndef traceRETURN_xTaskCheckForTimeOut
2105 #define traceRETURN_xTaskCheckForTimeOut( xReturn )
2108 #ifndef traceENTER_vTaskMissedYield
2109 #define traceENTER_vTaskMissedYield()
2112 #ifndef traceRETURN_vTaskMissedYield
2113 #define traceRETURN_vTaskMissedYield()
2116 #ifndef traceENTER_uxTaskGetTaskNumber
2117 #define traceENTER_uxTaskGetTaskNumber( xTask )
2120 #ifndef traceRETURN_uxTaskGetTaskNumber
2121 #define traceRETURN_uxTaskGetTaskNumber( uxReturn )
2124 #ifndef traceENTER_vTaskSetTaskNumber
2125 #define traceENTER_vTaskSetTaskNumber( xTask, uxHandle )
2128 #ifndef traceRETURN_vTaskSetTaskNumber
2129 #define traceRETURN_vTaskSetTaskNumber()
2132 #ifndef traceENTER_eTaskConfirmSleepModeStatus
2133 #define traceENTER_eTaskConfirmSleepModeStatus()
2136 #ifndef traceRETURN_eTaskConfirmSleepModeStatus
2137 #define traceRETURN_eTaskConfirmSleepModeStatus( eReturn )
2140 #ifndef traceENTER_vTaskSetThreadLocalStoragePointer
2141 #define traceENTER_vTaskSetThreadLocalStoragePointer( xTaskToSet, xIndex, pvValue )
2144 #ifndef traceRETURN_vTaskSetThreadLocalStoragePointer
2145 #define traceRETURN_vTaskSetThreadLocalStoragePointer()
2148 #ifndef traceENTER_pvTaskGetThreadLocalStoragePointer
2149 #define traceENTER_pvTaskGetThreadLocalStoragePointer( xTaskToQuery, xIndex )
2152 #ifndef traceRETURN_pvTaskGetThreadLocalStoragePointer
2153 #define traceRETURN_pvTaskGetThreadLocalStoragePointer( pvReturn )
2156 #ifndef traceENTER_vTaskAllocateMPURegions
2157 #define traceENTER_vTaskAllocateMPURegions( xTaskToModify, pxRegions )
2160 #ifndef traceRETURN_vTaskAllocateMPURegions
2161 #define traceRETURN_vTaskAllocateMPURegions()
2164 #ifndef traceENTER_vTaskGetInfo
2165 #define traceENTER_vTaskGetInfo( xTask, pxTaskStatus, xGetFreeStackSpace, eState )
2168 #ifndef traceRETURN_vTaskGetInfo
2169 #define traceRETURN_vTaskGetInfo()
2172 #ifndef traceENTER_uxTaskGetStackHighWaterMark2
2173 #define traceENTER_uxTaskGetStackHighWaterMark2( xTask )
2176 #ifndef traceRETURN_uxTaskGetStackHighWaterMark2
2177 #define traceRETURN_uxTaskGetStackHighWaterMark2( uxReturn )
2180 #ifndef traceENTER_uxTaskGetStackHighWaterMark
2181 #define traceENTER_uxTaskGetStackHighWaterMark( xTask )
2184 #ifndef traceRETURN_uxTaskGetStackHighWaterMark
2185 #define traceRETURN_uxTaskGetStackHighWaterMark( uxReturn )
2188 #ifndef traceENTER_xTaskGetCurrentTaskHandle
2189 #define traceENTER_xTaskGetCurrentTaskHandle()
2192 #ifndef traceRETURN_xTaskGetCurrentTaskHandle
2193 #define traceRETURN_xTaskGetCurrentTaskHandle( xReturn )
2196 #ifndef traceENTER_xTaskGetCurrentTaskHandleForCore
2197 #define traceENTER_xTaskGetCurrentTaskHandleForCore( xCoreID )
2200 #ifndef traceRETURN_xTaskGetCurrentTaskHandleForCore
2201 #define traceRETURN_xTaskGetCurrentTaskHandleForCore( xReturn )
2204 #ifndef traceENTER_xTaskGetSchedulerState
2205 #define traceENTER_xTaskGetSchedulerState()
2208 #ifndef traceRETURN_xTaskGetSchedulerState
2209 #define traceRETURN_xTaskGetSchedulerState( xReturn )
2212 #ifndef traceENTER_xTaskPriorityInherit
2213 #define traceENTER_xTaskPriorityInherit( pxMutexHolder )
2216 #ifndef traceRETURN_xTaskPriorityInherit
2217 #define traceRETURN_xTaskPriorityInherit( xReturn )
2220 #ifndef traceENTER_xTaskPriorityDisinherit
2221 #define traceENTER_xTaskPriorityDisinherit( pxMutexHolder )
2224 #ifndef traceRETURN_xTaskPriorityDisinherit
2225 #define traceRETURN_xTaskPriorityDisinherit( xReturn )
2228 #ifndef traceENTER_vTaskPriorityDisinheritAfterTimeout
2229 #define traceENTER_vTaskPriorityDisinheritAfterTimeout( pxMutexHolder, uxHighestPriorityWaitingTask )
2232 #ifndef traceRETURN_vTaskPriorityDisinheritAfterTimeout
2233 #define traceRETURN_vTaskPriorityDisinheritAfterTimeout()
2236 #ifndef traceENTER_vTaskYieldWithinAPI
2237 #define traceENTER_vTaskYieldWithinAPI()
2240 #ifndef traceRETURN_vTaskYieldWithinAPI
2241 #define traceRETURN_vTaskYieldWithinAPI()
2244 #ifndef traceENTER_vTaskEnterCritical
2245 #define traceENTER_vTaskEnterCritical()
2248 #ifndef traceRETURN_vTaskEnterCritical
2249 #define traceRETURN_vTaskEnterCritical()
2252 #ifndef traceENTER_vTaskEnterCriticalFromISR
2253 #define traceENTER_vTaskEnterCriticalFromISR()
2256 #ifndef traceRETURN_vTaskEnterCriticalFromISR
2257 #define traceRETURN_vTaskEnterCriticalFromISR( uxSavedInterruptStatus )
2260 #ifndef traceENTER_vTaskExitCritical
2261 #define traceENTER_vTaskExitCritical()
2264 #ifndef traceRETURN_vTaskExitCritical
2265 #define traceRETURN_vTaskExitCritical()
2268 #ifndef traceENTER_vTaskExitCriticalFromISR
2269 #define traceENTER_vTaskExitCriticalFromISR( uxSavedInterruptStatus )
2272 #ifndef traceRETURN_vTaskExitCriticalFromISR
2273 #define traceRETURN_vTaskExitCriticalFromISR()
2276 #ifndef traceENTER_vTaskListTasks
2277 #define traceENTER_vTaskListTasks( pcWriteBuffer, uxBufferLength )
2280 #ifndef traceRETURN_vTaskListTasks
2281 #define traceRETURN_vTaskListTasks()
2284 #ifndef traceENTER_vTaskGetRunTimeStatistics
2285 #define traceENTER_vTaskGetRunTimeStatistics( pcWriteBuffer, uxBufferLength )
2288 #ifndef traceRETURN_vTaskGetRunTimeStatistics
2289 #define traceRETURN_vTaskGetRunTimeStatistics()
2292 #ifndef traceENTER_uxTaskResetEventItemValue
2293 #define traceENTER_uxTaskResetEventItemValue()
2296 #ifndef traceRETURN_uxTaskResetEventItemValue
2297 #define traceRETURN_uxTaskResetEventItemValue( uxReturn )
2300 #ifndef traceENTER_pvTaskIncrementMutexHeldCount
2301 #define traceENTER_pvTaskIncrementMutexHeldCount()
2304 #ifndef traceRETURN_pvTaskIncrementMutexHeldCount
2305 #define traceRETURN_pvTaskIncrementMutexHeldCount( pxTCB )
2308 #ifndef traceENTER_ulTaskGenericNotifyTake
2309 #define traceENTER_ulTaskGenericNotifyTake( uxIndexToWaitOn, xClearCountOnExit, xTicksToWait )
2312 #ifndef traceRETURN_ulTaskGenericNotifyTake
2313 #define traceRETURN_ulTaskGenericNotifyTake( ulReturn )
2316 #ifndef traceENTER_xTaskGenericNotifyWait
2317 #define traceENTER_xTaskGenericNotifyWait( uxIndexToWaitOn, ulBitsToClearOnEntry, ulBitsToClearOnExit, pulNotificationValue, xTicksToWait )
2320 #ifndef traceRETURN_xTaskGenericNotifyWait
2321 #define traceRETURN_xTaskGenericNotifyWait( xReturn )
2324 #ifndef traceENTER_xTaskGenericNotify
2325 #define traceENTER_xTaskGenericNotify( xTaskToNotify, uxIndexToNotify, ulValue, eAction, pulPreviousNotificationValue )
2328 #ifndef traceRETURN_xTaskGenericNotify
2329 #define traceRETURN_xTaskGenericNotify( xReturn )
2332 #ifndef traceENTER_xTaskGenericNotifyFromISR
2333 #define traceENTER_xTaskGenericNotifyFromISR( xTaskToNotify, uxIndexToNotify, ulValue, eAction, pulPreviousNotificationValue, pxHigherPriorityTaskWoken )
2336 #ifndef traceRETURN_xTaskGenericNotifyFromISR
2337 #define traceRETURN_xTaskGenericNotifyFromISR( xReturn )
2340 #ifndef traceENTER_vTaskGenericNotifyGiveFromISR
2341 #define traceENTER_vTaskGenericNotifyGiveFromISR( xTaskToNotify, uxIndexToNotify, pxHigherPriorityTaskWoken )
2344 #ifndef traceRETURN_vTaskGenericNotifyGiveFromISR
2345 #define traceRETURN_vTaskGenericNotifyGiveFromISR()
2348 #ifndef traceENTER_xTaskGenericNotifyStateClear
2349 #define traceENTER_xTaskGenericNotifyStateClear( xTask, uxIndexToClear )
2352 #ifndef traceRETURN_xTaskGenericNotifyStateClear
2353 #define traceRETURN_xTaskGenericNotifyStateClear( xReturn )
2356 #ifndef traceENTER_ulTaskGenericNotifyValueClear
2357 #define traceENTER_ulTaskGenericNotifyValueClear( xTask, uxIndexToClear, ulBitsToClear )
2360 #ifndef traceRETURN_ulTaskGenericNotifyValueClear
2361 #define traceRETURN_ulTaskGenericNotifyValueClear( ulReturn )
2364 #ifndef traceENTER_ulTaskGetRunTimeCounter
2365 #define traceENTER_ulTaskGetRunTimeCounter( xTask )
2368 #ifndef traceRETURN_ulTaskGetRunTimeCounter
2369 #define traceRETURN_ulTaskGetRunTimeCounter( ulRunTimeCounter )
2372 #ifndef traceENTER_ulTaskGetRunTimePercent
2373 #define traceENTER_ulTaskGetRunTimePercent( xTask )
2376 #ifndef traceRETURN_ulTaskGetRunTimePercent
2377 #define traceRETURN_ulTaskGetRunTimePercent( ulReturn )
2380 #ifndef traceENTER_ulTaskGetIdleRunTimeCounter
2381 #define traceENTER_ulTaskGetIdleRunTimeCounter()
2384 #ifndef traceRETURN_ulTaskGetIdleRunTimeCounter
2385 #define traceRETURN_ulTaskGetIdleRunTimeCounter( ulReturn )
2388 #ifndef traceENTER_ulTaskGetIdleRunTimePercent
2389 #define traceENTER_ulTaskGetIdleRunTimePercent()
2392 #ifndef traceRETURN_ulTaskGetIdleRunTimePercent
2393 #define traceRETURN_ulTaskGetIdleRunTimePercent( ulReturn )
2396 #ifndef traceENTER_xTaskGetMPUSettings
2397 #define traceENTER_xTaskGetMPUSettings( xTask )
2400 #ifndef traceRETURN_xTaskGetMPUSettings
2401 #define traceRETURN_xTaskGetMPUSettings( xMPUSettings )
2404 #ifndef traceENTER_xStreamBufferGenericCreate
2405 #define traceENTER_xStreamBufferGenericCreate( xBufferSizeBytes, xTriggerLevelBytes, xStreamBufferType, pxSendCompletedCallback, pxReceiveCompletedCallback )
2408 #ifndef traceRETURN_xStreamBufferGenericCreate
2409 #define traceRETURN_xStreamBufferGenericCreate( pvAllocatedMemory )
2412 #ifndef traceENTER_xStreamBufferGenericCreateStatic
2413 #define traceENTER_xStreamBufferGenericCreateStatic( xBufferSizeBytes, xTriggerLevelBytes, xStreamBufferType, pucStreamBufferStorageArea, pxStaticStreamBuffer, pxSendCompletedCallback, pxReceiveCompletedCallback )
2416 #ifndef traceRETURN_xStreamBufferGenericCreateStatic
2417 #define traceRETURN_xStreamBufferGenericCreateStatic( xReturn )
2420 #ifndef traceENTER_xStreamBufferGetStaticBuffers
2421 #define traceENTER_xStreamBufferGetStaticBuffers( xStreamBuffer, ppucStreamBufferStorageArea, ppxStaticStreamBuffer )
2424 #ifndef traceRETURN_xStreamBufferGetStaticBuffers
2425 #define traceRETURN_xStreamBufferGetStaticBuffers( xReturn )
2428 #ifndef traceENTER_vStreamBufferDelete
2429 #define traceENTER_vStreamBufferDelete( xStreamBuffer )
2432 #ifndef traceRETURN_vStreamBufferDelete
2433 #define traceRETURN_vStreamBufferDelete()
2436 #ifndef traceENTER_xStreamBufferReset
2437 #define traceENTER_xStreamBufferReset( xStreamBuffer )
2440 #ifndef traceRETURN_xStreamBufferReset
2441 #define traceRETURN_xStreamBufferReset( xReturn )
2444 #ifndef traceENTER_xStreamBufferResetFromISR
2445 #define traceENTER_xStreamBufferResetFromISR( xStreamBuffer )
2448 #ifndef traceRETURN_xStreamBufferResetFromISR
2449 #define traceRETURN_xStreamBufferResetFromISR( xReturn )
2452 #ifndef traceENTER_xStreamBufferSetTriggerLevel
2453 #define traceENTER_xStreamBufferSetTriggerLevel( xStreamBuffer, xTriggerLevel )
2456 #ifndef traceRETURN_xStreamBufferSetTriggerLevel
2457 #define traceRETURN_xStreamBufferSetTriggerLevel( xReturn )
2460 #ifndef traceENTER_xStreamBufferSpacesAvailable
2461 #define traceENTER_xStreamBufferSpacesAvailable( xStreamBuffer )
2464 #ifndef traceRETURN_xStreamBufferSpacesAvailable
2465 #define traceRETURN_xStreamBufferSpacesAvailable( xSpace )
2468 #ifndef traceENTER_xStreamBufferBytesAvailable
2469 #define traceENTER_xStreamBufferBytesAvailable( xStreamBuffer )
2472 #ifndef traceRETURN_xStreamBufferBytesAvailable
2473 #define traceRETURN_xStreamBufferBytesAvailable( xReturn )
2476 #ifndef traceENTER_xStreamBufferSend
2477 #define traceENTER_xStreamBufferSend( xStreamBuffer, pvTxData, xDataLengthBytes, xTicksToWait )
2480 #ifndef traceRETURN_xStreamBufferSend
2481 #define traceRETURN_xStreamBufferSend( xReturn )
2484 #ifndef traceENTER_xStreamBufferSendFromISR
2485 #define traceENTER_xStreamBufferSendFromISR( xStreamBuffer, pvTxData, xDataLengthBytes, pxHigherPriorityTaskWoken )
2488 #ifndef traceRETURN_xStreamBufferSendFromISR
2489 #define traceRETURN_xStreamBufferSendFromISR( xReturn )
2492 #ifndef traceENTER_xStreamBufferReceive
2493 #define traceENTER_xStreamBufferReceive( xStreamBuffer, pvRxData, xBufferLengthBytes, xTicksToWait )
2496 #ifndef traceRETURN_xStreamBufferReceive
2497 #define traceRETURN_xStreamBufferReceive( xReceivedLength )
2500 #ifndef traceENTER_xStreamBufferNextMessageLengthBytes
2501 #define traceENTER_xStreamBufferNextMessageLengthBytes( xStreamBuffer )
2504 #ifndef traceRETURN_xStreamBufferNextMessageLengthBytes
2505 #define traceRETURN_xStreamBufferNextMessageLengthBytes( xReturn )
2508 #ifndef traceENTER_xStreamBufferReceiveFromISR
2509 #define traceENTER_xStreamBufferReceiveFromISR( xStreamBuffer, pvRxData, xBufferLengthBytes, pxHigherPriorityTaskWoken )
2512 #ifndef traceRETURN_xStreamBufferReceiveFromISR
2513 #define traceRETURN_xStreamBufferReceiveFromISR( xReceivedLength )
2516 #ifndef traceENTER_xStreamBufferIsEmpty
2517 #define traceENTER_xStreamBufferIsEmpty( xStreamBuffer )
2520 #ifndef traceRETURN_xStreamBufferIsEmpty
2521 #define traceRETURN_xStreamBufferIsEmpty( xReturn )
2524 #ifndef traceENTER_xStreamBufferIsFull
2525 #define traceENTER_xStreamBufferIsFull( xStreamBuffer )
2528 #ifndef traceRETURN_xStreamBufferIsFull
2529 #define traceRETURN_xStreamBufferIsFull( xReturn )
2532 #ifndef traceENTER_xStreamBufferSendCompletedFromISR
2533 #define traceENTER_xStreamBufferSendCompletedFromISR( xStreamBuffer, pxHigherPriorityTaskWoken )
2536 #ifndef traceRETURN_xStreamBufferSendCompletedFromISR
2537 #define traceRETURN_xStreamBufferSendCompletedFromISR( xReturn )
2540 #ifndef traceENTER_xStreamBufferReceiveCompletedFromISR
2541 #define traceENTER_xStreamBufferReceiveCompletedFromISR( xStreamBuffer, pxHigherPriorityTaskWoken )
2544 #ifndef traceRETURN_xStreamBufferReceiveCompletedFromISR
2545 #define traceRETURN_xStreamBufferReceiveCompletedFromISR( xReturn )
2548 #ifndef traceENTER_uxStreamBufferGetStreamBufferNotificationIndex
2549 #define traceENTER_uxStreamBufferGetStreamBufferNotificationIndex( xStreamBuffer )
2552 #ifndef traceRETURN_uxStreamBufferGetStreamBufferNotificationIndex
2553 #define traceRETURN_uxStreamBufferGetStreamBufferNotificationIndex( uxNotificationIndex )
2556 #ifndef traceENTER_vStreamBufferSetStreamBufferNotificationIndex
2557 #define traceENTER_vStreamBufferSetStreamBufferNotificationIndex( xStreamBuffer, uxNotificationIndex )
2560 #ifndef traceRETURN_vStreamBufferSetStreamBufferNotificationIndex
2561 #define traceRETURN_vStreamBufferSetStreamBufferNotificationIndex()
2564 #ifndef traceENTER_uxStreamBufferGetStreamBufferNumber
2565 #define traceENTER_uxStreamBufferGetStreamBufferNumber( xStreamBuffer )
2568 #ifndef traceRETURN_uxStreamBufferGetStreamBufferNumber
2569 #define traceRETURN_uxStreamBufferGetStreamBufferNumber( uxStreamBufferNumber )
2572 #ifndef traceENTER_vStreamBufferSetStreamBufferNumber
2573 #define traceENTER_vStreamBufferSetStreamBufferNumber( xStreamBuffer, uxStreamBufferNumber )
2576 #ifndef traceRETURN_vStreamBufferSetStreamBufferNumber
2577 #define traceRETURN_vStreamBufferSetStreamBufferNumber()
2580 #ifndef traceENTER_ucStreamBufferGetStreamBufferType
2581 #define traceENTER_ucStreamBufferGetStreamBufferType( xStreamBuffer )
2584 #ifndef traceRETURN_ucStreamBufferGetStreamBufferType
2585 #define traceRETURN_ucStreamBufferGetStreamBufferType( ucStreamBufferType )
2588 #ifndef traceENTER_vListInitialise
2589 #define traceENTER_vListInitialise( pxList )
2592 #ifndef traceRETURN_vListInitialise
2593 #define traceRETURN_vListInitialise()
2596 #ifndef traceENTER_vListInitialiseItem
2597 #define traceENTER_vListInitialiseItem( pxItem )
2600 #ifndef traceRETURN_vListInitialiseItem
2601 #define traceRETURN_vListInitialiseItem()
2604 #ifndef traceENTER_vListInsertEnd
2605 #define traceENTER_vListInsertEnd( pxList, pxNewListItem )
2608 #ifndef traceRETURN_vListInsertEnd
2609 #define traceRETURN_vListInsertEnd()
2612 #ifndef traceENTER_vListInsert
2613 #define traceENTER_vListInsert( pxList, pxNewListItem )
2616 #ifndef traceRETURN_vListInsert
2617 #define traceRETURN_vListInsert()
2620 #ifndef traceENTER_uxListRemove
2621 #define traceENTER_uxListRemove( pxItemToRemove )
2624 #ifndef traceRETURN_uxListRemove
2625 #define traceRETURN_uxListRemove( uxNumberOfItems )
2628 #ifndef traceENTER_xCoRoutineCreate
2629 #define traceENTER_xCoRoutineCreate( pxCoRoutineCode, uxPriority, uxIndex )
2632 #ifndef traceRETURN_xCoRoutineCreate
2633 #define traceRETURN_xCoRoutineCreate( xReturn )
2636 #ifndef traceENTER_vCoRoutineAddToDelayedList
2637 #define traceENTER_vCoRoutineAddToDelayedList( xTicksToDelay, pxEventList )
2640 #ifndef traceRETURN_vCoRoutineAddToDelayedList
2641 #define traceRETURN_vCoRoutineAddToDelayedList()
2644 #ifndef traceENTER_vCoRoutineSchedule
2645 #define traceENTER_vCoRoutineSchedule()
2648 #ifndef traceRETURN_vCoRoutineSchedule
2649 #define traceRETURN_vCoRoutineSchedule()
2652 #ifndef traceENTER_xCoRoutineRemoveFromEventList
2653 #define traceENTER_xCoRoutineRemoveFromEventList( pxEventList )
2656 #ifndef traceRETURN_xCoRoutineRemoveFromEventList
2657 #define traceRETURN_xCoRoutineRemoveFromEventList( xReturn )
2660 #ifndef configGENERATE_RUN_TIME_STATS
2661 #define configGENERATE_RUN_TIME_STATS 0
2664 #if ( configGENERATE_RUN_TIME_STATS == 1 )
2666 #ifndef portCONFIGURE_TIMER_FOR_RUN_TIME_STATS
2667 #error If configGENERATE_RUN_TIME_STATS is defined then portCONFIGURE_TIMER_FOR_RUN_TIME_STATS must also be defined. portCONFIGURE_TIMER_FOR_RUN_TIME_STATS should call a port layer function to setup a peripheral timer/counter that can then be used as the run time counter time base.
2668 #endif /* portCONFIGURE_TIMER_FOR_RUN_TIME_STATS */
2670 #ifndef portGET_RUN_TIME_COUNTER_VALUE
2671 #ifndef portALT_GET_RUN_TIME_COUNTER_VALUE
2672 #error If configGENERATE_RUN_TIME_STATS is defined then either portGET_RUN_TIME_COUNTER_VALUE or portALT_GET_RUN_TIME_COUNTER_VALUE must also be defined. See the examples provided and the FreeRTOS web site for more information.
2673 #endif /* portALT_GET_RUN_TIME_COUNTER_VALUE */
2674 #endif /* portGET_RUN_TIME_COUNTER_VALUE */
2676 #endif /* configGENERATE_RUN_TIME_STATS */
2678 #ifndef portCONFIGURE_TIMER_FOR_RUN_TIME_STATS
2679 #define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS()
2682 #ifndef portPRIVILEGE_BIT
2683 #define portPRIVILEGE_BIT ( ( UBaseType_t ) 0x00 )
2686 #ifndef portYIELD_WITHIN_API
2687 #define portYIELD_WITHIN_API portYIELD
2690 #ifndef portSUPPRESS_TICKS_AND_SLEEP
2691 #define portSUPPRESS_TICKS_AND_SLEEP( xExpectedIdleTime )
2694 #ifndef configEXPECTED_IDLE_TIME_BEFORE_SLEEP
2695 #define configEXPECTED_IDLE_TIME_BEFORE_SLEEP 2
2698 #if configEXPECTED_IDLE_TIME_BEFORE_SLEEP < 2
2699 #error configEXPECTED_IDLE_TIME_BEFORE_SLEEP must not be less than 2
2702 #ifndef configUSE_TICKLESS_IDLE
2703 #define configUSE_TICKLESS_IDLE 0
2706 #ifndef configPRE_SUPPRESS_TICKS_AND_SLEEP_PROCESSING
2707 #define configPRE_SUPPRESS_TICKS_AND_SLEEP_PROCESSING( x )
2710 #ifndef configPRE_SLEEP_PROCESSING
2711 #define configPRE_SLEEP_PROCESSING( x )
2714 #ifndef configPOST_SLEEP_PROCESSING
2715 #define configPOST_SLEEP_PROCESSING( x )
2718 #ifndef configUSE_QUEUE_SETS
2719 #define configUSE_QUEUE_SETS 0
2722 #ifndef portTASK_USES_FLOATING_POINT
2723 #define portTASK_USES_FLOATING_POINT()
2726 #ifndef portALLOCATE_SECURE_CONTEXT
2727 #define portALLOCATE_SECURE_CONTEXT( ulSecureStackSize )
2730 #ifndef portDONT_DISCARD
2731 #define portDONT_DISCARD
2734 #ifndef configUSE_TIME_SLICING
2735 #define configUSE_TIME_SLICING 1
2738 #ifndef configINCLUDE_APPLICATION_DEFINED_PRIVILEGED_FUNCTIONS
2739 #define configINCLUDE_APPLICATION_DEFINED_PRIVILEGED_FUNCTIONS 0
2742 #ifndef configUSE_STATS_FORMATTING_FUNCTIONS
2743 #define configUSE_STATS_FORMATTING_FUNCTIONS 0
2746 #ifndef portASSERT_IF_INTERRUPT_PRIORITY_INVALID
2747 #define portASSERT_IF_INTERRUPT_PRIORITY_INVALID()
2750 #ifndef configUSE_TRACE_FACILITY
2751 #define configUSE_TRACE_FACILITY 0
2754 #ifndef mtCOVERAGE_TEST_MARKER
2755 #define mtCOVERAGE_TEST_MARKER()
2758 #ifndef mtCOVERAGE_TEST_DELAY
2759 #define mtCOVERAGE_TEST_DELAY()
2762 #ifndef portASSERT_IF_IN_ISR
2763 #define portASSERT_IF_IN_ISR()
2766 #ifndef configUSE_PORT_OPTIMISED_TASK_SELECTION
2767 #define configUSE_PORT_OPTIMISED_TASK_SELECTION 0
2770 #ifndef configAPPLICATION_ALLOCATED_HEAP
2771 #define configAPPLICATION_ALLOCATED_HEAP 0
2774 #ifndef configENABLE_HEAP_PROTECTOR
2775 #define configENABLE_HEAP_PROTECTOR 0
2778 #ifndef configUSE_TASK_NOTIFICATIONS
2779 #define configUSE_TASK_NOTIFICATIONS 1
2782 #ifndef configTASK_NOTIFICATION_ARRAY_ENTRIES
2783 #define configTASK_NOTIFICATION_ARRAY_ENTRIES 1
2786 #if configTASK_NOTIFICATION_ARRAY_ENTRIES < 1
2787 #error configTASK_NOTIFICATION_ARRAY_ENTRIES must be at least 1
2790 #ifndef configUSE_POSIX_ERRNO
2791 #define configUSE_POSIX_ERRNO 0
2794 #ifndef configUSE_SB_COMPLETED_CALLBACK
2796 /* By default per-instance callbacks are not enabled for stream buffer or message buffer. */
2797 #define configUSE_SB_COMPLETED_CALLBACK 0
2800 #ifndef portTICK_TYPE_IS_ATOMIC
2801 #define portTICK_TYPE_IS_ATOMIC 0
2804 #ifndef configSUPPORT_STATIC_ALLOCATION
2805 /* Defaults to 0 for backward compatibility. */
2806 #define configSUPPORT_STATIC_ALLOCATION 0
2809 #ifndef configKERNEL_PROVIDED_STATIC_MEMORY
2810 #define configKERNEL_PROVIDED_STATIC_MEMORY 0
2813 #ifndef configSUPPORT_DYNAMIC_ALLOCATION
2814 /* Defaults to 1 for backward compatibility. */
2815 #define configSUPPORT_DYNAMIC_ALLOCATION 1
2818 #if ( ( configUSE_STATS_FORMATTING_FUNCTIONS > 0 ) && ( configSUPPORT_DYNAMIC_ALLOCATION != 1 ) )
2819 #error configUSE_STATS_FORMATTING_FUNCTIONS cannot be used without dynamic allocation, but configSUPPORT_DYNAMIC_ALLOCATION is not set to 1.
2822 #if ( configUSE_STATS_FORMATTING_FUNCTIONS > 0 )
2823 #if ( ( configUSE_TRACE_FACILITY != 1 ) && ( configGENERATE_RUN_TIME_STATS != 1 ) )
2824 #error configUSE_STATS_FORMATTING_FUNCTIONS is 1 but the functions it enables are not used because neither configUSE_TRACE_FACILITY or configGENERATE_RUN_TIME_STATS are 1. Set configUSE_STATS_FORMATTING_FUNCTIONS to 0 in FreeRTOSConfig.h.
2828 #ifndef configSTATS_BUFFER_MAX_LENGTH
2829 #define configSTATS_BUFFER_MAX_LENGTH 0xFFFF
2832 #ifndef configSTACK_DEPTH_TYPE
2834 /* Defaults to StackType_t for backward compatibility, but can be overridden
2835 * in FreeRTOSConfig.h if StackType_t is too restrictive. */
2836 #define configSTACK_DEPTH_TYPE StackType_t
2839 #ifndef configRUN_TIME_COUNTER_TYPE
2841 /* Defaults to uint32_t for backward compatibility, but can be overridden in
2842 * FreeRTOSConfig.h if uint32_t is too restrictive. */
2844 #define configRUN_TIME_COUNTER_TYPE uint32_t
2847 #ifndef configMESSAGE_BUFFER_LENGTH_TYPE
2849 /* Defaults to size_t for backward compatibility, but can be overridden
2850 * in FreeRTOSConfig.h if lengths will always be less than the number of bytes
2852 #define configMESSAGE_BUFFER_LENGTH_TYPE size_t
2855 /* Sanity check the configuration. */
2856 #if ( ( configSUPPORT_STATIC_ALLOCATION == 0 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 0 ) )
2857 #error configSUPPORT_STATIC_ALLOCATION and configSUPPORT_DYNAMIC_ALLOCATION cannot both be 0, but can both be 1.
2860 #if ( ( configUSE_RECURSIVE_MUTEXES == 1 ) && ( configUSE_MUTEXES != 1 ) )
2861 #error configUSE_MUTEXES must be set to 1 to use recursive mutexes
2864 #if ( ( configRUN_MULTIPLE_PRIORITIES == 0 ) && ( configUSE_TASK_PREEMPTION_DISABLE != 0 ) )
2865 #error configRUN_MULTIPLE_PRIORITIES must be set to 1 to use task preemption disable
2868 #if ( ( configUSE_PREEMPTION == 0 ) && ( configUSE_TASK_PREEMPTION_DISABLE != 0 ) )
2869 #error configUSE_PREEMPTION must be set to 1 to use task preemption disable
2872 #if ( ( configNUMBER_OF_CORES == 1 ) && ( configUSE_TASK_PREEMPTION_DISABLE != 0 ) )
2873 #error configUSE_TASK_PREEMPTION_DISABLE is not supported in single core FreeRTOS
2876 #if ( ( configNUMBER_OF_CORES == 1 ) && ( configUSE_CORE_AFFINITY != 0 ) )
2877 #error configUSE_CORE_AFFINITY is not supported in single core FreeRTOS
2880 #if ( ( configNUMBER_OF_CORES > 1 ) && ( configUSE_PORT_OPTIMISED_TASK_SELECTION != 0 ) )
2881 #error configUSE_PORT_OPTIMISED_TASK_SELECTION is not supported in SMP FreeRTOS
2884 #ifndef configINITIAL_TICK_COUNT
2885 #define configINITIAL_TICK_COUNT 0
2888 #if ( portTICK_TYPE_IS_ATOMIC == 0 )
2890 /* Either variables of tick type cannot be read atomically, or
2891 * portTICK_TYPE_IS_ATOMIC was not set - map the critical sections used when
2892 * the tick count is returned to the standard critical section macros. */
2893 #define portTICK_TYPE_ENTER_CRITICAL() portENTER_CRITICAL()
2894 #define portTICK_TYPE_EXIT_CRITICAL() portEXIT_CRITICAL()
2895 #define portTICK_TYPE_SET_INTERRUPT_MASK_FROM_ISR() portSET_INTERRUPT_MASK_FROM_ISR()
2896 #define portTICK_TYPE_CLEAR_INTERRUPT_MASK_FROM_ISR( x ) portCLEAR_INTERRUPT_MASK_FROM_ISR( ( x ) )
2899 /* The tick type can be read atomically, so critical sections used when the
2900 * tick count is returned can be defined away. */
2901 #define portTICK_TYPE_ENTER_CRITICAL()
2902 #define portTICK_TYPE_EXIT_CRITICAL()
2903 #define portTICK_TYPE_SET_INTERRUPT_MASK_FROM_ISR() 0
2904 #define portTICK_TYPE_CLEAR_INTERRUPT_MASK_FROM_ISR( x ) ( void ) ( x )
2905 #endif /* if ( portTICK_TYPE_IS_ATOMIC == 0 ) */
2907 /* Definitions to allow backward compatibility with FreeRTOS versions prior to
2909 #ifndef configENABLE_BACKWARD_COMPATIBILITY
2910 #define configENABLE_BACKWARD_COMPATIBILITY 1
2913 #ifndef configPRINTF
2915 /* configPRINTF() was not defined, so define it away to nothing. To use
2916 * configPRINTF() then define it as follows (where MyPrintFunction() is
2917 * provided by the application writer):
2919 * void MyPrintFunction(const char *pcFormat, ... );
2920 #define configPRINTF( X ) MyPrintFunction X
2922 * Then call like a standard printf() function, but placing brackets around
2923 * all parameters so they are passed as a single parameter. For example:
2924 * configPRINTF( ("Value = %d", MyVariable) ); */
2925 #define configPRINTF( X )
2930 /* The application writer has not provided their own MAX macro, so define
2931 * the following generic implementation. */
2932 #define configMAX( a, b ) ( ( ( a ) > ( b ) ) ? ( a ) : ( b ) )
2937 /* The application writer has not provided their own MIN macro, so define
2938 * the following generic implementation. */
2939 #define configMIN( a, b ) ( ( ( a ) < ( b ) ) ? ( a ) : ( b ) )
2942 #if configENABLE_BACKWARD_COMPATIBILITY == 1
2943 #define eTaskStateGet eTaskGetState
2944 #define portTickType TickType_t
2945 #define xTaskHandle TaskHandle_t
2946 #define xQueueHandle QueueHandle_t
2947 #define xSemaphoreHandle SemaphoreHandle_t
2948 #define xQueueSetHandle QueueSetHandle_t
2949 #define xQueueSetMemberHandle QueueSetMemberHandle_t
2950 #define xTimeOutType TimeOut_t
2951 #define xMemoryRegion MemoryRegion_t
2952 #define xTaskParameters TaskParameters_t
2953 #define xTaskStatusType TaskStatus_t
2954 #define xTimerHandle TimerHandle_t
2955 #define xCoRoutineHandle CoRoutineHandle_t
2956 #define pdTASK_HOOK_CODE TaskHookFunction_t
2957 #define portTICK_RATE_MS portTICK_PERIOD_MS
2958 #define pcTaskGetTaskName pcTaskGetName
2959 #define pcTimerGetTimerName pcTimerGetName
2960 #define pcQueueGetQueueName pcQueueGetName
2961 #define vTaskGetTaskInfo vTaskGetInfo
2962 #define xTaskGetIdleRunTimeCounter ulTaskGetIdleRunTimeCounter
2964 /* Backward compatibility within the scheduler code only - these definitions
2965 * are not really required but are included for completeness. */
2966 #define tmrTIMER_CALLBACK TimerCallbackFunction_t
2967 #define pdTASK_CODE TaskFunction_t
2968 #define xListItem ListItem_t
2969 #define xList List_t
2971 /* For libraries that break the list data hiding, and access list structure
2972 * members directly (which is not supposed to be done). */
2973 #define pxContainer pvContainer
2974 #endif /* configENABLE_BACKWARD_COMPATIBILITY */
2976 #if ( configUSE_ALTERNATIVE_API != 0 )
2977 #error The alternative API was deprecated some time ago, and was removed in FreeRTOS V9.0 0
2980 /* Set configUSE_TASK_FPU_SUPPORT to 0 to omit floating point support even
2981 * if floating point hardware is otherwise supported by the FreeRTOS port in use.
2982 * This constant is not supported by all FreeRTOS ports that include floating
2984 #ifndef configUSE_TASK_FPU_SUPPORT
2985 #define configUSE_TASK_FPU_SUPPORT 1
2988 /* Set configENABLE_MPU to 1 to enable MPU support and 0 to disable it. This is
2989 * currently used in ARMv8M ports. */
2990 #ifndef configENABLE_MPU
2991 #define configENABLE_MPU 0
2994 /* Set configENABLE_FPU to 1 to enable FPU support and 0 to disable it. This is
2995 * currently used in ARMv8M ports. */
2996 #ifndef configENABLE_FPU
2997 #define configENABLE_FPU 1
3000 /* Set configENABLE_MVE to 1 to enable MVE support and 0 to disable it. This is
3001 * currently used in ARMv8M ports. */
3002 #ifndef configENABLE_MVE
3003 #define configENABLE_MVE 0
3006 /* Set configENABLE_TRUSTZONE to 1 enable TrustZone support and 0 to disable it.
3007 * This is currently used in ARMv8M ports. */
3008 #ifndef configENABLE_TRUSTZONE
3009 #define configENABLE_TRUSTZONE 1
3012 /* Set configRUN_FREERTOS_SECURE_ONLY to 1 to run the FreeRTOS ARMv8M port on
3013 * the Secure Side only. */
3014 #ifndef configRUN_FREERTOS_SECURE_ONLY
3015 #define configRUN_FREERTOS_SECURE_ONLY 0
3018 #ifndef configRUN_ADDITIONAL_TESTS
3019 #define configRUN_ADDITIONAL_TESTS 0
3022 /* The following config allows infinite loop control. For example, control the
3023 * infinite loop in idle task function when performing unit tests. */
3024 #ifndef configCONTROL_INFINITE_LOOP
3025 #define configCONTROL_INFINITE_LOOP()
3028 /* Sometimes the FreeRTOSConfig.h settings only allow a task to be created using
3029 * dynamically allocated RAM, in which case when any task is deleted it is known
3030 * that both the task's stack and TCB need to be freed. Sometimes the
3031 * FreeRTOSConfig.h settings only allow a task to be created using statically
3032 * allocated RAM, in which case when any task is deleted it is known that neither
3033 * the task's stack or TCB should be freed. Sometimes the FreeRTOSConfig.h
3034 * settings allow a task to be created using either statically or dynamically
3035 * allocated RAM, in which case a member of the TCB is used to record whether the
3036 * stack and/or TCB were allocated statically or dynamically, so when a task is
3037 * deleted the RAM that was allocated dynamically is freed again and no attempt is
3038 * made to free the RAM that was allocated statically.
3039 * tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE is only true if it is possible for a
3040 * task to be created using either statically or dynamically allocated RAM. Note
3041 * that if portUSING_MPU_WRAPPERS is 1 then a protected task can be created with
3042 * a statically allocated stack and a dynamically allocated TCB.
3044 * The following table lists various combinations of portUSING_MPU_WRAPPERS,
3045 * configSUPPORT_DYNAMIC_ALLOCATION and configSUPPORT_STATIC_ALLOCATION and
3046 * when it is possible to have both static and dynamic allocation:
3047 * +-----+---------+--------+-----------------------------+-----------------------------------+------------------+-----------+
3048 * | MPU | Dynamic | Static | Available Functions | Possible Allocations | Both Dynamic and | Need Free |
3049 * | | | | | | Static Possible | |
3050 * +-----+---------+--------+-----------------------------+-----------------------------------+------------------+-----------+
3051 * | 0 | 0 | 1 | xTaskCreateStatic | TCB - Static, Stack - Static | No | No |
3052 * +-----|---------|--------|-----------------------------|-----------------------------------|------------------|-----------|
3053 * | 0 | 1 | 0 | xTaskCreate | TCB - Dynamic, Stack - Dynamic | No | Yes |
3054 * +-----|---------|--------|-----------------------------|-----------------------------------|------------------|-----------|
3055 * | 0 | 1 | 1 | xTaskCreate, | 1. TCB - Dynamic, Stack - Dynamic | Yes | Yes |
3056 * | | | | xTaskCreateStatic | 2. TCB - Static, Stack - Static | | |
3057 * +-----|---------|--------|-----------------------------|-----------------------------------|------------------|-----------|
3058 * | 1 | 0 | 1 | xTaskCreateStatic, | TCB - Static, Stack - Static | No | No |
3059 * | | | | xTaskCreateRestrictedStatic | | | |
3060 * +-----|---------|--------|-----------------------------|-----------------------------------|------------------|-----------|
3061 * | 1 | 1 | 0 | xTaskCreate, | 1. TCB - Dynamic, Stack - Dynamic | Yes | Yes |
3062 * | | | | xTaskCreateRestricted | 2. TCB - Dynamic, Stack - Static | | |
3063 * +-----|---------|--------|-----------------------------|-----------------------------------|------------------|-----------|
3064 * | 1 | 1 | 1 | xTaskCreate, | 1. TCB - Dynamic, Stack - Dynamic | Yes | Yes |
3065 * | | | | xTaskCreateStatic, | 2. TCB - Dynamic, Stack - Static | | |
3066 * | | | | xTaskCreateRestricted, | 3. TCB - Static, Stack - Static | | |
3067 * | | | | xTaskCreateRestrictedStatic | | | |
3068 * +-----+---------+--------+-----------------------------+-----------------------------------+------------------+-----------+
3070 #define tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE \
3071 ( ( ( portUSING_MPU_WRAPPERS == 0 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) ) || \
3072 ( ( portUSING_MPU_WRAPPERS == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) )
3075 * In line with software engineering best practice, FreeRTOS implements a strict
3076 * data hiding policy, so the real structures used by FreeRTOS to maintain the
3077 * state of tasks, queues, semaphores, etc. are not accessible to the application
3078 * code. However, if the application writer wants to statically allocate such
3079 * an object then the size of the object needs to be known. Dummy structures
3080 * that are guaranteed to have the same size and alignment requirements of the
3081 * real objects are used for this purpose. The dummy list and list item
3082 * structures below are used for inclusion in such a dummy structure.
3084 struct xSTATIC_LIST_ITEM
3086 #if ( configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES == 1 )
3090 void * pvDummy3[ 4 ];
3091 #if ( configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES == 1 )
3095 typedef struct xSTATIC_LIST_ITEM StaticListItem_t;
3097 #if ( configUSE_MINI_LIST_ITEM == 1 )
3098 /* See the comments above the struct xSTATIC_LIST_ITEM definition. */
3099 struct xSTATIC_MINI_LIST_ITEM
3101 #if ( configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES == 1 )
3105 void * pvDummy3[ 2 ];
3107 typedef struct xSTATIC_MINI_LIST_ITEM StaticMiniListItem_t;
3108 #else /* if ( configUSE_MINI_LIST_ITEM == 1 ) */
3109 typedef struct xSTATIC_LIST_ITEM StaticMiniListItem_t;
3110 #endif /* if ( configUSE_MINI_LIST_ITEM == 1 ) */
3112 /* See the comments above the struct xSTATIC_LIST_ITEM definition. */
3113 typedef struct xSTATIC_LIST
3115 #if ( configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES == 1 )
3118 UBaseType_t uxDummy2;
3120 StaticMiniListItem_t xDummy4;
3121 #if ( configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES == 1 )
3127 * In line with software engineering best practice, especially when supplying a
3128 * library that is likely to change in future versions, FreeRTOS implements a
3129 * strict data hiding policy. This means the Task structure used internally by
3130 * FreeRTOS is not accessible to application code. However, if the application
3131 * writer wants to statically allocate the memory required to create a task then
3132 * the size of the task object needs to be known. The StaticTask_t structure
3133 * below is provided for this purpose. Its sizes and alignment requirements are
3134 * guaranteed to match those of the genuine structure, no matter which
3135 * architecture is being used, and no matter how the values in FreeRTOSConfig.h
3136 * are set. Its contents are somewhat obfuscated in the hope users will
3137 * recognise that it would be unwise to make direct use of the structure members.
3139 typedef struct xSTATIC_TCB
3142 #if ( portUSING_MPU_WRAPPERS == 1 )
3143 xMPU_SETTINGS xDummy2;
3145 #if ( configUSE_CORE_AFFINITY == 1 ) && ( configNUMBER_OF_CORES > 1 )
3146 UBaseType_t uxDummy26;
3148 StaticListItem_t xDummy3[ 2 ];
3149 UBaseType_t uxDummy5;
3151 #if ( configNUMBER_OF_CORES > 1 )
3152 BaseType_t xDummy23;
3153 UBaseType_t uxDummy24;
3155 uint8_t ucDummy7[ configMAX_TASK_NAME_LEN ];
3156 #if ( configUSE_TASK_PREEMPTION_DISABLE == 1 )
3157 BaseType_t xDummy25;
3159 #if ( ( portSTACK_GROWTH > 0 ) || ( configRECORD_STACK_HIGH_ADDRESS == 1 ) )
3162 #if ( portCRITICAL_NESTING_IN_TCB == 1 )
3163 UBaseType_t uxDummy9;
3165 #if ( configUSE_TRACE_FACILITY == 1 )
3166 UBaseType_t uxDummy10[ 2 ];
3168 #if ( configUSE_MUTEXES == 1 )
3169 UBaseType_t uxDummy12[ 2 ];
3171 #if ( configUSE_APPLICATION_TASK_TAG == 1 )
3174 #if ( configNUM_THREAD_LOCAL_STORAGE_POINTERS > 0 )
3175 void * pvDummy15[ configNUM_THREAD_LOCAL_STORAGE_POINTERS ];
3177 #if ( configGENERATE_RUN_TIME_STATS == 1 )
3178 configRUN_TIME_COUNTER_TYPE ulDummy16;
3180 #if ( configUSE_C_RUNTIME_TLS_SUPPORT == 1 )
3181 configTLS_BLOCK_TYPE xDummy17;
3183 #if ( configUSE_TASK_NOTIFICATIONS == 1 )
3184 uint32_t ulDummy18[ configTASK_NOTIFICATION_ARRAY_ENTRIES ];
3185 uint8_t ucDummy19[ configTASK_NOTIFICATION_ARRAY_ENTRIES ];
3187 #if ( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 )
3191 #if ( INCLUDE_xTaskAbortDelay == 1 )
3194 #if ( configUSE_POSIX_ERRNO == 1 )
3200 * In line with software engineering best practice, especially when supplying a
3201 * library that is likely to change in future versions, FreeRTOS implements a
3202 * strict data hiding policy. This means the Queue structure used internally by
3203 * FreeRTOS is not accessible to application code. However, if the application
3204 * writer wants to statically allocate the memory required to create a queue
3205 * then the size of the queue object needs to be known. The StaticQueue_t
3206 * structure below is provided for this purpose. Its sizes and alignment
3207 * requirements are guaranteed to match those of the genuine structure, no
3208 * matter which architecture is being used, and no matter how the values in
3209 * FreeRTOSConfig.h are set. Its contents are somewhat obfuscated in the hope
3210 * users will recognise that it would be unwise to make direct use of the
3211 * structure members.
3213 typedef struct xSTATIC_QUEUE
3215 void * pvDummy1[ 3 ];
3220 UBaseType_t uxDummy2;
3223 StaticList_t xDummy3[ 2 ];
3224 UBaseType_t uxDummy4[ 3 ];
3225 uint8_t ucDummy5[ 2 ];
3227 #if ( ( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) )
3231 #if ( configUSE_QUEUE_SETS == 1 )
3235 #if ( configUSE_TRACE_FACILITY == 1 )
3236 UBaseType_t uxDummy8;
3240 typedef StaticQueue_t StaticSemaphore_t;
3243 * In line with software engineering best practice, especially when supplying a
3244 * library that is likely to change in future versions, FreeRTOS implements a
3245 * strict data hiding policy. This means the event group structure used
3246 * internally by FreeRTOS is not accessible to application code. However, if
3247 * the application writer wants to statically allocate the memory required to
3248 * create an event group then the size of the event group object needs to be
3249 * know. The StaticEventGroup_t structure below is provided for this purpose.
3250 * Its sizes and alignment requirements are guaranteed to match those of the
3251 * genuine structure, no matter which architecture is being used, and no matter
3252 * how the values in FreeRTOSConfig.h are set. Its contents are somewhat
3253 * obfuscated in the hope users will recognise that it would be unwise to make
3254 * direct use of the structure members.
3256 typedef struct xSTATIC_EVENT_GROUP
3259 StaticList_t xDummy2;
3261 #if ( configUSE_TRACE_FACILITY == 1 )
3262 UBaseType_t uxDummy3;
3265 #if ( ( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) )
3268 } StaticEventGroup_t;
3271 * In line with software engineering best practice, especially when supplying a
3272 * library that is likely to change in future versions, FreeRTOS implements a
3273 * strict data hiding policy. This means the software timer structure used
3274 * internally by FreeRTOS is not accessible to application code. However, if
3275 * the application writer wants to statically allocate the memory required to
3276 * create a software timer then the size of the queue object needs to be known.
3277 * The StaticTimer_t structure below is provided for this purpose. Its sizes
3278 * and alignment requirements are guaranteed to match those of the genuine
3279 * structure, no matter which architecture is being used, and no matter how the
3280 * values in FreeRTOSConfig.h are set. Its contents are somewhat obfuscated in
3281 * the hope users will recognise that it would be unwise to make direct use of
3282 * the structure members.
3284 typedef struct xSTATIC_TIMER
3287 StaticListItem_t xDummy2;
3290 TaskFunction_t pvDummy6;
3291 #if ( configUSE_TRACE_FACILITY == 1 )
3292 UBaseType_t uxDummy7;
3298 * In line with software engineering best practice, especially when supplying a
3299 * library that is likely to change in future versions, FreeRTOS implements a
3300 * strict data hiding policy. This means the stream buffer structure used
3301 * internally by FreeRTOS is not accessible to application code. However, if
3302 * the application writer wants to statically allocate the memory required to
3303 * create a stream buffer then the size of the stream buffer object needs to be
3304 * known. The StaticStreamBuffer_t structure below is provided for this
3305 * purpose. Its size and alignment requirements are guaranteed to match those
3306 * of the genuine structure, no matter which architecture is being used, and
3307 * no matter how the values in FreeRTOSConfig.h are set. Its contents are
3308 * somewhat obfuscated in the hope users will recognise that it would be unwise
3309 * to make direct use of the structure members.
3311 typedef struct xSTATIC_STREAM_BUFFER
3313 size_t uxDummy1[ 4 ];
3314 void * pvDummy2[ 3 ];
3316 #if ( configUSE_TRACE_FACILITY == 1 )
3317 UBaseType_t uxDummy4;
3319 #if ( configUSE_SB_COMPLETED_CALLBACK == 1 )
3320 void * pvDummy5[ 2 ];
3322 UBaseType_t uxDummy6;
3323 } StaticStreamBuffer_t;
3325 /* Message buffers are built on stream buffers. */
3326 typedef StaticStreamBuffer_t StaticMessageBuffer_t;
3334 #endif /* INC_FREERTOS_H */