]> begriffs open source - freertos/blob - include/FreeRTOS.h
Add daemon task startup hook / timer task creation consistency check (#1009)
[freertos] / include / FreeRTOS.h
1 /*
2  * FreeRTOS Kernel <DEVELOPMENT BRANCH>
3  * Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4  *
5  * SPDX-License-Identifier: MIT
6  *
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:
13  *
14  * The above copyright notice and this permission notice shall be included in all
15  * copies or substantial portions of the Software.
16  *
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.
23  *
24  * https://www.FreeRTOS.org
25  * https://github.com/FreeRTOS
26  *
27  */
28
29 #ifndef INC_FREERTOS_H
30 #define INC_FREERTOS_H
31
32 /*
33  * Include the generic headers required for the FreeRTOS port being used.
34  */
35 #include <stddef.h>
36
37 /*
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
44  *     other way).
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.
49  */
50 #include <stdint.h> /* READ COMMENT ABOVE. */
51
52 /* *INDENT-OFF* */
53 #ifdef __cplusplus
54     extern "C" {
55 #endif
56 /* *INDENT-ON* */
57
58 /* Acceptable values for configTICK_TYPE_WIDTH_IN_BITS. */
59 #define TICK_TYPE_WIDTH_16_BITS    0
60 #define TICK_TYPE_WIDTH_32_BITS    1
61 #define TICK_TYPE_WIDTH_64_BITS    2
62
63 /* Application specific configuration options. */
64 #include "FreeRTOSConfig.h"
65
66 #if !defined( configUSE_16_BIT_TICKS ) && !defined( configTICK_TYPE_WIDTH_IN_BITS )
67     #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.
68 #endif
69
70 #if defined( configUSE_16_BIT_TICKS ) && defined( configTICK_TYPE_WIDTH_IN_BITS )
71     #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.
72 #endif
73
74 /* Define configTICK_TYPE_WIDTH_IN_BITS according to the
75  * value of configUSE_16_BIT_TICKS for backward compatibility. */
76 #ifndef configTICK_TYPE_WIDTH_IN_BITS
77     #if ( configUSE_16_BIT_TICKS == 1 )
78         #define configTICK_TYPE_WIDTH_IN_BITS    TICK_TYPE_WIDTH_16_BITS
79     #else
80         #define configTICK_TYPE_WIDTH_IN_BITS    TICK_TYPE_WIDTH_32_BITS
81     #endif
82 #endif
83
84 /* Set configUSE_MPU_WRAPPERS_V1 to 1 to use MPU wrappers v1. */
85 #ifndef configUSE_MPU_WRAPPERS_V1
86     #define configUSE_MPU_WRAPPERS_V1    0
87 #endif
88
89 /* Set configENABLE_ACCESS_CONTROL_LIST to 1 to enable access control list support. */
90 #ifndef configENABLE_ACCESS_CONTROL_LIST
91     #define configENABLE_ACCESS_CONTROL_LIST    0
92 #endif
93
94 /* Set default value of configNUMBER_OF_CORES to 1 to use single core FreeRTOS. */
95 #ifndef configNUMBER_OF_CORES
96     #define configNUMBER_OF_CORES    1
97 #endif
98
99 #ifndef configUSE_MALLOC_FAILED_HOOK
100     #define configUSE_MALLOC_FAILED_HOOK    0
101 #endif
102
103 /* Basic FreeRTOS definitions. */
104 #include "projdefs.h"
105
106 /* Definitions specific to the port being used. */
107 #include "portable.h"
108
109 /* Must be defaulted before configUSE_NEWLIB_REENTRANT is used below. */
110 #ifndef configUSE_NEWLIB_REENTRANT
111     #define configUSE_NEWLIB_REENTRANT    0
112 #endif
113
114 /* Required if struct _reent is used. */
115 #if ( configUSE_NEWLIB_REENTRANT == 1 )
116
117     #include "newlib-freertos.h"
118
119 #endif /* if ( configUSE_NEWLIB_REENTRANT == 1 ) */
120
121 /* Must be defaulted before configUSE_PICOLIBC_TLS is used below. */
122 #ifndef configUSE_PICOLIBC_TLS
123     #define configUSE_PICOLIBC_TLS    0
124 #endif
125
126 #if ( configUSE_PICOLIBC_TLS == 1 )
127
128     #include "picolibc-freertos.h"
129
130 #endif /* if ( configUSE_PICOLIBC_TLS == 1 ) */
131
132 #ifndef configUSE_C_RUNTIME_TLS_SUPPORT
133     #define configUSE_C_RUNTIME_TLS_SUPPORT    0
134 #endif
135
136 #if ( configUSE_C_RUNTIME_TLS_SUPPORT == 1 )
137
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.
140     #endif
141
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.
144     #endif
145
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.
148     #endif
149
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.
152     #endif
153 #endif /* if ( configUSE_C_RUNTIME_TLS_SUPPORT == 1 ) */
154
155 /*
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.
159  */
160
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.
163 #endif
164
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.
167 #endif
168
169 #if configMAX_PRIORITIES < 1
170     #error configMAX_PRIORITIES must be defined to be greater than or equal to 1.
171 #endif
172
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.
175 #endif
176
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.
179 #endif
180
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.
184     #endif
185 #endif
186
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.
189 #endif
190
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.
195 #endif
196
197 #ifndef configUSE_CO_ROUTINES
198     #define configUSE_CO_ROUTINES    0
199 #endif
200
201 #ifndef INCLUDE_vTaskPrioritySet
202     #define INCLUDE_vTaskPrioritySet    0
203 #endif
204
205 #ifndef INCLUDE_uxTaskPriorityGet
206     #define INCLUDE_uxTaskPriorityGet    0
207 #endif
208
209 #ifndef INCLUDE_vTaskDelete
210     #define INCLUDE_vTaskDelete    0
211 #endif
212
213 #ifndef INCLUDE_vTaskSuspend
214     #define INCLUDE_vTaskSuspend    0
215 #endif
216
217 #ifdef INCLUDE_xTaskDelayUntil
218     #ifdef INCLUDE_vTaskDelayUntil
219
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
224     #endif
225 #endif
226
227 #ifndef INCLUDE_xTaskDelayUntil
228     #ifdef INCLUDE_vTaskDelayUntil
229
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.
234  */
235         #define INCLUDE_xTaskDelayUntil    INCLUDE_vTaskDelayUntil
236     #endif
237 #endif
238
239 #ifndef INCLUDE_xTaskDelayUntil
240     #define INCLUDE_xTaskDelayUntil    0
241 #endif
242
243 #ifndef INCLUDE_vTaskDelay
244     #define INCLUDE_vTaskDelay    0
245 #endif
246
247 #ifndef INCLUDE_xTaskGetIdleTaskHandle
248     #define INCLUDE_xTaskGetIdleTaskHandle    0
249 #endif
250
251 #ifndef INCLUDE_xTaskAbortDelay
252     #define INCLUDE_xTaskAbortDelay    0
253 #endif
254
255 #ifndef INCLUDE_xQueueGetMutexHolder
256     #define INCLUDE_xQueueGetMutexHolder    0
257 #endif
258
259 #ifndef INCLUDE_xSemaphoreGetMutexHolder
260     #define INCLUDE_xSemaphoreGetMutexHolder    INCLUDE_xQueueGetMutexHolder
261 #endif
262
263 #ifndef INCLUDE_xTaskGetHandle
264     #define INCLUDE_xTaskGetHandle    0
265 #endif
266
267 #ifndef INCLUDE_uxTaskGetStackHighWaterMark
268     #define INCLUDE_uxTaskGetStackHighWaterMark    0
269 #endif
270
271 #ifndef INCLUDE_uxTaskGetStackHighWaterMark2
272     #define INCLUDE_uxTaskGetStackHighWaterMark2    0
273 #endif
274
275 #ifndef INCLUDE_eTaskGetState
276     #define INCLUDE_eTaskGetState    0
277 #endif
278
279 #ifndef INCLUDE_xTaskResumeFromISR
280     #define INCLUDE_xTaskResumeFromISR    1
281 #endif
282
283 #ifndef INCLUDE_xTimerPendFunctionCall
284     #define INCLUDE_xTimerPendFunctionCall    0
285 #endif
286
287 #ifndef INCLUDE_xTaskGetSchedulerState
288     #define INCLUDE_xTaskGetSchedulerState    0
289 #endif
290
291 #ifndef INCLUDE_xTaskGetCurrentTaskHandle
292     #define INCLUDE_xTaskGetCurrentTaskHandle    1
293 #endif
294
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.
298     #endif
299 #endif
300
301 #ifndef configUSE_APPLICATION_TASK_TAG
302     #define configUSE_APPLICATION_TASK_TAG    0
303 #endif
304
305 #ifndef configNUM_THREAD_LOCAL_STORAGE_POINTERS
306     #define configNUM_THREAD_LOCAL_STORAGE_POINTERS    0
307 #endif
308
309 #ifndef configUSE_RECURSIVE_MUTEXES
310     #define configUSE_RECURSIVE_MUTEXES    0
311 #endif
312
313 #ifndef configUSE_MUTEXES
314     #define configUSE_MUTEXES    0
315 #endif
316
317 #ifndef configUSE_TIMERS
318     #define configUSE_TIMERS    0
319 #endif
320
321 #ifndef configUSE_DAEMON_TASK_STARTUP_HOOK
322     #define configUSE_DAEMON_TASK_STARTUP_HOOK    0
323 #endif
324
325 #if ( configUSE_DAEMON_TASK_STARTUP_HOOK != 0 )
326     #if ( configUSE_TIMERS == 0 )
327         #error configUSE_DAEMON_TASK_STARTUP_HOOK is set, but the daemon task is not created because configUSE_TIMERS is 0.
328     #endif
329 #endif
330
331 #ifndef configUSE_COUNTING_SEMAPHORES
332     #define configUSE_COUNTING_SEMAPHORES    0
333 #endif
334
335 #ifndef configUSE_TASK_PREEMPTION_DISABLE
336     #define configUSE_TASK_PREEMPTION_DISABLE    0
337 #endif
338
339 #ifndef configUSE_ALTERNATIVE_API
340     #define configUSE_ALTERNATIVE_API    0
341 #endif
342
343 #ifndef portCRITICAL_NESTING_IN_TCB
344     #define portCRITICAL_NESTING_IN_TCB    0
345 #endif
346
347 #ifndef configMAX_TASK_NAME_LEN
348     #define configMAX_TASK_NAME_LEN    16
349 #endif
350
351 #ifndef configIDLE_SHOULD_YIELD
352     #define configIDLE_SHOULD_YIELD    1
353 #endif
354
355 #if configMAX_TASK_NAME_LEN < 1
356     #error configMAX_TASK_NAME_LEN must be set to a minimum of 1 in FreeRTOSConfig.h
357 #endif
358
359 #ifndef configASSERT
360     #define configASSERT( x )
361     #define configASSERT_DEFINED    0
362 #else
363     #define configASSERT_DEFINED    1
364 #endif
365
366 /* configPRECONDITION should be defined as configASSERT.
367  * The CBMC proofs need a way to track assumptions and assertions.
368  * A configPRECONDITION statement should express an implicit invariant or
369  * assumption made.  A configASSERT statement should express an invariant that must
370  * hold explicit before calling the code. */
371 #ifndef configPRECONDITION
372     #define configPRECONDITION( X )    configASSERT( X )
373     #define configPRECONDITION_DEFINED    0
374 #else
375     #define configPRECONDITION_DEFINED    1
376 #endif
377
378 #ifndef configCHECK_HANDLER_INSTALLATION
379     #define configCHECK_HANDLER_INSTALLATION    1
380 #else
381
382 /* The application has explicitly defined configCHECK_HANDLER_INSTALLATION
383  * to 1. The checks requires configASSERT() to be defined. */
384     #if ( ( configCHECK_HANDLER_INSTALLATION == 1 ) && ( configASSERT_DEFINED == 0 ) )
385         #error You must define configASSERT() when configCHECK_HANDLER_INSTALLATION is 1.
386     #endif
387 #endif
388
389 #ifndef portMEMORY_BARRIER
390     #define portMEMORY_BARRIER()
391 #endif
392
393 #ifndef portSOFTWARE_BARRIER
394     #define portSOFTWARE_BARRIER()
395 #endif
396
397 #ifndef configRUN_MULTIPLE_PRIORITIES
398     #define configRUN_MULTIPLE_PRIORITIES    0
399 #endif
400
401 #ifndef portGET_CORE_ID
402
403     #if ( configNUMBER_OF_CORES == 1 )
404         #define portGET_CORE_ID()    0
405     #else
406         #error configNUMBER_OF_CORES is set to more than 1 then portGET_CORE_ID must also be defined.
407     #endif /* configNUMBER_OF_CORES */
408
409 #endif /* portGET_CORE_ID */
410
411 #ifndef portYIELD_CORE
412
413     #if ( configNUMBER_OF_CORES == 1 )
414         #define portYIELD_CORE( x )    portYIELD()
415     #else
416         #error configNUMBER_OF_CORES is set to more than 1 then portYIELD_CORE must also be defined.
417     #endif /* configNUMBER_OF_CORES */
418
419 #endif /* portYIELD_CORE */
420
421 #ifndef portSET_INTERRUPT_MASK
422
423     #if ( configNUMBER_OF_CORES > 1 )
424         #error portSET_INTERRUPT_MASK is required in SMP
425     #endif
426
427 #endif /* portSET_INTERRUPT_MASK */
428
429 #ifndef portCLEAR_INTERRUPT_MASK
430
431     #if ( configNUMBER_OF_CORES > 1 )
432         #error portCLEAR_INTERRUPT_MASK is required in SMP
433     #endif
434
435 #endif /* portCLEAR_INTERRUPT_MASK */
436
437 #ifndef portRELEASE_TASK_LOCK
438
439     #if ( configNUMBER_OF_CORES == 1 )
440         #define portRELEASE_TASK_LOCK()
441     #else
442         #error portRELEASE_TASK_LOCK is required in SMP
443     #endif
444
445 #endif /* portRELEASE_TASK_LOCK */
446
447 #ifndef portGET_TASK_LOCK
448
449     #if ( configNUMBER_OF_CORES == 1 )
450         #define portGET_TASK_LOCK()
451     #else
452         #error portGET_TASK_LOCK is required in SMP
453     #endif
454
455 #endif /* portGET_TASK_LOCK */
456
457 #ifndef portRELEASE_ISR_LOCK
458
459     #if ( configNUMBER_OF_CORES == 1 )
460         #define portRELEASE_ISR_LOCK()
461     #else
462         #error portRELEASE_ISR_LOCK is required in SMP
463     #endif
464
465 #endif /* portRELEASE_ISR_LOCK */
466
467 #ifndef portGET_ISR_LOCK
468
469     #if ( configNUMBER_OF_CORES == 1 )
470         #define portGET_ISR_LOCK()
471     #else
472         #error portGET_ISR_LOCK is required in SMP
473     #endif
474
475 #endif /* portGET_ISR_LOCK */
476
477 #ifndef portENTER_CRITICAL_FROM_ISR
478
479     #if ( configNUMBER_OF_CORES > 1 )
480         #error portENTER_CRITICAL_FROM_ISR is required in SMP
481     #endif
482
483 #endif
484
485 #ifndef portEXIT_CRITICAL_FROM_ISR
486
487     #if ( configNUMBER_OF_CORES > 1 )
488         #error portEXIT_CRITICAL_FROM_ISR is required in SMP
489     #endif
490
491 #endif
492
493 #ifndef configUSE_CORE_AFFINITY
494     #define configUSE_CORE_AFFINITY    0
495 #endif /* configUSE_CORE_AFFINITY */
496
497 #if ( ( configNUMBER_OF_CORES > 1 ) && ( configUSE_CORE_AFFINITY == 1 ) )
498     #ifndef configTASK_DEFAULT_CORE_AFFINITY
499         #define configTASK_DEFAULT_CORE_AFFINITY    tskNO_AFFINITY
500     #endif
501 #endif
502
503 #ifndef configUSE_PASSIVE_IDLE_HOOK
504     #define configUSE_PASSIVE_IDLE_HOOK    0
505 #endif /* configUSE_PASSIVE_IDLE_HOOK */
506
507 /* The timers module relies on xTaskGetSchedulerState(). */
508 #if configUSE_TIMERS == 1
509
510     #ifndef configTIMER_TASK_PRIORITY
511         #error If configUSE_TIMERS is set to 1 then configTIMER_TASK_PRIORITY must also be defined.
512     #endif /* configTIMER_TASK_PRIORITY */
513
514     #ifndef configTIMER_QUEUE_LENGTH
515         #error If configUSE_TIMERS is set to 1 then configTIMER_QUEUE_LENGTH must also be defined.
516     #endif /* configTIMER_QUEUE_LENGTH */
517
518     #ifndef configTIMER_TASK_STACK_DEPTH
519         #error If configUSE_TIMERS is set to 1 then configTIMER_TASK_STACK_DEPTH must also be defined.
520     #endif /* configTIMER_TASK_STACK_DEPTH */
521
522     #ifndef portTIMER_CALLBACK_ATTRIBUTE
523         #define portTIMER_CALLBACK_ATTRIBUTE
524     #endif /* portTIMER_CALLBACK_ATTRIBUTE */
525
526 #endif /* configUSE_TIMERS */
527
528 #ifndef portHAS_NESTED_INTERRUPTS
529     #if defined( portSET_INTERRUPT_MASK_FROM_ISR ) && defined( portCLEAR_INTERRUPT_MASK_FROM_ISR )
530         #define portHAS_NESTED_INTERRUPTS    1
531     #else
532         #define portHAS_NESTED_INTERRUPTS    0
533     #endif
534 #endif
535
536 #ifndef portSET_INTERRUPT_MASK_FROM_ISR
537     #if ( portHAS_NESTED_INTERRUPTS == 1 )
538         #error portSET_INTERRUPT_MASK_FROM_ISR must be defined for ports that support nested interrupts (i.e. portHAS_NESTED_INTERRUPTS is set to 1)
539     #else
540         #define portSET_INTERRUPT_MASK_FROM_ISR()    0
541     #endif
542 #else
543     #if ( portHAS_NESTED_INTERRUPTS == 0 )
544         #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)
545     #endif
546 #endif
547
548 #ifndef portCLEAR_INTERRUPT_MASK_FROM_ISR
549     #if ( portHAS_NESTED_INTERRUPTS == 1 )
550         #error portCLEAR_INTERRUPT_MASK_FROM_ISR must be defined for ports that support nested interrupts  (i.e. portHAS_NESTED_INTERRUPTS is set to 1)
551     #else
552         #define portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedStatusValue )    ( void ) ( uxSavedStatusValue )
553     #endif
554 #else
555     #if ( portHAS_NESTED_INTERRUPTS == 0 )
556         #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)
557     #endif
558 #endif
559
560 #ifndef portCLEAN_UP_TCB
561     #define portCLEAN_UP_TCB( pxTCB )    ( void ) ( pxTCB )
562 #endif
563
564 #ifndef portPRE_TASK_DELETE_HOOK
565     #define portPRE_TASK_DELETE_HOOK( pvTaskToDelete, pxYieldPending )
566 #endif
567
568 #ifndef portSETUP_TCB
569     #define portSETUP_TCB( pxTCB )    ( void ) ( pxTCB )
570 #endif
571
572 #ifndef portTASK_SWITCH_HOOK
573     #define portTASK_SWITCH_HOOK( pxTCB )    ( void ) ( pxTCB )
574 #endif
575
576 #ifndef configQUEUE_REGISTRY_SIZE
577     #define configQUEUE_REGISTRY_SIZE    0U
578 #endif
579
580 #if ( configQUEUE_REGISTRY_SIZE < 1 )
581     #define vQueueAddToRegistry( xQueue, pcName )
582     #define vQueueUnregisterQueue( xQueue )
583     #define pcQueueGetName( xQueue )
584 #endif
585
586 #ifndef configUSE_MINI_LIST_ITEM
587     #define configUSE_MINI_LIST_ITEM    1
588 #endif
589
590 #ifndef portPOINTER_SIZE_TYPE
591     #define portPOINTER_SIZE_TYPE    uint32_t
592 #endif
593
594 /* Remove any unused trace macros. */
595 #ifndef traceSTART
596
597 /* Used to perform any necessary initialisation - for example, open a file
598  * into which trace is to be written. */
599     #define traceSTART()
600 #endif
601
602 #ifndef traceEND
603
604 /* Use to close a trace, for example close a file into which trace has been
605  * written. */
606     #define traceEND()
607 #endif
608
609 #ifndef traceTASK_SWITCHED_IN
610
611 /* Called after a task has been selected to run.  pxCurrentTCB holds a pointer
612  * to the task control block of the selected task. */
613     #define traceTASK_SWITCHED_IN()
614 #endif
615
616 #ifndef traceINCREASE_TICK_COUNT
617
618 /* Called before stepping the tick count after waking from tickless idle
619  * sleep. */
620     #define traceINCREASE_TICK_COUNT( x )
621 #endif
622
623 #ifndef traceLOW_POWER_IDLE_BEGIN
624     /* Called immediately before entering tickless idle. */
625     #define traceLOW_POWER_IDLE_BEGIN()
626 #endif
627
628 #ifndef traceLOW_POWER_IDLE_END
629     /* Called when returning to the Idle task after a tickless idle. */
630     #define traceLOW_POWER_IDLE_END()
631 #endif
632
633 #ifndef traceTASK_SWITCHED_OUT
634
635 /* Called before a task has been selected to run.  pxCurrentTCB holds a pointer
636  * to the task control block of the task being switched out. */
637     #define traceTASK_SWITCHED_OUT()
638 #endif
639
640 #ifndef traceTASK_PRIORITY_INHERIT
641
642 /* Called when a task attempts to take a mutex that is already held by a
643  * lower priority task.  pxTCBOfMutexHolder is a pointer to the TCB of the task
644  * that holds the mutex.  uxInheritedPriority is the priority the mutex holder
645  * will inherit (the priority of the task that is attempting to obtain the
646  * muted. */
647     #define traceTASK_PRIORITY_INHERIT( pxTCBOfMutexHolder, uxInheritedPriority )
648 #endif
649
650 #ifndef traceTASK_PRIORITY_DISINHERIT
651
652 /* Called when a task releases a mutex, the holding of which had resulted in
653  * the task inheriting the priority of a higher priority task.
654  * pxTCBOfMutexHolder is a pointer to the TCB of the task that is releasing the
655  * mutex.  uxOriginalPriority is the task's configured (base) priority. */
656     #define traceTASK_PRIORITY_DISINHERIT( pxTCBOfMutexHolder, uxOriginalPriority )
657 #endif
658
659 #ifndef traceBLOCKING_ON_QUEUE_RECEIVE
660
661 /* Task is about to block because it cannot read from a
662  * queue/mutex/semaphore.  pxQueue is a pointer to the queue/mutex/semaphore
663  * upon which the read was attempted.  pxCurrentTCB points to the TCB of the
664  * task that attempted the read. */
665     #define traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue )
666 #endif
667
668 #ifndef traceBLOCKING_ON_QUEUE_PEEK
669
670 /* Task is about to block because it cannot read from a
671  * queue/mutex/semaphore.  pxQueue is a pointer to the queue/mutex/semaphore
672  * upon which the read was attempted.  pxCurrentTCB points to the TCB of the
673  * task that attempted the read. */
674     #define traceBLOCKING_ON_QUEUE_PEEK( pxQueue )
675 #endif
676
677 #ifndef traceBLOCKING_ON_QUEUE_SEND
678
679 /* Task is about to block because it cannot write to a
680  * queue/mutex/semaphore.  pxQueue is a pointer to the queue/mutex/semaphore
681  * upon which the write was attempted.  pxCurrentTCB points to the TCB of the
682  * task that attempted the write. */
683     #define traceBLOCKING_ON_QUEUE_SEND( pxQueue )
684 #endif
685
686 #ifndef configCHECK_FOR_STACK_OVERFLOW
687     #define configCHECK_FOR_STACK_OVERFLOW    0
688 #endif
689
690 #ifndef configRECORD_STACK_HIGH_ADDRESS
691     #define configRECORD_STACK_HIGH_ADDRESS    0
692 #endif
693
694 #ifndef configINCLUDE_FREERTOS_TASK_C_ADDITIONS_H
695     #define configINCLUDE_FREERTOS_TASK_C_ADDITIONS_H    0
696 #endif
697
698 /* The following event macros are embedded in the kernel API calls. */
699
700 #ifndef traceMOVED_TASK_TO_READY_STATE
701     #define traceMOVED_TASK_TO_READY_STATE( pxTCB )
702 #endif
703
704 #ifndef tracePOST_MOVED_TASK_TO_READY_STATE
705     #define tracePOST_MOVED_TASK_TO_READY_STATE( pxTCB )
706 #endif
707
708 #ifndef traceMOVED_TASK_TO_DELAYED_LIST
709     #define traceMOVED_TASK_TO_DELAYED_LIST()
710 #endif
711
712 #ifndef traceMOVED_TASK_TO_OVERFLOW_DELAYED_LIST
713     #define traceMOVED_TASK_TO_OVERFLOW_DELAYED_LIST()
714 #endif
715
716 #ifndef traceQUEUE_CREATE
717     #define traceQUEUE_CREATE( pxNewQueue )
718 #endif
719
720 #ifndef traceQUEUE_CREATE_FAILED
721     #define traceQUEUE_CREATE_FAILED( ucQueueType )
722 #endif
723
724 #ifndef traceCREATE_MUTEX
725     #define traceCREATE_MUTEX( pxNewQueue )
726 #endif
727
728 #ifndef traceCREATE_MUTEX_FAILED
729     #define traceCREATE_MUTEX_FAILED()
730 #endif
731
732 #ifndef traceGIVE_MUTEX_RECURSIVE
733     #define traceGIVE_MUTEX_RECURSIVE( pxMutex )
734 #endif
735
736 #ifndef traceGIVE_MUTEX_RECURSIVE_FAILED
737     #define traceGIVE_MUTEX_RECURSIVE_FAILED( pxMutex )
738 #endif
739
740 #ifndef traceTAKE_MUTEX_RECURSIVE
741     #define traceTAKE_MUTEX_RECURSIVE( pxMutex )
742 #endif
743
744 #ifndef traceTAKE_MUTEX_RECURSIVE_FAILED
745     #define traceTAKE_MUTEX_RECURSIVE_FAILED( pxMutex )
746 #endif
747
748 #ifndef traceCREATE_COUNTING_SEMAPHORE
749     #define traceCREATE_COUNTING_SEMAPHORE()
750 #endif
751
752 #ifndef traceCREATE_COUNTING_SEMAPHORE_FAILED
753     #define traceCREATE_COUNTING_SEMAPHORE_FAILED()
754 #endif
755
756 #ifndef traceQUEUE_SET_SEND
757     #define traceQUEUE_SET_SEND    traceQUEUE_SEND
758 #endif
759
760 #ifndef traceQUEUE_SEND
761     #define traceQUEUE_SEND( pxQueue )
762 #endif
763
764 #ifndef traceQUEUE_SEND_FAILED
765     #define traceQUEUE_SEND_FAILED( pxQueue )
766 #endif
767
768 #ifndef traceQUEUE_RECEIVE
769     #define traceQUEUE_RECEIVE( pxQueue )
770 #endif
771
772 #ifndef traceQUEUE_PEEK
773     #define traceQUEUE_PEEK( pxQueue )
774 #endif
775
776 #ifndef traceQUEUE_PEEK_FAILED
777     #define traceQUEUE_PEEK_FAILED( pxQueue )
778 #endif
779
780 #ifndef traceQUEUE_PEEK_FROM_ISR
781     #define traceQUEUE_PEEK_FROM_ISR( pxQueue )
782 #endif
783
784 #ifndef traceQUEUE_RECEIVE_FAILED
785     #define traceQUEUE_RECEIVE_FAILED( pxQueue )
786 #endif
787
788 #ifndef traceQUEUE_SEND_FROM_ISR
789     #define traceQUEUE_SEND_FROM_ISR( pxQueue )
790 #endif
791
792 #ifndef traceQUEUE_SEND_FROM_ISR_FAILED
793     #define traceQUEUE_SEND_FROM_ISR_FAILED( pxQueue )
794 #endif
795
796 #ifndef traceQUEUE_RECEIVE_FROM_ISR
797     #define traceQUEUE_RECEIVE_FROM_ISR( pxQueue )
798 #endif
799
800 #ifndef traceQUEUE_RECEIVE_FROM_ISR_FAILED
801     #define traceQUEUE_RECEIVE_FROM_ISR_FAILED( pxQueue )
802 #endif
803
804 #ifndef traceQUEUE_PEEK_FROM_ISR_FAILED
805     #define traceQUEUE_PEEK_FROM_ISR_FAILED( pxQueue )
806 #endif
807
808 #ifndef traceQUEUE_DELETE
809     #define traceQUEUE_DELETE( pxQueue )
810 #endif
811
812 #ifndef traceTASK_CREATE
813     #define traceTASK_CREATE( pxNewTCB )
814 #endif
815
816 #ifndef traceTASK_CREATE_FAILED
817     #define traceTASK_CREATE_FAILED()
818 #endif
819
820 #ifndef traceTASK_DELETE
821     #define traceTASK_DELETE( pxTaskToDelete )
822 #endif
823
824 #ifndef traceTASK_DELAY_UNTIL
825     #define traceTASK_DELAY_UNTIL( x )
826 #endif
827
828 #ifndef traceTASK_DELAY
829     #define traceTASK_DELAY()
830 #endif
831
832 #ifndef traceTASK_PRIORITY_SET
833     #define traceTASK_PRIORITY_SET( pxTask, uxNewPriority )
834 #endif
835
836 #ifndef traceTASK_SUSPEND
837     #define traceTASK_SUSPEND( pxTaskToSuspend )
838 #endif
839
840 #ifndef traceTASK_RESUME
841     #define traceTASK_RESUME( pxTaskToResume )
842 #endif
843
844 #ifndef traceTASK_RESUME_FROM_ISR
845     #define traceTASK_RESUME_FROM_ISR( pxTaskToResume )
846 #endif
847
848 #ifndef traceTASK_INCREMENT_TICK
849     #define traceTASK_INCREMENT_TICK( xTickCount )
850 #endif
851
852 #ifndef traceTIMER_CREATE
853     #define traceTIMER_CREATE( pxNewTimer )
854 #endif
855
856 #ifndef traceTIMER_CREATE_FAILED
857     #define traceTIMER_CREATE_FAILED()
858 #endif
859
860 #ifndef traceTIMER_COMMAND_SEND
861     #define traceTIMER_COMMAND_SEND( xTimer, xMessageID, xMessageValueValue, xReturn )
862 #endif
863
864 #ifndef traceTIMER_EXPIRED
865     #define traceTIMER_EXPIRED( pxTimer )
866 #endif
867
868 #ifndef traceTIMER_COMMAND_RECEIVED
869     #define traceTIMER_COMMAND_RECEIVED( pxTimer, xMessageID, xMessageValue )
870 #endif
871
872 #ifndef traceMALLOC
873     #define traceMALLOC( pvAddress, uiSize )
874 #endif
875
876 #ifndef traceFREE
877     #define traceFREE( pvAddress, uiSize )
878 #endif
879
880 #ifndef traceEVENT_GROUP_CREATE
881     #define traceEVENT_GROUP_CREATE( xEventGroup )
882 #endif
883
884 #ifndef traceEVENT_GROUP_CREATE_FAILED
885     #define traceEVENT_GROUP_CREATE_FAILED()
886 #endif
887
888 #ifndef traceEVENT_GROUP_SYNC_BLOCK
889     #define traceEVENT_GROUP_SYNC_BLOCK( xEventGroup, uxBitsToSet, uxBitsToWaitFor )
890 #endif
891
892 #ifndef traceEVENT_GROUP_SYNC_END
893     #define traceEVENT_GROUP_SYNC_END( xEventGroup, uxBitsToSet, uxBitsToWaitFor, xTimeoutOccurred )    ( void ) ( xTimeoutOccurred )
894 #endif
895
896 #ifndef traceEVENT_GROUP_WAIT_BITS_BLOCK
897     #define traceEVENT_GROUP_WAIT_BITS_BLOCK( xEventGroup, uxBitsToWaitFor )
898 #endif
899
900 #ifndef traceEVENT_GROUP_WAIT_BITS_END
901     #define traceEVENT_GROUP_WAIT_BITS_END( xEventGroup, uxBitsToWaitFor, xTimeoutOccurred )    ( void ) ( xTimeoutOccurred )
902 #endif
903
904 #ifndef traceEVENT_GROUP_CLEAR_BITS
905     #define traceEVENT_GROUP_CLEAR_BITS( xEventGroup, uxBitsToClear )
906 #endif
907
908 #ifndef traceEVENT_GROUP_CLEAR_BITS_FROM_ISR
909     #define traceEVENT_GROUP_CLEAR_BITS_FROM_ISR( xEventGroup, uxBitsToClear )
910 #endif
911
912 #ifndef traceEVENT_GROUP_SET_BITS
913     #define traceEVENT_GROUP_SET_BITS( xEventGroup, uxBitsToSet )
914 #endif
915
916 #ifndef traceEVENT_GROUP_SET_BITS_FROM_ISR
917     #define traceEVENT_GROUP_SET_BITS_FROM_ISR( xEventGroup, uxBitsToSet )
918 #endif
919
920 #ifndef traceEVENT_GROUP_DELETE
921     #define traceEVENT_GROUP_DELETE( xEventGroup )
922 #endif
923
924 #ifndef tracePEND_FUNC_CALL
925     #define tracePEND_FUNC_CALL( xFunctionToPend, pvParameter1, ulParameter2, ret )
926 #endif
927
928 #ifndef tracePEND_FUNC_CALL_FROM_ISR
929     #define tracePEND_FUNC_CALL_FROM_ISR( xFunctionToPend, pvParameter1, ulParameter2, ret )
930 #endif
931
932 #ifndef traceQUEUE_REGISTRY_ADD
933     #define traceQUEUE_REGISTRY_ADD( xQueue, pcQueueName )
934 #endif
935
936 #ifndef traceTASK_NOTIFY_TAKE_BLOCK
937     #define traceTASK_NOTIFY_TAKE_BLOCK( uxIndexToWait )
938 #endif
939
940 #ifndef traceTASK_NOTIFY_TAKE
941     #define traceTASK_NOTIFY_TAKE( uxIndexToWait )
942 #endif
943
944 #ifndef traceTASK_NOTIFY_WAIT_BLOCK
945     #define traceTASK_NOTIFY_WAIT_BLOCK( uxIndexToWait )
946 #endif
947
948 #ifndef traceTASK_NOTIFY_WAIT
949     #define traceTASK_NOTIFY_WAIT( uxIndexToWait )
950 #endif
951
952 #ifndef traceTASK_NOTIFY
953     #define traceTASK_NOTIFY( uxIndexToNotify )
954 #endif
955
956 #ifndef traceTASK_NOTIFY_FROM_ISR
957     #define traceTASK_NOTIFY_FROM_ISR( uxIndexToNotify )
958 #endif
959
960 #ifndef traceTASK_NOTIFY_GIVE_FROM_ISR
961     #define traceTASK_NOTIFY_GIVE_FROM_ISR( uxIndexToNotify )
962 #endif
963
964 #ifndef traceISR_EXIT_TO_SCHEDULER
965     #define traceISR_EXIT_TO_SCHEDULER()
966 #endif
967
968 #ifndef traceISR_EXIT
969     #define traceISR_EXIT()
970 #endif
971
972 #ifndef traceISR_ENTER
973     #define traceISR_ENTER()
974 #endif
975
976 #ifndef traceSTREAM_BUFFER_CREATE_FAILED
977     #define traceSTREAM_BUFFER_CREATE_FAILED( xIsMessageBuffer )
978 #endif
979
980 #ifndef traceSTREAM_BUFFER_CREATE_STATIC_FAILED
981     #define traceSTREAM_BUFFER_CREATE_STATIC_FAILED( xReturn, xIsMessageBuffer )
982 #endif
983
984 #ifndef traceSTREAM_BUFFER_CREATE
985     #define traceSTREAM_BUFFER_CREATE( pxStreamBuffer, xIsMessageBuffer )
986 #endif
987
988 #ifndef traceSTREAM_BUFFER_DELETE
989     #define traceSTREAM_BUFFER_DELETE( xStreamBuffer )
990 #endif
991
992 #ifndef traceSTREAM_BUFFER_RESET
993     #define traceSTREAM_BUFFER_RESET( xStreamBuffer )
994 #endif
995
996 #ifndef traceBLOCKING_ON_STREAM_BUFFER_SEND
997     #define traceBLOCKING_ON_STREAM_BUFFER_SEND( xStreamBuffer )
998 #endif
999
1000 #ifndef traceSTREAM_BUFFER_SEND
1001     #define traceSTREAM_BUFFER_SEND( xStreamBuffer, xBytesSent )
1002 #endif
1003
1004 #ifndef traceSTREAM_BUFFER_SEND_FAILED
1005     #define traceSTREAM_BUFFER_SEND_FAILED( xStreamBuffer )
1006 #endif
1007
1008 #ifndef traceSTREAM_BUFFER_SEND_FROM_ISR
1009     #define traceSTREAM_BUFFER_SEND_FROM_ISR( xStreamBuffer, xBytesSent )
1010 #endif
1011
1012 #ifndef traceBLOCKING_ON_STREAM_BUFFER_RECEIVE
1013     #define traceBLOCKING_ON_STREAM_BUFFER_RECEIVE( xStreamBuffer )
1014 #endif
1015
1016 #ifndef traceSTREAM_BUFFER_RECEIVE
1017     #define traceSTREAM_BUFFER_RECEIVE( xStreamBuffer, xReceivedLength )
1018 #endif
1019
1020 #ifndef traceSTREAM_BUFFER_RECEIVE_FAILED
1021     #define traceSTREAM_BUFFER_RECEIVE_FAILED( xStreamBuffer )
1022 #endif
1023
1024 #ifndef traceSTREAM_BUFFER_RECEIVE_FROM_ISR
1025     #define traceSTREAM_BUFFER_RECEIVE_FROM_ISR( xStreamBuffer, xReceivedLength )
1026 #endif
1027
1028 #ifndef traceENTER_xEventGroupCreateStatic
1029     #define traceENTER_xEventGroupCreateStatic( pxEventGroupBuffer )
1030 #endif
1031
1032 #ifndef traceRETURN_xEventGroupCreateStatic
1033     #define traceRETURN_xEventGroupCreateStatic( pxEventBits )
1034 #endif
1035
1036 #ifndef traceENTER_xEventGroupCreate
1037     #define traceENTER_xEventGroupCreate()
1038 #endif
1039
1040 #ifndef traceRETURN_xEventGroupCreate
1041     #define traceRETURN_xEventGroupCreate( pxEventBits )
1042 #endif
1043
1044 #ifndef traceENTER_xEventGroupSync
1045     #define traceENTER_xEventGroupSync( xEventGroup, uxBitsToSet, uxBitsToWaitFor, xTicksToWait )
1046 #endif
1047
1048 #ifndef traceRETURN_xEventGroupSync
1049     #define traceRETURN_xEventGroupSync( uxReturn )
1050 #endif
1051
1052 #ifndef traceENTER_xEventGroupWaitBits
1053     #define traceENTER_xEventGroupWaitBits( xEventGroup, uxBitsToWaitFor, xClearOnExit, xWaitForAllBits, xTicksToWait )
1054 #endif
1055
1056 #ifndef traceRETURN_xEventGroupWaitBits
1057     #define traceRETURN_xEventGroupWaitBits( uxReturn )
1058 #endif
1059
1060 #ifndef traceENTER_xEventGroupClearBits
1061     #define traceENTER_xEventGroupClearBits( xEventGroup, uxBitsToClear )
1062 #endif
1063
1064 #ifndef traceRETURN_xEventGroupClearBits
1065     #define traceRETURN_xEventGroupClearBits( uxReturn )
1066 #endif
1067
1068 #ifndef traceENTER_xEventGroupClearBitsFromISR
1069     #define traceENTER_xEventGroupClearBitsFromISR( xEventGroup, uxBitsToClear )
1070 #endif
1071
1072 #ifndef traceRETURN_xEventGroupClearBitsFromISR
1073     #define traceRETURN_xEventGroupClearBitsFromISR( xReturn )
1074 #endif
1075
1076 #ifndef traceENTER_xEventGroupGetBitsFromISR
1077     #define traceENTER_xEventGroupGetBitsFromISR( xEventGroup )
1078 #endif
1079
1080 #ifndef traceRETURN_xEventGroupGetBitsFromISR
1081     #define traceRETURN_xEventGroupGetBitsFromISR( uxReturn )
1082 #endif
1083
1084 #ifndef traceENTER_xEventGroupSetBits
1085     #define traceENTER_xEventGroupSetBits( xEventGroup, uxBitsToSet )
1086 #endif
1087
1088 #ifndef traceRETURN_xEventGroupSetBits
1089     #define traceRETURN_xEventGroupSetBits( uxEventBits )
1090 #endif
1091
1092 #ifndef traceENTER_vEventGroupDelete
1093     #define traceENTER_vEventGroupDelete( xEventGroup )
1094 #endif
1095
1096 #ifndef traceRETURN_vEventGroupDelete
1097     #define traceRETURN_vEventGroupDelete()
1098 #endif
1099
1100 #ifndef traceENTER_xEventGroupGetStaticBuffer
1101     #define traceENTER_xEventGroupGetStaticBuffer( xEventGroup, ppxEventGroupBuffer )
1102 #endif
1103
1104 #ifndef traceRETURN_xEventGroupGetStaticBuffer
1105     #define traceRETURN_xEventGroupGetStaticBuffer( xReturn )
1106 #endif
1107
1108 #ifndef traceENTER_vEventGroupSetBitsCallback
1109     #define traceENTER_vEventGroupSetBitsCallback( pvEventGroup, ulBitsToSet )
1110 #endif
1111
1112 #ifndef traceRETURN_vEventGroupSetBitsCallback
1113     #define traceRETURN_vEventGroupSetBitsCallback()
1114 #endif
1115
1116 #ifndef traceENTER_vEventGroupClearBitsCallback
1117     #define traceENTER_vEventGroupClearBitsCallback( pvEventGroup, ulBitsToClear )
1118 #endif
1119
1120 #ifndef traceRETURN_vEventGroupClearBitsCallback
1121     #define traceRETURN_vEventGroupClearBitsCallback()
1122 #endif
1123
1124 #ifndef traceENTER_xEventGroupSetBitsFromISR
1125     #define traceENTER_xEventGroupSetBitsFromISR( xEventGroup, uxBitsToSet, pxHigherPriorityTaskWoken )
1126 #endif
1127
1128 #ifndef traceRETURN_xEventGroupSetBitsFromISR
1129     #define traceRETURN_xEventGroupSetBitsFromISR( xReturn )
1130 #endif
1131
1132 #ifndef traceENTER_uxEventGroupGetNumber
1133     #define traceENTER_uxEventGroupGetNumber( xEventGroup )
1134 #endif
1135
1136 #ifndef traceRETURN_uxEventGroupGetNumber
1137     #define traceRETURN_uxEventGroupGetNumber( xReturn )
1138 #endif
1139
1140 #ifndef traceENTER_vEventGroupSetNumber
1141     #define traceENTER_vEventGroupSetNumber( xEventGroup, uxEventGroupNumber )
1142 #endif
1143
1144 #ifndef traceRETURN_vEventGroupSetNumber
1145     #define traceRETURN_vEventGroupSetNumber()
1146 #endif
1147
1148 #ifndef traceENTER_xQueueGenericReset
1149     #define traceENTER_xQueueGenericReset( xQueue, xNewQueue )
1150 #endif
1151
1152 #ifndef traceRETURN_xQueueGenericReset
1153     #define traceRETURN_xQueueGenericReset( xReturn )
1154 #endif
1155
1156 #ifndef traceENTER_xQueueGenericCreateStatic
1157     #define traceENTER_xQueueGenericCreateStatic( uxQueueLength, uxItemSize, pucQueueStorage, pxStaticQueue, ucQueueType )
1158 #endif
1159
1160 #ifndef traceRETURN_xQueueGenericCreateStatic
1161     #define traceRETURN_xQueueGenericCreateStatic( pxNewQueue )
1162 #endif
1163
1164 #ifndef traceENTER_xQueueGenericGetStaticBuffers
1165     #define traceENTER_xQueueGenericGetStaticBuffers( xQueue, ppucQueueStorage, ppxStaticQueue )
1166 #endif
1167
1168 #ifndef traceRETURN_xQueueGenericGetStaticBuffers
1169     #define traceRETURN_xQueueGenericGetStaticBuffers( xReturn )
1170 #endif
1171
1172 #ifndef traceENTER_xQueueGenericCreate
1173     #define traceENTER_xQueueGenericCreate( uxQueueLength, uxItemSize, ucQueueType )
1174 #endif
1175
1176 #ifndef traceRETURN_xQueueGenericCreate
1177     #define traceRETURN_xQueueGenericCreate( pxNewQueue )
1178 #endif
1179
1180 #ifndef traceENTER_xQueueCreateMutex
1181     #define traceENTER_xQueueCreateMutex( ucQueueType )
1182 #endif
1183
1184 #ifndef traceRETURN_xQueueCreateMutex
1185     #define traceRETURN_xQueueCreateMutex( xNewQueue )
1186 #endif
1187
1188 #ifndef traceENTER_xQueueCreateMutexStatic
1189     #define traceENTER_xQueueCreateMutexStatic( ucQueueType, pxStaticQueue )
1190 #endif
1191
1192 #ifndef traceRETURN_xQueueCreateMutexStatic
1193     #define traceRETURN_xQueueCreateMutexStatic( xNewQueue )
1194 #endif
1195
1196 #ifndef traceENTER_xQueueGetMutexHolder
1197     #define traceENTER_xQueueGetMutexHolder( xSemaphore )
1198 #endif
1199
1200 #ifndef traceRETURN_xQueueGetMutexHolder
1201     #define traceRETURN_xQueueGetMutexHolder( pxReturn )
1202 #endif
1203
1204 #ifndef traceENTER_xQueueGetMutexHolderFromISR
1205     #define traceENTER_xQueueGetMutexHolderFromISR( xSemaphore )
1206 #endif
1207
1208 #ifndef traceRETURN_xQueueGetMutexHolderFromISR
1209     #define traceRETURN_xQueueGetMutexHolderFromISR( pxReturn )
1210 #endif
1211
1212 #ifndef traceENTER_xQueueGiveMutexRecursive
1213     #define traceENTER_xQueueGiveMutexRecursive( xMutex )
1214 #endif
1215
1216 #ifndef traceRETURN_xQueueGiveMutexRecursive
1217     #define traceRETURN_xQueueGiveMutexRecursive( xReturn )
1218 #endif
1219
1220 #ifndef traceENTER_xQueueTakeMutexRecursive
1221     #define traceENTER_xQueueTakeMutexRecursive( xMutex, xTicksToWait )
1222 #endif
1223
1224 #ifndef traceRETURN_xQueueTakeMutexRecursive
1225     #define traceRETURN_xQueueTakeMutexRecursive( xReturn )
1226 #endif
1227
1228 #ifndef traceENTER_xQueueCreateCountingSemaphoreStatic
1229     #define traceENTER_xQueueCreateCountingSemaphoreStatic( uxMaxCount, uxInitialCount, pxStaticQueue )
1230 #endif
1231
1232 #ifndef traceRETURN_xQueueCreateCountingSemaphoreStatic
1233     #define traceRETURN_xQueueCreateCountingSemaphoreStatic( xHandle )
1234 #endif
1235
1236 #ifndef traceENTER_xQueueCreateCountingSemaphore
1237     #define traceENTER_xQueueCreateCountingSemaphore( uxMaxCount, uxInitialCount )
1238 #endif
1239
1240 #ifndef traceRETURN_xQueueCreateCountingSemaphore
1241     #define traceRETURN_xQueueCreateCountingSemaphore( xHandle )
1242 #endif
1243
1244 #ifndef traceENTER_xQueueGenericSend
1245     #define traceENTER_xQueueGenericSend( xQueue, pvItemToQueue, xTicksToWait, xCopyPosition )
1246 #endif
1247
1248 #ifndef traceRETURN_xQueueGenericSend
1249     #define traceRETURN_xQueueGenericSend( xReturn )
1250 #endif
1251
1252 #ifndef traceENTER_xQueueGenericSendFromISR
1253     #define traceENTER_xQueueGenericSendFromISR( xQueue, pvItemToQueue, pxHigherPriorityTaskWoken, xCopyPosition )
1254 #endif
1255
1256 #ifndef traceRETURN_xQueueGenericSendFromISR
1257     #define traceRETURN_xQueueGenericSendFromISR( xReturn )
1258 #endif
1259
1260 #ifndef traceENTER_xQueueGiveFromISR
1261     #define traceENTER_xQueueGiveFromISR( xQueue, pxHigherPriorityTaskWoken )
1262 #endif
1263
1264 #ifndef traceRETURN_xQueueGiveFromISR
1265     #define traceRETURN_xQueueGiveFromISR( xReturn )
1266 #endif
1267
1268 #ifndef traceENTER_xQueueReceive
1269     #define traceENTER_xQueueReceive( xQueue, pvBuffer, xTicksToWait )
1270 #endif
1271
1272 #ifndef traceRETURN_xQueueReceive
1273     #define traceRETURN_xQueueReceive( xReturn )
1274 #endif
1275
1276 #ifndef traceENTER_xQueueSemaphoreTake
1277     #define traceENTER_xQueueSemaphoreTake( xQueue, xTicksToWait )
1278 #endif
1279
1280 #ifndef traceRETURN_xQueueSemaphoreTake
1281     #define traceRETURN_xQueueSemaphoreTake( xReturn )
1282 #endif
1283
1284 #ifndef traceENTER_xQueuePeek
1285     #define traceENTER_xQueuePeek( xQueue, pvBuffer, xTicksToWait )
1286 #endif
1287
1288 #ifndef traceRETURN_xQueuePeek
1289     #define traceRETURN_xQueuePeek( xReturn )
1290 #endif
1291
1292 #ifndef traceENTER_xQueueReceiveFromISR
1293     #define traceENTER_xQueueReceiveFromISR( xQueue, pvBuffer, pxHigherPriorityTaskWoken )
1294 #endif
1295
1296 #ifndef traceRETURN_xQueueReceiveFromISR
1297     #define traceRETURN_xQueueReceiveFromISR( xReturn )
1298 #endif
1299
1300 #ifndef traceENTER_xQueuePeekFromISR
1301     #define traceENTER_xQueuePeekFromISR( xQueue, pvBuffer )
1302 #endif
1303
1304 #ifndef traceRETURN_xQueuePeekFromISR
1305     #define traceRETURN_xQueuePeekFromISR( xReturn )
1306 #endif
1307
1308 #ifndef traceENTER_uxQueueMessagesWaiting
1309     #define traceENTER_uxQueueMessagesWaiting( xQueue )
1310 #endif
1311
1312 #ifndef traceRETURN_uxQueueMessagesWaiting
1313     #define traceRETURN_uxQueueMessagesWaiting( uxReturn )
1314 #endif
1315
1316 #ifndef traceENTER_uxQueueSpacesAvailable
1317     #define traceENTER_uxQueueSpacesAvailable( xQueue )
1318 #endif
1319
1320 #ifndef traceRETURN_uxQueueSpacesAvailable
1321     #define traceRETURN_uxQueueSpacesAvailable( uxReturn )
1322 #endif
1323
1324 #ifndef traceENTER_uxQueueMessagesWaitingFromISR
1325     #define traceENTER_uxQueueMessagesWaitingFromISR( xQueue )
1326 #endif
1327
1328 #ifndef traceRETURN_uxQueueMessagesWaitingFromISR
1329     #define traceRETURN_uxQueueMessagesWaitingFromISR( uxReturn )
1330 #endif
1331
1332 #ifndef traceENTER_vQueueDelete
1333     #define traceENTER_vQueueDelete( xQueue )
1334 #endif
1335
1336 #ifndef traceRETURN_vQueueDelete
1337     #define traceRETURN_vQueueDelete()
1338 #endif
1339
1340 #ifndef traceENTER_uxQueueGetQueueNumber
1341     #define traceENTER_uxQueueGetQueueNumber( xQueue )
1342 #endif
1343
1344 #ifndef traceRETURN_uxQueueGetQueueNumber
1345     #define traceRETURN_uxQueueGetQueueNumber( uxQueueNumber )
1346 #endif
1347
1348 #ifndef traceENTER_vQueueSetQueueNumber
1349     #define traceENTER_vQueueSetQueueNumber( xQueue, uxQueueNumber )
1350 #endif
1351
1352 #ifndef traceRETURN_vQueueSetQueueNumber
1353     #define traceRETURN_vQueueSetQueueNumber()
1354 #endif
1355
1356 #ifndef traceENTER_ucQueueGetQueueType
1357     #define traceENTER_ucQueueGetQueueType( xQueue )
1358 #endif
1359
1360 #ifndef traceRETURN_ucQueueGetQueueType
1361     #define traceRETURN_ucQueueGetQueueType( ucQueueType )
1362 #endif
1363
1364 #ifndef traceENTER_uxQueueGetQueueItemSize
1365     #define traceENTER_uxQueueGetQueueItemSize( xQueue )
1366 #endif
1367
1368 #ifndef traceRETURN_uxQueueGetQueueItemSize
1369     #define traceRETURN_uxQueueGetQueueItemSize( uxItemSize )
1370 #endif
1371
1372 #ifndef traceENTER_uxQueueGetQueueLength
1373     #define traceENTER_uxQueueGetQueueLength( xQueue )
1374 #endif
1375
1376 #ifndef traceRETURN_uxQueueGetQueueLength
1377     #define traceRETURN_uxQueueGetQueueLength( uxLength )
1378 #endif
1379
1380 #ifndef traceENTER_xQueueIsQueueEmptyFromISR
1381     #define traceENTER_xQueueIsQueueEmptyFromISR( xQueue )
1382 #endif
1383
1384 #ifndef traceRETURN_xQueueIsQueueEmptyFromISR
1385     #define traceRETURN_xQueueIsQueueEmptyFromISR( xReturn )
1386 #endif
1387
1388 #ifndef traceENTER_xQueueIsQueueFullFromISR
1389     #define traceENTER_xQueueIsQueueFullFromISR( xQueue )
1390 #endif
1391
1392 #ifndef traceRETURN_xQueueIsQueueFullFromISR
1393     #define traceRETURN_xQueueIsQueueFullFromISR( xReturn )
1394 #endif
1395
1396 #ifndef traceENTER_xQueueCRSend
1397     #define traceENTER_xQueueCRSend( xQueue, pvItemToQueue, xTicksToWait )
1398 #endif
1399
1400 #ifndef traceRETURN_xQueueCRSend
1401     #define traceRETURN_xQueueCRSend( xReturn )
1402 #endif
1403
1404 #ifndef traceENTER_xQueueCRReceive
1405     #define traceENTER_xQueueCRReceive( xQueue, pvBuffer, xTicksToWait )
1406 #endif
1407
1408 #ifndef traceRETURN_xQueueCRReceive
1409     #define traceRETURN_xQueueCRReceive( xReturn )
1410 #endif
1411
1412 #ifndef traceENTER_xQueueCRSendFromISR
1413     #define traceENTER_xQueueCRSendFromISR( xQueue, pvItemToQueue, xCoRoutinePreviouslyWoken )
1414 #endif
1415
1416 #ifndef traceRETURN_xQueueCRSendFromISR
1417     #define traceRETURN_xQueueCRSendFromISR( xCoRoutinePreviouslyWoken )
1418 #endif
1419
1420 #ifndef traceENTER_xQueueCRReceiveFromISR
1421     #define traceENTER_xQueueCRReceiveFromISR( xQueue, pvBuffer, pxCoRoutineWoken )
1422 #endif
1423
1424 #ifndef traceRETURN_xQueueCRReceiveFromISR
1425     #define traceRETURN_xQueueCRReceiveFromISR( xReturn )
1426 #endif
1427
1428 #ifndef traceENTER_vQueueAddToRegistry
1429     #define traceENTER_vQueueAddToRegistry( xQueue, pcQueueName )
1430 #endif
1431
1432 #ifndef traceRETURN_vQueueAddToRegistry
1433     #define traceRETURN_vQueueAddToRegistry()
1434 #endif
1435
1436 #ifndef traceENTER_pcQueueGetName
1437     #define traceENTER_pcQueueGetName( xQueue )
1438 #endif
1439
1440 #ifndef traceRETURN_pcQueueGetName
1441     #define traceRETURN_pcQueueGetName( pcReturn )
1442 #endif
1443
1444 #ifndef traceENTER_vQueueUnregisterQueue
1445     #define traceENTER_vQueueUnregisterQueue( xQueue )
1446 #endif
1447
1448 #ifndef traceRETURN_vQueueUnregisterQueue
1449     #define traceRETURN_vQueueUnregisterQueue()
1450 #endif
1451
1452 #ifndef traceENTER_vQueueWaitForMessageRestricted
1453     #define traceENTER_vQueueWaitForMessageRestricted( xQueue, xTicksToWait, xWaitIndefinitely )
1454 #endif
1455
1456 #ifndef traceRETURN_vQueueWaitForMessageRestricted
1457     #define traceRETURN_vQueueWaitForMessageRestricted()
1458 #endif
1459
1460 #ifndef traceENTER_xQueueCreateSet
1461     #define traceENTER_xQueueCreateSet( uxEventQueueLength )
1462 #endif
1463
1464 #ifndef traceRETURN_xQueueCreateSet
1465     #define traceRETURN_xQueueCreateSet( pxQueue )
1466 #endif
1467
1468 #ifndef traceENTER_xQueueAddToSet
1469     #define traceENTER_xQueueAddToSet( xQueueOrSemaphore, xQueueSet )
1470 #endif
1471
1472 #ifndef traceRETURN_xQueueAddToSet
1473     #define traceRETURN_xQueueAddToSet( xReturn )
1474 #endif
1475
1476 #ifndef traceENTER_xQueueRemoveFromSet
1477     #define traceENTER_xQueueRemoveFromSet( xQueueOrSemaphore, xQueueSet )
1478 #endif
1479
1480 #ifndef traceRETURN_xQueueRemoveFromSet
1481     #define traceRETURN_xQueueRemoveFromSet( xReturn )
1482 #endif
1483
1484 #ifndef traceENTER_xQueueSelectFromSet
1485     #define traceENTER_xQueueSelectFromSet( xQueueSet, xTicksToWait )
1486 #endif
1487
1488 #ifndef traceRETURN_xQueueSelectFromSet
1489     #define traceRETURN_xQueueSelectFromSet( xReturn )
1490 #endif
1491
1492 #ifndef traceENTER_xQueueSelectFromSetFromISR
1493     #define traceENTER_xQueueSelectFromSetFromISR( xQueueSet )
1494 #endif
1495
1496 #ifndef traceRETURN_xQueueSelectFromSetFromISR
1497     #define traceRETURN_xQueueSelectFromSetFromISR( xReturn )
1498 #endif
1499
1500 #ifndef traceENTER_xTimerCreateTimerTask
1501     #define traceENTER_xTimerCreateTimerTask()
1502 #endif
1503
1504 #ifndef traceRETURN_xTimerCreateTimerTask
1505     #define traceRETURN_xTimerCreateTimerTask( xReturn )
1506 #endif
1507
1508 #ifndef traceENTER_xTimerCreate
1509     #define traceENTER_xTimerCreate( pcTimerName, xTimerPeriodInTicks, xAutoReload, pvTimerID, pxCallbackFunction )
1510 #endif
1511
1512 #ifndef traceRETURN_xTimerCreate
1513     #define traceRETURN_xTimerCreate( pxNewTimer )
1514 #endif
1515
1516 #ifndef traceENTER_xTimerCreateStatic
1517     #define traceENTER_xTimerCreateStatic( pcTimerName, xTimerPeriodInTicks, xAutoReload, pvTimerID, pxCallbackFunction, pxTimerBuffer )
1518 #endif
1519
1520 #ifndef traceRETURN_xTimerCreateStatic
1521     #define traceRETURN_xTimerCreateStatic( pxNewTimer )
1522 #endif
1523
1524 #ifndef traceENTER_xTimerGenericCommandFromTask
1525     #define traceENTER_xTimerGenericCommandFromTask( xTimer, xCommandID, xOptionalValue, pxHigherPriorityTaskWoken, xTicksToWait )
1526 #endif
1527
1528 #ifndef traceRETURN_xTimerGenericCommandFromTask
1529     #define traceRETURN_xTimerGenericCommandFromTask( xReturn )
1530 #endif
1531
1532 #ifndef traceENTER_xTimerGenericCommandFromISR
1533     #define traceENTER_xTimerGenericCommandFromISR( xTimer, xCommandID, xOptionalValue, pxHigherPriorityTaskWoken, xTicksToWait )
1534 #endif
1535
1536 #ifndef traceRETURN_xTimerGenericCommandFromISR
1537     #define traceRETURN_xTimerGenericCommandFromISR( xReturn )
1538 #endif
1539
1540 #ifndef traceENTER_xTimerGetTimerDaemonTaskHandle
1541     #define traceENTER_xTimerGetTimerDaemonTaskHandle()
1542 #endif
1543
1544 #ifndef traceRETURN_xTimerGetTimerDaemonTaskHandle
1545     #define traceRETURN_xTimerGetTimerDaemonTaskHandle( xTimerTaskHandle )
1546 #endif
1547
1548 #ifndef traceENTER_xTimerGetPeriod
1549     #define traceENTER_xTimerGetPeriod( xTimer )
1550 #endif
1551
1552 #ifndef traceRETURN_xTimerGetPeriod
1553     #define traceRETURN_xTimerGetPeriod( xTimerPeriodInTicks )
1554 #endif
1555
1556 #ifndef traceENTER_vTimerSetReloadMode
1557     #define traceENTER_vTimerSetReloadMode( xTimer, xAutoReload )
1558 #endif
1559
1560 #ifndef traceRETURN_vTimerSetReloadMode
1561     #define traceRETURN_vTimerSetReloadMode()
1562 #endif
1563
1564 #ifndef traceENTER_xTimerGetReloadMode
1565     #define traceENTER_xTimerGetReloadMode( xTimer )
1566 #endif
1567
1568 #ifndef traceRETURN_xTimerGetReloadMode
1569     #define traceRETURN_xTimerGetReloadMode( xReturn )
1570 #endif
1571
1572 #ifndef traceENTER_uxTimerGetReloadMode
1573     #define traceENTER_uxTimerGetReloadMode( xTimer )
1574 #endif
1575
1576 #ifndef traceRETURN_uxTimerGetReloadMode
1577     #define traceRETURN_uxTimerGetReloadMode( uxReturn )
1578 #endif
1579
1580 #ifndef traceENTER_xTimerGetExpiryTime
1581     #define traceENTER_xTimerGetExpiryTime( xTimer )
1582 #endif
1583
1584 #ifndef traceRETURN_xTimerGetExpiryTime
1585     #define traceRETURN_xTimerGetExpiryTime( xReturn )
1586 #endif
1587
1588 #ifndef traceENTER_xTimerGetStaticBuffer
1589     #define traceENTER_xTimerGetStaticBuffer( xTimer, ppxTimerBuffer )
1590 #endif
1591
1592 #ifndef traceRETURN_xTimerGetStaticBuffer
1593     #define traceRETURN_xTimerGetStaticBuffer( xReturn )
1594 #endif
1595
1596 #ifndef traceENTER_pcTimerGetName
1597     #define traceENTER_pcTimerGetName( xTimer )
1598 #endif
1599
1600 #ifndef traceRETURN_pcTimerGetName
1601     #define traceRETURN_pcTimerGetName( pcTimerName )
1602 #endif
1603
1604 #ifndef traceENTER_xTimerIsTimerActive
1605     #define traceENTER_xTimerIsTimerActive( xTimer )
1606 #endif
1607
1608 #ifndef traceRETURN_xTimerIsTimerActive
1609     #define traceRETURN_xTimerIsTimerActive( xReturn )
1610 #endif
1611
1612 #ifndef traceENTER_pvTimerGetTimerID
1613     #define traceENTER_pvTimerGetTimerID( xTimer )
1614 #endif
1615
1616 #ifndef traceRETURN_pvTimerGetTimerID
1617     #define traceRETURN_pvTimerGetTimerID( pvReturn )
1618 #endif
1619
1620 #ifndef traceENTER_vTimerSetTimerID
1621     #define traceENTER_vTimerSetTimerID( xTimer, pvNewID )
1622 #endif
1623
1624 #ifndef traceRETURN_vTimerSetTimerID
1625     #define traceRETURN_vTimerSetTimerID()
1626 #endif
1627
1628 #ifndef traceENTER_xTimerPendFunctionCallFromISR
1629     #define traceENTER_xTimerPendFunctionCallFromISR( xFunctionToPend, pvParameter1, ulParameter2, pxHigherPriorityTaskWoken )
1630 #endif
1631
1632 #ifndef traceRETURN_xTimerPendFunctionCallFromISR
1633     #define traceRETURN_xTimerPendFunctionCallFromISR( xReturn )
1634 #endif
1635
1636 #ifndef traceENTER_xTimerPendFunctionCall
1637     #define traceENTER_xTimerPendFunctionCall( xFunctionToPend, pvParameter1, ulParameter2, xTicksToWait )
1638 #endif
1639
1640 #ifndef traceRETURN_xTimerPendFunctionCall
1641     #define traceRETURN_xTimerPendFunctionCall( xReturn )
1642 #endif
1643
1644 #ifndef traceENTER_uxTimerGetTimerNumber
1645     #define traceENTER_uxTimerGetTimerNumber( xTimer )
1646 #endif
1647
1648 #ifndef traceRETURN_uxTimerGetTimerNumber
1649     #define traceRETURN_uxTimerGetTimerNumber( uxTimerNumber )
1650 #endif
1651
1652 #ifndef traceENTER_vTimerSetTimerNumber
1653     #define traceENTER_vTimerSetTimerNumber( xTimer, uxTimerNumber )
1654 #endif
1655
1656 #ifndef traceRETURN_vTimerSetTimerNumber
1657     #define traceRETURN_vTimerSetTimerNumber()
1658 #endif
1659
1660 #ifndef traceENTER_xTaskCreateStatic
1661     #define traceENTER_xTaskCreateStatic( pxTaskCode, pcName, uxStackDepth, pvParameters, uxPriority, puxStackBuffer, pxTaskBuffer )
1662 #endif
1663
1664 #ifndef traceRETURN_xTaskCreateStatic
1665     #define traceRETURN_xTaskCreateStatic( xReturn )
1666 #endif
1667
1668 #ifndef traceENTER_xTaskCreateStaticAffinitySet
1669     #define traceENTER_xTaskCreateStaticAffinitySet( pxTaskCode, pcName, uxStackDepth, pvParameters, uxPriority, puxStackBuffer, pxTaskBuffer, uxCoreAffinityMask )
1670 #endif
1671
1672 #ifndef traceRETURN_xTaskCreateStaticAffinitySet
1673     #define traceRETURN_xTaskCreateStaticAffinitySet( xReturn )
1674 #endif
1675
1676 #ifndef traceENTER_xTaskCreateRestrictedStatic
1677     #define traceENTER_xTaskCreateRestrictedStatic( pxTaskDefinition, pxCreatedTask )
1678 #endif
1679
1680 #ifndef traceRETURN_xTaskCreateRestrictedStatic
1681     #define traceRETURN_xTaskCreateRestrictedStatic( xReturn )
1682 #endif
1683
1684 #ifndef traceENTER_xTaskCreateRestrictedStaticAffinitySet
1685     #define traceENTER_xTaskCreateRestrictedStaticAffinitySet( pxTaskDefinition, uxCoreAffinityMask, pxCreatedTask )
1686 #endif
1687
1688 #ifndef traceRETURN_xTaskCreateRestrictedStaticAffinitySet
1689     #define traceRETURN_xTaskCreateRestrictedStaticAffinitySet( xReturn )
1690 #endif
1691
1692 #ifndef traceENTER_xTaskCreateRestricted
1693     #define traceENTER_xTaskCreateRestricted( pxTaskDefinition, pxCreatedTask )
1694 #endif
1695
1696 #ifndef traceRETURN_xTaskCreateRestricted
1697     #define traceRETURN_xTaskCreateRestricted( xReturn )
1698 #endif
1699
1700 #ifndef traceENTER_xTaskCreateRestrictedAffinitySet
1701     #define traceENTER_xTaskCreateRestrictedAffinitySet( pxTaskDefinition, uxCoreAffinityMask, pxCreatedTask )
1702 #endif
1703
1704 #ifndef traceRETURN_xTaskCreateRestrictedAffinitySet
1705     #define traceRETURN_xTaskCreateRestrictedAffinitySet( xReturn )
1706 #endif
1707
1708 #ifndef traceENTER_xTaskCreate
1709     #define traceENTER_xTaskCreate( pxTaskCode, pcName, uxStackDepth, pvParameters, uxPriority, pxCreatedTask )
1710 #endif
1711
1712 #ifndef traceRETURN_xTaskCreate
1713     #define traceRETURN_xTaskCreate( xReturn )
1714 #endif
1715
1716 #ifndef traceENTER_xTaskCreateAffinitySet
1717     #define traceENTER_xTaskCreateAffinitySet( pxTaskCode, pcName, uxStackDepth, pvParameters, uxPriority, uxCoreAffinityMask, pxCreatedTask )
1718 #endif
1719
1720 #ifndef traceRETURN_xTaskCreateAffinitySet
1721     #define traceRETURN_xTaskCreateAffinitySet( xReturn )
1722 #endif
1723
1724 #ifndef traceENTER_vTaskDelete
1725     #define traceENTER_vTaskDelete( xTaskToDelete )
1726 #endif
1727
1728 #ifndef traceRETURN_vTaskDelete
1729     #define traceRETURN_vTaskDelete()
1730 #endif
1731
1732 #ifndef traceENTER_xTaskDelayUntil
1733     #define traceENTER_xTaskDelayUntil( pxPreviousWakeTime, xTimeIncrement )
1734 #endif
1735
1736 #ifndef traceRETURN_xTaskDelayUntil
1737     #define traceRETURN_xTaskDelayUntil( xShouldDelay )
1738 #endif
1739
1740 #ifndef traceENTER_vTaskDelay
1741     #define traceENTER_vTaskDelay( xTicksToDelay )
1742 #endif
1743
1744 #ifndef traceRETURN_vTaskDelay
1745     #define traceRETURN_vTaskDelay()
1746 #endif
1747
1748 #ifndef traceENTER_eTaskGetState
1749     #define traceENTER_eTaskGetState( xTask )
1750 #endif
1751
1752 #ifndef traceRETURN_eTaskGetState
1753     #define traceRETURN_eTaskGetState( eReturn )
1754 #endif
1755
1756 #ifndef traceENTER_uxTaskPriorityGet
1757     #define traceENTER_uxTaskPriorityGet( xTask )
1758 #endif
1759
1760 #ifndef traceRETURN_uxTaskPriorityGet
1761     #define traceRETURN_uxTaskPriorityGet( uxReturn )
1762 #endif
1763
1764 #ifndef traceENTER_uxTaskPriorityGetFromISR
1765     #define traceENTER_uxTaskPriorityGetFromISR( xTask )
1766 #endif
1767
1768 #ifndef traceRETURN_uxTaskPriorityGetFromISR
1769     #define traceRETURN_uxTaskPriorityGetFromISR( uxReturn )
1770 #endif
1771
1772 #ifndef traceENTER_uxTaskBasePriorityGet
1773     #define traceENTER_uxTaskBasePriorityGet( xTask )
1774 #endif
1775
1776 #ifndef traceRETURN_uxTaskBasePriorityGet
1777     #define traceRETURN_uxTaskBasePriorityGet( uxReturn )
1778 #endif
1779
1780 #ifndef traceENTER_uxTaskBasePriorityGetFromISR
1781     #define traceENTER_uxTaskBasePriorityGetFromISR( xTask )
1782 #endif
1783
1784 #ifndef traceRETURN_uxTaskBasePriorityGetFromISR
1785     #define traceRETURN_uxTaskBasePriorityGetFromISR( uxReturn )
1786 #endif
1787
1788 #ifndef traceENTER_vTaskPrioritySet
1789     #define traceENTER_vTaskPrioritySet( xTask, uxNewPriority )
1790 #endif
1791
1792 #ifndef traceRETURN_vTaskPrioritySet
1793     #define traceRETURN_vTaskPrioritySet()
1794 #endif
1795
1796 #ifndef traceENTER_vTaskCoreAffinitySet
1797     #define traceENTER_vTaskCoreAffinitySet( xTask, uxCoreAffinityMask )
1798 #endif
1799
1800 #ifndef traceRETURN_vTaskCoreAffinitySet
1801     #define traceRETURN_vTaskCoreAffinitySet()
1802 #endif
1803
1804 #ifndef traceENTER_vTaskCoreAffinityGet
1805     #define traceENTER_vTaskCoreAffinityGet( xTask )
1806 #endif
1807
1808 #ifndef traceRETURN_vTaskCoreAffinityGet
1809     #define traceRETURN_vTaskCoreAffinityGet( uxCoreAffinityMask )
1810 #endif
1811
1812 #ifndef traceENTER_vTaskPreemptionDisable
1813     #define traceENTER_vTaskPreemptionDisable( xTask )
1814 #endif
1815
1816 #ifndef traceRETURN_vTaskPreemptionDisable
1817     #define traceRETURN_vTaskPreemptionDisable()
1818 #endif
1819
1820 #ifndef traceENTER_vTaskPreemptionEnable
1821     #define traceENTER_vTaskPreemptionEnable( xTask )
1822 #endif
1823
1824 #ifndef traceRETURN_vTaskPreemptionEnable
1825     #define traceRETURN_vTaskPreemptionEnable()
1826 #endif
1827
1828 #ifndef traceENTER_vTaskSuspend
1829     #define traceENTER_vTaskSuspend( xTaskToSuspend )
1830 #endif
1831
1832 #ifndef traceRETURN_vTaskSuspend
1833     #define traceRETURN_vTaskSuspend()
1834 #endif
1835
1836 #ifndef traceENTER_vTaskResume
1837     #define traceENTER_vTaskResume( xTaskToResume )
1838 #endif
1839
1840 #ifndef traceRETURN_vTaskResume
1841     #define traceRETURN_vTaskResume()
1842 #endif
1843
1844 #ifndef traceENTER_xTaskResumeFromISR
1845     #define traceENTER_xTaskResumeFromISR( xTaskToResume )
1846 #endif
1847
1848 #ifndef traceRETURN_xTaskResumeFromISR
1849     #define traceRETURN_xTaskResumeFromISR( xYieldRequired )
1850 #endif
1851
1852 #ifndef traceENTER_vTaskStartScheduler
1853     #define traceENTER_vTaskStartScheduler()
1854 #endif
1855
1856 #ifndef traceRETURN_vTaskStartScheduler
1857     #define traceRETURN_vTaskStartScheduler()
1858 #endif
1859
1860 #ifndef traceENTER_vTaskEndScheduler
1861     #define traceENTER_vTaskEndScheduler()
1862 #endif
1863
1864 #ifndef traceRETURN_vTaskEndScheduler
1865     #define traceRETURN_vTaskEndScheduler()
1866 #endif
1867
1868 #ifndef traceENTER_vTaskSuspendAll
1869     #define traceENTER_vTaskSuspendAll()
1870 #endif
1871
1872 #ifndef traceRETURN_vTaskSuspendAll
1873     #define traceRETURN_vTaskSuspendAll()
1874 #endif
1875
1876 #ifndef traceENTER_xTaskResumeAll
1877     #define traceENTER_xTaskResumeAll()
1878 #endif
1879
1880 #ifndef traceRETURN_xTaskResumeAll
1881     #define traceRETURN_xTaskResumeAll( xAlreadyYielded )
1882 #endif
1883
1884 #ifndef traceENTER_xTaskGetTickCount
1885     #define traceENTER_xTaskGetTickCount()
1886 #endif
1887
1888 #ifndef traceRETURN_xTaskGetTickCount
1889     #define traceRETURN_xTaskGetTickCount( xTicks )
1890 #endif
1891
1892 #ifndef traceENTER_xTaskGetTickCountFromISR
1893     #define traceENTER_xTaskGetTickCountFromISR()
1894 #endif
1895
1896 #ifndef traceRETURN_xTaskGetTickCountFromISR
1897     #define traceRETURN_xTaskGetTickCountFromISR( xReturn )
1898 #endif
1899
1900 #ifndef traceENTER_uxTaskGetNumberOfTasks
1901     #define traceENTER_uxTaskGetNumberOfTasks()
1902 #endif
1903
1904 #ifndef traceRETURN_uxTaskGetNumberOfTasks
1905     #define traceRETURN_uxTaskGetNumberOfTasks( uxCurrentNumberOfTasks )
1906 #endif
1907
1908 #ifndef traceENTER_pcTaskGetName
1909     #define traceENTER_pcTaskGetName( xTaskToQuery )
1910 #endif
1911
1912 #ifndef traceRETURN_pcTaskGetName
1913     #define traceRETURN_pcTaskGetName( pcTaskName )
1914 #endif
1915
1916 #ifndef traceENTER_xTaskGetHandle
1917     #define traceENTER_xTaskGetHandle( pcNameToQuery )
1918 #endif
1919
1920 #ifndef traceRETURN_xTaskGetHandle
1921     #define traceRETURN_xTaskGetHandle( pxTCB )
1922 #endif
1923
1924 #ifndef traceENTER_xTaskGetStaticBuffers
1925     #define traceENTER_xTaskGetStaticBuffers( xTask, ppuxStackBuffer, ppxTaskBuffer )
1926 #endif
1927
1928 #ifndef traceRETURN_xTaskGetStaticBuffers
1929     #define traceRETURN_xTaskGetStaticBuffers( xReturn )
1930 #endif
1931
1932 #ifndef traceENTER_uxTaskGetSystemState
1933     #define traceENTER_uxTaskGetSystemState( pxTaskStatusArray, uxArraySize, pulTotalRunTime )
1934 #endif
1935
1936 #ifndef traceRETURN_uxTaskGetSystemState
1937     #define traceRETURN_uxTaskGetSystemState( uxTask )
1938 #endif
1939
1940 #if ( configNUMBER_OF_CORES == 1 )
1941     #ifndef traceENTER_xTaskGetIdleTaskHandle
1942         #define traceENTER_xTaskGetIdleTaskHandle()
1943     #endif
1944 #endif
1945
1946 #if ( configNUMBER_OF_CORES == 1 )
1947     #ifndef traceRETURN_xTaskGetIdleTaskHandle
1948         #define traceRETURN_xTaskGetIdleTaskHandle( xIdleTaskHandle )
1949     #endif
1950 #endif
1951
1952 #ifndef traceENTER_xTaskGetIdleTaskHandleForCore
1953     #define traceENTER_xTaskGetIdleTaskHandleForCore( xCoreID )
1954 #endif
1955
1956 #ifndef traceRETURN_xTaskGetIdleTaskHandleForCore
1957     #define traceRETURN_xTaskGetIdleTaskHandleForCore( xIdleTaskHandle )
1958 #endif
1959
1960 #ifndef traceENTER_vTaskStepTick
1961     #define traceENTER_vTaskStepTick( xTicksToJump )
1962 #endif
1963
1964 #ifndef traceRETURN_vTaskStepTick
1965     #define traceRETURN_vTaskStepTick()
1966 #endif
1967
1968 #ifndef traceENTER_xTaskCatchUpTicks
1969     #define traceENTER_xTaskCatchUpTicks( xTicksToCatchUp )
1970 #endif
1971
1972 #ifndef traceRETURN_xTaskCatchUpTicks
1973     #define traceRETURN_xTaskCatchUpTicks( xYieldOccurred )
1974 #endif
1975
1976 #ifndef traceENTER_xTaskAbortDelay
1977     #define traceENTER_xTaskAbortDelay( xTask )
1978 #endif
1979
1980 #ifndef traceRETURN_xTaskAbortDelay
1981     #define traceRETURN_xTaskAbortDelay( xReturn )
1982 #endif
1983
1984 #ifndef traceENTER_xTaskIncrementTick
1985     #define traceENTER_xTaskIncrementTick()
1986 #endif
1987
1988 #ifndef traceRETURN_xTaskIncrementTick
1989     #define traceRETURN_xTaskIncrementTick( xSwitchRequired )
1990 #endif
1991
1992 #ifndef traceENTER_vTaskSetApplicationTaskTag
1993     #define traceENTER_vTaskSetApplicationTaskTag( xTask, pxHookFunction )
1994 #endif
1995
1996 #ifndef traceRETURN_vTaskSetApplicationTaskTag
1997     #define traceRETURN_vTaskSetApplicationTaskTag()
1998 #endif
1999
2000 #ifndef traceENTER_xTaskGetApplicationTaskTag
2001     #define traceENTER_xTaskGetApplicationTaskTag( xTask )
2002 #endif
2003
2004 #ifndef traceRETURN_xTaskGetApplicationTaskTag
2005     #define traceRETURN_xTaskGetApplicationTaskTag( xReturn )
2006 #endif
2007
2008 #ifndef traceENTER_xTaskGetApplicationTaskTagFromISR
2009     #define traceENTER_xTaskGetApplicationTaskTagFromISR( xTask )
2010 #endif
2011
2012 #ifndef traceRETURN_xTaskGetApplicationTaskTagFromISR
2013     #define traceRETURN_xTaskGetApplicationTaskTagFromISR( xReturn )
2014 #endif
2015
2016 #ifndef traceENTER_xTaskCallApplicationTaskHook
2017     #define traceENTER_xTaskCallApplicationTaskHook( xTask, pvParameter )
2018 #endif
2019
2020 #ifndef traceRETURN_xTaskCallApplicationTaskHook
2021     #define traceRETURN_xTaskCallApplicationTaskHook( xReturn )
2022 #endif
2023
2024 #ifndef traceENTER_vTaskSwitchContext
2025     #define traceENTER_vTaskSwitchContext()
2026 #endif
2027
2028 #ifndef traceRETURN_vTaskSwitchContext
2029     #define traceRETURN_vTaskSwitchContext()
2030 #endif
2031
2032 #ifndef traceENTER_vTaskPlaceOnEventList
2033     #define traceENTER_vTaskPlaceOnEventList( pxEventList, xTicksToWait )
2034 #endif
2035
2036 #ifndef traceRETURN_vTaskPlaceOnEventList
2037     #define traceRETURN_vTaskPlaceOnEventList()
2038 #endif
2039
2040 #ifndef traceENTER_vTaskPlaceOnUnorderedEventList
2041     #define traceENTER_vTaskPlaceOnUnorderedEventList( pxEventList, xItemValue, xTicksToWait )
2042 #endif
2043
2044 #ifndef traceRETURN_vTaskPlaceOnUnorderedEventList
2045     #define traceRETURN_vTaskPlaceOnUnorderedEventList()
2046 #endif
2047
2048 #ifndef traceENTER_vTaskPlaceOnEventListRestricted
2049     #define traceENTER_vTaskPlaceOnEventListRestricted( pxEventList, xTicksToWait, xWaitIndefinitely )
2050 #endif
2051
2052 #ifndef traceRETURN_vTaskPlaceOnEventListRestricted
2053     #define traceRETURN_vTaskPlaceOnEventListRestricted()
2054 #endif
2055
2056 #ifndef traceENTER_xTaskRemoveFromEventList
2057     #define traceENTER_xTaskRemoveFromEventList( pxEventList )
2058 #endif
2059
2060 #ifndef traceRETURN_xTaskRemoveFromEventList
2061     #define traceRETURN_xTaskRemoveFromEventList( xReturn )
2062 #endif
2063
2064 #ifndef traceENTER_vTaskRemoveFromUnorderedEventList
2065     #define traceENTER_vTaskRemoveFromUnorderedEventList( pxEventListItem, xItemValue )
2066 #endif
2067
2068 #ifndef traceRETURN_vTaskRemoveFromUnorderedEventList
2069     #define traceRETURN_vTaskRemoveFromUnorderedEventList()
2070 #endif
2071
2072 #ifndef traceENTER_vTaskSetTimeOutState
2073     #define traceENTER_vTaskSetTimeOutState( pxTimeOut )
2074 #endif
2075
2076 #ifndef traceRETURN_vTaskSetTimeOutState
2077     #define traceRETURN_vTaskSetTimeOutState()
2078 #endif
2079
2080 #ifndef traceENTER_vTaskInternalSetTimeOutState
2081     #define traceENTER_vTaskInternalSetTimeOutState( pxTimeOut )
2082 #endif
2083
2084 #ifndef traceRETURN_vTaskInternalSetTimeOutState
2085     #define traceRETURN_vTaskInternalSetTimeOutState()
2086 #endif
2087
2088 #ifndef traceENTER_xTaskCheckForTimeOut
2089     #define traceENTER_xTaskCheckForTimeOut( pxTimeOut, pxTicksToWait )
2090 #endif
2091
2092 #ifndef traceRETURN_xTaskCheckForTimeOut
2093     #define traceRETURN_xTaskCheckForTimeOut( xReturn )
2094 #endif
2095
2096 #ifndef traceENTER_vTaskMissedYield
2097     #define traceENTER_vTaskMissedYield()
2098 #endif
2099
2100 #ifndef traceRETURN_vTaskMissedYield
2101     #define traceRETURN_vTaskMissedYield()
2102 #endif
2103
2104 #ifndef traceENTER_uxTaskGetTaskNumber
2105     #define traceENTER_uxTaskGetTaskNumber( xTask )
2106 #endif
2107
2108 #ifndef traceRETURN_uxTaskGetTaskNumber
2109     #define traceRETURN_uxTaskGetTaskNumber( uxReturn )
2110 #endif
2111
2112 #ifndef traceENTER_vTaskSetTaskNumber
2113     #define traceENTER_vTaskSetTaskNumber( xTask, uxHandle )
2114 #endif
2115
2116 #ifndef traceRETURN_vTaskSetTaskNumber
2117     #define traceRETURN_vTaskSetTaskNumber()
2118 #endif
2119
2120 #ifndef traceENTER_eTaskConfirmSleepModeStatus
2121     #define traceENTER_eTaskConfirmSleepModeStatus()
2122 #endif
2123
2124 #ifndef traceRETURN_eTaskConfirmSleepModeStatus
2125     #define traceRETURN_eTaskConfirmSleepModeStatus( eReturn )
2126 #endif
2127
2128 #ifndef traceENTER_vTaskSetThreadLocalStoragePointer
2129     #define traceENTER_vTaskSetThreadLocalStoragePointer( xTaskToSet, xIndex, pvValue )
2130 #endif
2131
2132 #ifndef traceRETURN_vTaskSetThreadLocalStoragePointer
2133     #define traceRETURN_vTaskSetThreadLocalStoragePointer()
2134 #endif
2135
2136 #ifndef traceENTER_pvTaskGetThreadLocalStoragePointer
2137     #define traceENTER_pvTaskGetThreadLocalStoragePointer( xTaskToQuery, xIndex )
2138 #endif
2139
2140 #ifndef traceRETURN_pvTaskGetThreadLocalStoragePointer
2141     #define traceRETURN_pvTaskGetThreadLocalStoragePointer( pvReturn )
2142 #endif
2143
2144 #ifndef traceENTER_vTaskAllocateMPURegions
2145     #define traceENTER_vTaskAllocateMPURegions( xTaskToModify, pxRegions )
2146 #endif
2147
2148 #ifndef traceRETURN_vTaskAllocateMPURegions
2149     #define traceRETURN_vTaskAllocateMPURegions()
2150 #endif
2151
2152 #ifndef traceENTER_vTaskGetInfo
2153     #define traceENTER_vTaskGetInfo( xTask, pxTaskStatus, xGetFreeStackSpace, eState )
2154 #endif
2155
2156 #ifndef traceRETURN_vTaskGetInfo
2157     #define traceRETURN_vTaskGetInfo()
2158 #endif
2159
2160 #ifndef traceENTER_uxTaskGetStackHighWaterMark2
2161     #define traceENTER_uxTaskGetStackHighWaterMark2( xTask )
2162 #endif
2163
2164 #ifndef traceRETURN_uxTaskGetStackHighWaterMark2
2165     #define traceRETURN_uxTaskGetStackHighWaterMark2( uxReturn )
2166 #endif
2167
2168 #ifndef traceENTER_uxTaskGetStackHighWaterMark
2169     #define traceENTER_uxTaskGetStackHighWaterMark( xTask )
2170 #endif
2171
2172 #ifndef traceRETURN_uxTaskGetStackHighWaterMark
2173     #define traceRETURN_uxTaskGetStackHighWaterMark( uxReturn )
2174 #endif
2175
2176 #ifndef traceENTER_xTaskGetCurrentTaskHandle
2177     #define traceENTER_xTaskGetCurrentTaskHandle()
2178 #endif
2179
2180 #ifndef traceRETURN_xTaskGetCurrentTaskHandle
2181     #define traceRETURN_xTaskGetCurrentTaskHandle( xReturn )
2182 #endif
2183
2184 #ifndef traceENTER_xTaskGetCurrentTaskHandleForCore
2185     #define traceENTER_xTaskGetCurrentTaskHandleForCore( xCoreID )
2186 #endif
2187
2188 #ifndef traceRETURN_xTaskGetCurrentTaskHandleForCore
2189     #define traceRETURN_xTaskGetCurrentTaskHandleForCore( xReturn )
2190 #endif
2191
2192 #ifndef traceENTER_xTaskGetSchedulerState
2193     #define traceENTER_xTaskGetSchedulerState()
2194 #endif
2195
2196 #ifndef traceRETURN_xTaskGetSchedulerState
2197     #define traceRETURN_xTaskGetSchedulerState( xReturn )
2198 #endif
2199
2200 #ifndef traceENTER_xTaskPriorityInherit
2201     #define traceENTER_xTaskPriorityInherit( pxMutexHolder )
2202 #endif
2203
2204 #ifndef traceRETURN_xTaskPriorityInherit
2205     #define traceRETURN_xTaskPriorityInherit( xReturn )
2206 #endif
2207
2208 #ifndef traceENTER_xTaskPriorityDisinherit
2209     #define traceENTER_xTaskPriorityDisinherit( pxMutexHolder )
2210 #endif
2211
2212 #ifndef traceRETURN_xTaskPriorityDisinherit
2213     #define traceRETURN_xTaskPriorityDisinherit( xReturn )
2214 #endif
2215
2216 #ifndef traceENTER_vTaskPriorityDisinheritAfterTimeout
2217     #define traceENTER_vTaskPriorityDisinheritAfterTimeout( pxMutexHolder, uxHighestPriorityWaitingTask )
2218 #endif
2219
2220 #ifndef traceRETURN_vTaskPriorityDisinheritAfterTimeout
2221     #define traceRETURN_vTaskPriorityDisinheritAfterTimeout()
2222 #endif
2223
2224 #ifndef traceENTER_vTaskYieldWithinAPI
2225     #define traceENTER_vTaskYieldWithinAPI()
2226 #endif
2227
2228 #ifndef traceRETURN_vTaskYieldWithinAPI
2229     #define traceRETURN_vTaskYieldWithinAPI()
2230 #endif
2231
2232 #ifndef traceENTER_vTaskEnterCritical
2233     #define traceENTER_vTaskEnterCritical()
2234 #endif
2235
2236 #ifndef traceRETURN_vTaskEnterCritical
2237     #define traceRETURN_vTaskEnterCritical()
2238 #endif
2239
2240 #ifndef traceENTER_vTaskEnterCriticalFromISR
2241     #define traceENTER_vTaskEnterCriticalFromISR()
2242 #endif
2243
2244 #ifndef traceRETURN_vTaskEnterCriticalFromISR
2245     #define traceRETURN_vTaskEnterCriticalFromISR( uxSavedInterruptStatus )
2246 #endif
2247
2248 #ifndef traceENTER_vTaskExitCritical
2249     #define traceENTER_vTaskExitCritical()
2250 #endif
2251
2252 #ifndef traceRETURN_vTaskExitCritical
2253     #define traceRETURN_vTaskExitCritical()
2254 #endif
2255
2256 #ifndef traceENTER_vTaskExitCriticalFromISR
2257     #define traceENTER_vTaskExitCriticalFromISR( uxSavedInterruptStatus )
2258 #endif
2259
2260 #ifndef traceRETURN_vTaskExitCriticalFromISR
2261     #define traceRETURN_vTaskExitCriticalFromISR()
2262 #endif
2263
2264 #ifndef traceENTER_vTaskListTasks
2265     #define traceENTER_vTaskListTasks( pcWriteBuffer, uxBufferLength )
2266 #endif
2267
2268 #ifndef traceRETURN_vTaskListTasks
2269     #define traceRETURN_vTaskListTasks()
2270 #endif
2271
2272 #ifndef traceENTER_vTaskGetRunTimeStatistics
2273     #define traceENTER_vTaskGetRunTimeStatistics( pcWriteBuffer, uxBufferLength )
2274 #endif
2275
2276 #ifndef traceRETURN_vTaskGetRunTimeStatistics
2277     #define traceRETURN_vTaskGetRunTimeStatistics()
2278 #endif
2279
2280 #ifndef traceENTER_uxTaskResetEventItemValue
2281     #define traceENTER_uxTaskResetEventItemValue()
2282 #endif
2283
2284 #ifndef traceRETURN_uxTaskResetEventItemValue
2285     #define traceRETURN_uxTaskResetEventItemValue( uxReturn )
2286 #endif
2287
2288 #ifndef traceENTER_pvTaskIncrementMutexHeldCount
2289     #define traceENTER_pvTaskIncrementMutexHeldCount()
2290 #endif
2291
2292 #ifndef traceRETURN_pvTaskIncrementMutexHeldCount
2293     #define traceRETURN_pvTaskIncrementMutexHeldCount( pxTCB )
2294 #endif
2295
2296 #ifndef traceENTER_ulTaskGenericNotifyTake
2297     #define traceENTER_ulTaskGenericNotifyTake( uxIndexToWaitOn, xClearCountOnExit, xTicksToWait )
2298 #endif
2299
2300 #ifndef traceRETURN_ulTaskGenericNotifyTake
2301     #define traceRETURN_ulTaskGenericNotifyTake( ulReturn )
2302 #endif
2303
2304 #ifndef traceENTER_xTaskGenericNotifyWait
2305     #define traceENTER_xTaskGenericNotifyWait( uxIndexToWaitOn, ulBitsToClearOnEntry, ulBitsToClearOnExit, pulNotificationValue, xTicksToWait )
2306 #endif
2307
2308 #ifndef traceRETURN_xTaskGenericNotifyWait
2309     #define traceRETURN_xTaskGenericNotifyWait( xReturn )
2310 #endif
2311
2312 #ifndef traceENTER_xTaskGenericNotify
2313     #define traceENTER_xTaskGenericNotify( xTaskToNotify, uxIndexToNotify, ulValue, eAction, pulPreviousNotificationValue )
2314 #endif
2315
2316 #ifndef traceRETURN_xTaskGenericNotify
2317     #define traceRETURN_xTaskGenericNotify( xReturn )
2318 #endif
2319
2320 #ifndef traceENTER_xTaskGenericNotifyFromISR
2321     #define traceENTER_xTaskGenericNotifyFromISR( xTaskToNotify, uxIndexToNotify, ulValue, eAction, pulPreviousNotificationValue, pxHigherPriorityTaskWoken )
2322 #endif
2323
2324 #ifndef traceRETURN_xTaskGenericNotifyFromISR
2325     #define traceRETURN_xTaskGenericNotifyFromISR( xReturn )
2326 #endif
2327
2328 #ifndef traceENTER_vTaskGenericNotifyGiveFromISR
2329     #define traceENTER_vTaskGenericNotifyGiveFromISR( xTaskToNotify, uxIndexToNotify, pxHigherPriorityTaskWoken )
2330 #endif
2331
2332 #ifndef traceRETURN_vTaskGenericNotifyGiveFromISR
2333     #define traceRETURN_vTaskGenericNotifyGiveFromISR()
2334 #endif
2335
2336 #ifndef traceENTER_xTaskGenericNotifyStateClear
2337     #define traceENTER_xTaskGenericNotifyStateClear( xTask, uxIndexToClear )
2338 #endif
2339
2340 #ifndef traceRETURN_xTaskGenericNotifyStateClear
2341     #define traceRETURN_xTaskGenericNotifyStateClear( xReturn )
2342 #endif
2343
2344 #ifndef traceENTER_ulTaskGenericNotifyValueClear
2345     #define traceENTER_ulTaskGenericNotifyValueClear( xTask, uxIndexToClear, ulBitsToClear )
2346 #endif
2347
2348 #ifndef traceRETURN_ulTaskGenericNotifyValueClear
2349     #define traceRETURN_ulTaskGenericNotifyValueClear( ulReturn )
2350 #endif
2351
2352 #ifndef traceENTER_ulTaskGetRunTimeCounter
2353     #define traceENTER_ulTaskGetRunTimeCounter( xTask )
2354 #endif
2355
2356 #ifndef traceRETURN_ulTaskGetRunTimeCounter
2357     #define traceRETURN_ulTaskGetRunTimeCounter( ulRunTimeCounter )
2358 #endif
2359
2360 #ifndef traceENTER_ulTaskGetRunTimePercent
2361     #define traceENTER_ulTaskGetRunTimePercent( xTask )
2362 #endif
2363
2364 #ifndef traceRETURN_ulTaskGetRunTimePercent
2365     #define traceRETURN_ulTaskGetRunTimePercent( ulReturn )
2366 #endif
2367
2368 #ifndef traceENTER_ulTaskGetIdleRunTimeCounter
2369     #define traceENTER_ulTaskGetIdleRunTimeCounter()
2370 #endif
2371
2372 #ifndef traceRETURN_ulTaskGetIdleRunTimeCounter
2373     #define traceRETURN_ulTaskGetIdleRunTimeCounter( ulReturn )
2374 #endif
2375
2376 #ifndef traceENTER_ulTaskGetIdleRunTimePercent
2377     #define traceENTER_ulTaskGetIdleRunTimePercent()
2378 #endif
2379
2380 #ifndef traceRETURN_ulTaskGetIdleRunTimePercent
2381     #define traceRETURN_ulTaskGetIdleRunTimePercent( ulReturn )
2382 #endif
2383
2384 #ifndef traceENTER_xTaskGetMPUSettings
2385     #define traceENTER_xTaskGetMPUSettings( xTask )
2386 #endif
2387
2388 #ifndef traceRETURN_xTaskGetMPUSettings
2389     #define traceRETURN_xTaskGetMPUSettings( xMPUSettings )
2390 #endif
2391
2392 #ifndef traceENTER_xStreamBufferGenericCreate
2393     #define traceENTER_xStreamBufferGenericCreate( xBufferSizeBytes, xTriggerLevelBytes, xIsMessageBuffer, pxSendCompletedCallback, pxReceiveCompletedCallback )
2394 #endif
2395
2396 #ifndef traceRETURN_xStreamBufferGenericCreate
2397     #define traceRETURN_xStreamBufferGenericCreate( pvAllocatedMemory )
2398 #endif
2399
2400 #ifndef traceENTER_xStreamBufferGenericCreateStatic
2401     #define traceENTER_xStreamBufferGenericCreateStatic( xBufferSizeBytes, xTriggerLevelBytes, xIsMessageBuffer, pucStreamBufferStorageArea, pxStaticStreamBuffer, pxSendCompletedCallback, pxReceiveCompletedCallback )
2402 #endif
2403
2404 #ifndef traceRETURN_xStreamBufferGenericCreateStatic
2405     #define traceRETURN_xStreamBufferGenericCreateStatic( xReturn )
2406 #endif
2407
2408 #ifndef traceENTER_xStreamBufferGetStaticBuffers
2409     #define traceENTER_xStreamBufferGetStaticBuffers( xStreamBuffer, ppucStreamBufferStorageArea, ppxStaticStreamBuffer )
2410 #endif
2411
2412 #ifndef traceRETURN_xStreamBufferGetStaticBuffers
2413     #define traceRETURN_xStreamBufferGetStaticBuffers( xReturn )
2414 #endif
2415
2416 #ifndef traceENTER_vStreamBufferDelete
2417     #define traceENTER_vStreamBufferDelete( xStreamBuffer )
2418 #endif
2419
2420 #ifndef traceRETURN_vStreamBufferDelete
2421     #define traceRETURN_vStreamBufferDelete()
2422 #endif
2423
2424 #ifndef traceENTER_xStreamBufferReset
2425     #define traceENTER_xStreamBufferReset( xStreamBuffer )
2426 #endif
2427
2428 #ifndef traceRETURN_xStreamBufferReset
2429     #define traceRETURN_xStreamBufferReset( xReturn )
2430 #endif
2431
2432 #ifndef traceENTER_xStreamBufferSetTriggerLevel
2433     #define traceENTER_xStreamBufferSetTriggerLevel( xStreamBuffer, xTriggerLevel )
2434 #endif
2435
2436 #ifndef traceRETURN_xStreamBufferSetTriggerLevel
2437     #define traceRETURN_xStreamBufferSetTriggerLevel( xReturn )
2438 #endif
2439
2440 #ifndef traceENTER_xStreamBufferSpacesAvailable
2441     #define traceENTER_xStreamBufferSpacesAvailable( xStreamBuffer )
2442 #endif
2443
2444 #ifndef traceRETURN_xStreamBufferSpacesAvailable
2445     #define traceRETURN_xStreamBufferSpacesAvailable( xSpace )
2446 #endif
2447
2448 #ifndef traceENTER_xStreamBufferBytesAvailable
2449     #define traceENTER_xStreamBufferBytesAvailable( xStreamBuffer )
2450 #endif
2451
2452 #ifndef traceRETURN_xStreamBufferBytesAvailable
2453     #define traceRETURN_xStreamBufferBytesAvailable( xReturn )
2454 #endif
2455
2456 #ifndef traceENTER_xStreamBufferSend
2457     #define traceENTER_xStreamBufferSend( xStreamBuffer, pvTxData, xDataLengthBytes, xTicksToWait )
2458 #endif
2459
2460 #ifndef traceRETURN_xStreamBufferSend
2461     #define traceRETURN_xStreamBufferSend( xReturn )
2462 #endif
2463
2464 #ifndef traceENTER_xStreamBufferSendFromISR
2465     #define traceENTER_xStreamBufferSendFromISR( xStreamBuffer, pvTxData, xDataLengthBytes, pxHigherPriorityTaskWoken )
2466 #endif
2467
2468 #ifndef traceRETURN_xStreamBufferSendFromISR
2469     #define traceRETURN_xStreamBufferSendFromISR( xReturn )
2470 #endif
2471
2472 #ifndef traceENTER_xStreamBufferReceive
2473     #define traceENTER_xStreamBufferReceive( xStreamBuffer, pvRxData, xBufferLengthBytes, xTicksToWait )
2474 #endif
2475
2476 #ifndef traceRETURN_xStreamBufferReceive
2477     #define traceRETURN_xStreamBufferReceive( xReceivedLength )
2478 #endif
2479
2480 #ifndef traceENTER_xStreamBufferNextMessageLengthBytes
2481     #define traceENTER_xStreamBufferNextMessageLengthBytes( xStreamBuffer )
2482 #endif
2483
2484 #ifndef traceRETURN_xStreamBufferNextMessageLengthBytes
2485     #define traceRETURN_xStreamBufferNextMessageLengthBytes( xReturn )
2486 #endif
2487
2488 #ifndef traceENTER_xStreamBufferReceiveFromISR
2489     #define traceENTER_xStreamBufferReceiveFromISR( xStreamBuffer, pvRxData, xBufferLengthBytes, pxHigherPriorityTaskWoken )
2490 #endif
2491
2492 #ifndef traceRETURN_xStreamBufferReceiveFromISR
2493     #define traceRETURN_xStreamBufferReceiveFromISR( xReceivedLength )
2494 #endif
2495
2496 #ifndef traceENTER_xStreamBufferIsEmpty
2497     #define traceENTER_xStreamBufferIsEmpty( xStreamBuffer )
2498 #endif
2499
2500 #ifndef traceRETURN_xStreamBufferIsEmpty
2501     #define traceRETURN_xStreamBufferIsEmpty( xReturn )
2502 #endif
2503
2504 #ifndef traceENTER_xStreamBufferIsFull
2505     #define traceENTER_xStreamBufferIsFull( xStreamBuffer )
2506 #endif
2507
2508 #ifndef traceRETURN_xStreamBufferIsFull
2509     #define traceRETURN_xStreamBufferIsFull( xReturn )
2510 #endif
2511
2512 #ifndef traceENTER_xStreamBufferSendCompletedFromISR
2513     #define traceENTER_xStreamBufferSendCompletedFromISR( xStreamBuffer, pxHigherPriorityTaskWoken )
2514 #endif
2515
2516 #ifndef traceRETURN_xStreamBufferSendCompletedFromISR
2517     #define traceRETURN_xStreamBufferSendCompletedFromISR( xReturn )
2518 #endif
2519
2520 #ifndef traceENTER_xStreamBufferReceiveCompletedFromISR
2521     #define traceENTER_xStreamBufferReceiveCompletedFromISR( xStreamBuffer, pxHigherPriorityTaskWoken )
2522 #endif
2523
2524 #ifndef traceRETURN_xStreamBufferReceiveCompletedFromISR
2525     #define traceRETURN_xStreamBufferReceiveCompletedFromISR( xReturn )
2526 #endif
2527
2528 #ifndef traceENTER_uxStreamBufferGetStreamBufferNotificationIndex
2529     #define traceENTER_uxStreamBufferGetStreamBufferNotificationIndex( xStreamBuffer )
2530 #endif
2531
2532 #ifndef traceRETURN_uxStreamBufferGetStreamBufferNotificationIndex
2533     #define traceRETURN_uxStreamBufferGetStreamBufferNotificationIndex( uxNotificationIndex )
2534 #endif
2535
2536 #ifndef traceENTER_vStreamBufferSetStreamBufferNotificationIndex
2537     #define traceENTER_vStreamBufferSetStreamBufferNotificationIndex( xStreamBuffer, uxNotificationIndex )
2538 #endif
2539
2540 #ifndef traceRETURN_vStreamBufferSetStreamBufferNotificationIndex
2541     #define traceRETURN_vStreamBufferSetStreamBufferNotificationIndex()
2542 #endif
2543
2544 #ifndef traceENTER_uxStreamBufferGetStreamBufferNumber
2545     #define traceENTER_uxStreamBufferGetStreamBufferNumber( xStreamBuffer )
2546 #endif
2547
2548 #ifndef traceRETURN_uxStreamBufferGetStreamBufferNumber
2549     #define traceRETURN_uxStreamBufferGetStreamBufferNumber( uxStreamBufferNumber )
2550 #endif
2551
2552 #ifndef traceENTER_vStreamBufferSetStreamBufferNumber
2553     #define traceENTER_vStreamBufferSetStreamBufferNumber( xStreamBuffer, uxStreamBufferNumber )
2554 #endif
2555
2556 #ifndef traceRETURN_vStreamBufferSetStreamBufferNumber
2557     #define traceRETURN_vStreamBufferSetStreamBufferNumber()
2558 #endif
2559
2560 #ifndef traceENTER_ucStreamBufferGetStreamBufferType
2561     #define traceENTER_ucStreamBufferGetStreamBufferType( xStreamBuffer )
2562 #endif
2563
2564 #ifndef traceRETURN_ucStreamBufferGetStreamBufferType
2565     #define traceRETURN_ucStreamBufferGetStreamBufferType( ucStreamBufferType )
2566 #endif
2567
2568 #ifndef traceENTER_vListInitialise
2569     #define traceENTER_vListInitialise( pxList )
2570 #endif
2571
2572 #ifndef traceRETURN_vListInitialise
2573     #define traceRETURN_vListInitialise()
2574 #endif
2575
2576 #ifndef traceENTER_vListInitialiseItem
2577     #define traceENTER_vListInitialiseItem( pxItem )
2578 #endif
2579
2580 #ifndef traceRETURN_vListInitialiseItem
2581     #define traceRETURN_vListInitialiseItem()
2582 #endif
2583
2584 #ifndef traceENTER_vListInsertEnd
2585     #define traceENTER_vListInsertEnd( pxList, pxNewListItem )
2586 #endif
2587
2588 #ifndef traceRETURN_vListInsertEnd
2589     #define traceRETURN_vListInsertEnd()
2590 #endif
2591
2592 #ifndef traceENTER_vListInsert
2593     #define traceENTER_vListInsert( pxList, pxNewListItem )
2594 #endif
2595
2596 #ifndef traceRETURN_vListInsert
2597     #define traceRETURN_vListInsert()
2598 #endif
2599
2600 #ifndef traceENTER_uxListRemove
2601     #define traceENTER_uxListRemove( pxItemToRemove )
2602 #endif
2603
2604 #ifndef traceRETURN_uxListRemove
2605     #define traceRETURN_uxListRemove( uxNumberOfItems )
2606 #endif
2607
2608 #ifndef traceENTER_xCoRoutineCreate
2609     #define traceENTER_xCoRoutineCreate( pxCoRoutineCode, uxPriority, uxIndex )
2610 #endif
2611
2612 #ifndef traceRETURN_xCoRoutineCreate
2613     #define traceRETURN_xCoRoutineCreate( xReturn )
2614 #endif
2615
2616 #ifndef traceENTER_vCoRoutineAddToDelayedList
2617     #define traceENTER_vCoRoutineAddToDelayedList( xTicksToDelay, pxEventList )
2618 #endif
2619
2620 #ifndef traceRETURN_vCoRoutineAddToDelayedList
2621     #define traceRETURN_vCoRoutineAddToDelayedList()
2622 #endif
2623
2624 #ifndef traceENTER_vCoRoutineSchedule
2625     #define traceENTER_vCoRoutineSchedule()
2626 #endif
2627
2628 #ifndef traceRETURN_vCoRoutineSchedule
2629     #define traceRETURN_vCoRoutineSchedule()
2630 #endif
2631
2632 #ifndef traceENTER_xCoRoutineRemoveFromEventList
2633     #define traceENTER_xCoRoutineRemoveFromEventList( pxEventList )
2634 #endif
2635
2636 #ifndef traceRETURN_xCoRoutineRemoveFromEventList
2637     #define traceRETURN_xCoRoutineRemoveFromEventList( xReturn )
2638 #endif
2639
2640 #ifndef configGENERATE_RUN_TIME_STATS
2641     #define configGENERATE_RUN_TIME_STATS    0
2642 #endif
2643
2644 #if ( configGENERATE_RUN_TIME_STATS == 1 )
2645
2646     #ifndef portCONFIGURE_TIMER_FOR_RUN_TIME_STATS
2647         #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.
2648     #endif /* portCONFIGURE_TIMER_FOR_RUN_TIME_STATS */
2649
2650     #ifndef portGET_RUN_TIME_COUNTER_VALUE
2651         #ifndef portALT_GET_RUN_TIME_COUNTER_VALUE
2652             #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.
2653         #endif /* portALT_GET_RUN_TIME_COUNTER_VALUE */
2654     #endif /* portGET_RUN_TIME_COUNTER_VALUE */
2655
2656 #endif /* configGENERATE_RUN_TIME_STATS */
2657
2658 #ifndef portCONFIGURE_TIMER_FOR_RUN_TIME_STATS
2659     #define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS()
2660 #endif
2661
2662 #ifndef portPRIVILEGE_BIT
2663     #define portPRIVILEGE_BIT    ( ( UBaseType_t ) 0x00 )
2664 #endif
2665
2666 #ifndef portYIELD_WITHIN_API
2667     #define portYIELD_WITHIN_API    portYIELD
2668 #endif
2669
2670 #ifndef portSUPPRESS_TICKS_AND_SLEEP
2671     #define portSUPPRESS_TICKS_AND_SLEEP( xExpectedIdleTime )
2672 #endif
2673
2674 #ifndef configEXPECTED_IDLE_TIME_BEFORE_SLEEP
2675     #define configEXPECTED_IDLE_TIME_BEFORE_SLEEP    2
2676 #endif
2677
2678 #if configEXPECTED_IDLE_TIME_BEFORE_SLEEP < 2
2679     #error configEXPECTED_IDLE_TIME_BEFORE_SLEEP must not be less than 2
2680 #endif
2681
2682 #ifndef configUSE_TICKLESS_IDLE
2683     #define configUSE_TICKLESS_IDLE    0
2684 #endif
2685
2686 #ifndef configPRE_SUPPRESS_TICKS_AND_SLEEP_PROCESSING
2687     #define configPRE_SUPPRESS_TICKS_AND_SLEEP_PROCESSING( x )
2688 #endif
2689
2690 #ifndef configPRE_SLEEP_PROCESSING
2691     #define configPRE_SLEEP_PROCESSING( x )
2692 #endif
2693
2694 #ifndef configPOST_SLEEP_PROCESSING
2695     #define configPOST_SLEEP_PROCESSING( x )
2696 #endif
2697
2698 #ifndef configUSE_QUEUE_SETS
2699     #define configUSE_QUEUE_SETS    0
2700 #endif
2701
2702 #ifndef portTASK_USES_FLOATING_POINT
2703     #define portTASK_USES_FLOATING_POINT()
2704 #endif
2705
2706 #ifndef portALLOCATE_SECURE_CONTEXT
2707     #define portALLOCATE_SECURE_CONTEXT( ulSecureStackSize )
2708 #endif
2709
2710 #ifndef portDONT_DISCARD
2711     #define portDONT_DISCARD
2712 #endif
2713
2714 #ifndef configUSE_TIME_SLICING
2715     #define configUSE_TIME_SLICING    1
2716 #endif
2717
2718 #ifndef configINCLUDE_APPLICATION_DEFINED_PRIVILEGED_FUNCTIONS
2719     #define configINCLUDE_APPLICATION_DEFINED_PRIVILEGED_FUNCTIONS    0
2720 #endif
2721
2722 #ifndef configUSE_STATS_FORMATTING_FUNCTIONS
2723     #define configUSE_STATS_FORMATTING_FUNCTIONS    0
2724 #endif
2725
2726 #ifndef portASSERT_IF_INTERRUPT_PRIORITY_INVALID
2727     #define portASSERT_IF_INTERRUPT_PRIORITY_INVALID()
2728 #endif
2729
2730 #ifndef configUSE_TRACE_FACILITY
2731     #define configUSE_TRACE_FACILITY    0
2732 #endif
2733
2734 #ifndef mtCOVERAGE_TEST_MARKER
2735     #define mtCOVERAGE_TEST_MARKER()
2736 #endif
2737
2738 #ifndef mtCOVERAGE_TEST_DELAY
2739     #define mtCOVERAGE_TEST_DELAY()
2740 #endif
2741
2742 #ifndef portASSERT_IF_IN_ISR
2743     #define portASSERT_IF_IN_ISR()
2744 #endif
2745
2746 #ifndef configUSE_PORT_OPTIMISED_TASK_SELECTION
2747     #define configUSE_PORT_OPTIMISED_TASK_SELECTION    0
2748 #endif
2749
2750 #ifndef configAPPLICATION_ALLOCATED_HEAP
2751     #define configAPPLICATION_ALLOCATED_HEAP    0
2752 #endif
2753
2754 #ifndef configENABLE_HEAP_PROTECTOR
2755     #define configENABLE_HEAP_PROTECTOR    0
2756 #endif
2757
2758 #ifndef configUSE_TASK_NOTIFICATIONS
2759     #define configUSE_TASK_NOTIFICATIONS    1
2760 #endif
2761
2762 #ifndef configTASK_NOTIFICATION_ARRAY_ENTRIES
2763     #define configTASK_NOTIFICATION_ARRAY_ENTRIES    1
2764 #endif
2765
2766 #if configTASK_NOTIFICATION_ARRAY_ENTRIES < 1
2767     #error configTASK_NOTIFICATION_ARRAY_ENTRIES must be at least 1
2768 #endif
2769
2770 #ifndef configUSE_POSIX_ERRNO
2771     #define configUSE_POSIX_ERRNO    0
2772 #endif
2773
2774 #ifndef configUSE_SB_COMPLETED_CALLBACK
2775
2776 /* By default per-instance callbacks are not enabled for stream buffer or message buffer. */
2777     #define configUSE_SB_COMPLETED_CALLBACK    0
2778 #endif
2779
2780 #ifndef portTICK_TYPE_IS_ATOMIC
2781     #define portTICK_TYPE_IS_ATOMIC    0
2782 #endif
2783
2784 #ifndef configSUPPORT_STATIC_ALLOCATION
2785     /* Defaults to 0 for backward compatibility. */
2786     #define configSUPPORT_STATIC_ALLOCATION    0
2787 #endif
2788
2789 #ifndef configKERNEL_PROVIDED_STATIC_MEMORY
2790     #define configKERNEL_PROVIDED_STATIC_MEMORY    0
2791 #endif
2792
2793 #ifndef configSUPPORT_DYNAMIC_ALLOCATION
2794     /* Defaults to 1 for backward compatibility. */
2795     #define configSUPPORT_DYNAMIC_ALLOCATION    1
2796 #endif
2797
2798 #if ( ( configUSE_STATS_FORMATTING_FUNCTIONS > 0 ) && ( configSUPPORT_DYNAMIC_ALLOCATION != 1 ) )
2799     #error configUSE_STATS_FORMATTING_FUNCTIONS cannot be used without dynamic allocation, but configSUPPORT_DYNAMIC_ALLOCATION is not set to 1.
2800 #endif
2801
2802 #if ( configUSE_STATS_FORMATTING_FUNCTIONS > 0 )
2803     #if ( ( configUSE_TRACE_FACILITY != 1 ) && ( configGENERATE_RUN_TIME_STATS != 1 ) )
2804         #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.
2805     #endif
2806 #endif
2807
2808 #ifndef configSTATS_BUFFER_MAX_LENGTH
2809     #define configSTATS_BUFFER_MAX_LENGTH    0xFFFF
2810 #endif
2811
2812 #ifndef configSTACK_DEPTH_TYPE
2813
2814 /* Defaults to StackType_t for backward compatibility, but can be overridden
2815  * in FreeRTOSConfig.h if StackType_t is too restrictive. */
2816     #define configSTACK_DEPTH_TYPE    StackType_t
2817 #endif
2818
2819 #ifndef configRUN_TIME_COUNTER_TYPE
2820
2821 /* Defaults to uint32_t for backward compatibility, but can be overridden in
2822  * FreeRTOSConfig.h if uint32_t is too restrictive. */
2823
2824     #define configRUN_TIME_COUNTER_TYPE    uint32_t
2825 #endif
2826
2827 #ifndef configMESSAGE_BUFFER_LENGTH_TYPE
2828
2829 /* Defaults to size_t for backward compatibility, but can be overridden
2830  * in FreeRTOSConfig.h if lengths will always be less than the number of bytes
2831  * in a size_t. */
2832     #define configMESSAGE_BUFFER_LENGTH_TYPE    size_t
2833 #endif
2834
2835 /* Sanity check the configuration. */
2836 #if ( ( configSUPPORT_STATIC_ALLOCATION == 0 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 0 ) )
2837     #error configSUPPORT_STATIC_ALLOCATION and configSUPPORT_DYNAMIC_ALLOCATION cannot both be 0, but can both be 1.
2838 #endif
2839
2840 #if ( ( configUSE_RECURSIVE_MUTEXES == 1 ) && ( configUSE_MUTEXES != 1 ) )
2841     #error configUSE_MUTEXES must be set to 1 to use recursive mutexes
2842 #endif
2843
2844 #if ( ( configRUN_MULTIPLE_PRIORITIES == 0 ) && ( configUSE_TASK_PREEMPTION_DISABLE != 0 ) )
2845     #error configRUN_MULTIPLE_PRIORITIES must be set to 1 to use task preemption disable
2846 #endif
2847
2848 #if ( ( configUSE_PREEMPTION == 0 ) && ( configUSE_TASK_PREEMPTION_DISABLE != 0 ) )
2849     #error configUSE_PREEMPTION must be set to 1 to use task preemption disable
2850 #endif
2851
2852 #if ( ( configNUMBER_OF_CORES == 1 ) && ( configUSE_TASK_PREEMPTION_DISABLE != 0 ) )
2853     #error configUSE_TASK_PREEMPTION_DISABLE is not supported in single core FreeRTOS
2854 #endif
2855
2856 #if ( ( configNUMBER_OF_CORES == 1 ) && ( configUSE_CORE_AFFINITY != 0 ) )
2857     #error configUSE_CORE_AFFINITY is not supported in single core FreeRTOS
2858 #endif
2859
2860 #if ( ( configNUMBER_OF_CORES > 1 ) && ( configUSE_PORT_OPTIMISED_TASK_SELECTION != 0 ) )
2861     #error configUSE_PORT_OPTIMISED_TASK_SELECTION is not supported in SMP FreeRTOS
2862 #endif
2863
2864 #ifndef configINITIAL_TICK_COUNT
2865     #define configINITIAL_TICK_COUNT    0
2866 #endif
2867
2868 #if ( portTICK_TYPE_IS_ATOMIC == 0 )
2869
2870 /* Either variables of tick type cannot be read atomically, or
2871  * portTICK_TYPE_IS_ATOMIC was not set - map the critical sections used when
2872  * the tick count is returned to the standard critical section macros. */
2873     #define portTICK_TYPE_ENTER_CRITICAL()                      portENTER_CRITICAL()
2874     #define portTICK_TYPE_EXIT_CRITICAL()                       portEXIT_CRITICAL()
2875     #define portTICK_TYPE_SET_INTERRUPT_MASK_FROM_ISR()         portSET_INTERRUPT_MASK_FROM_ISR()
2876     #define portTICK_TYPE_CLEAR_INTERRUPT_MASK_FROM_ISR( x )    portCLEAR_INTERRUPT_MASK_FROM_ISR( ( x ) )
2877 #else
2878
2879 /* The tick type can be read atomically, so critical sections used when the
2880  * tick count is returned can be defined away. */
2881     #define portTICK_TYPE_ENTER_CRITICAL()
2882     #define portTICK_TYPE_EXIT_CRITICAL()
2883     #define portTICK_TYPE_SET_INTERRUPT_MASK_FROM_ISR()         0
2884     #define portTICK_TYPE_CLEAR_INTERRUPT_MASK_FROM_ISR( x )    ( void ) ( x )
2885 #endif /* if ( portTICK_TYPE_IS_ATOMIC == 0 ) */
2886
2887 /* Definitions to allow backward compatibility with FreeRTOS versions prior to
2888  * V8 if desired. */
2889 #ifndef configENABLE_BACKWARD_COMPATIBILITY
2890     #define configENABLE_BACKWARD_COMPATIBILITY    1
2891 #endif
2892
2893 #ifndef configPRINTF
2894
2895 /* configPRINTF() was not defined, so define it away to nothing.  To use
2896  * configPRINTF() then define it as follows (where MyPrintFunction() is
2897  * provided by the application writer):
2898  *
2899  * void MyPrintFunction(const char *pcFormat, ... );
2900  #define configPRINTF( X )   MyPrintFunction X
2901  *
2902  * Then call like a standard printf() function, but placing brackets around
2903  * all parameters so they are passed as a single parameter.  For example:
2904  * configPRINTF( ("Value = %d", MyVariable) ); */
2905     #define configPRINTF( X )
2906 #endif
2907
2908 #ifndef configMAX
2909
2910 /* The application writer has not provided their own MAX macro, so define
2911  * the following generic implementation. */
2912     #define configMAX( a, b )    ( ( ( a ) > ( b ) ) ? ( a ) : ( b ) )
2913 #endif
2914
2915 #ifndef configMIN
2916
2917 /* The application writer has not provided their own MIN macro, so define
2918  * the following generic implementation. */
2919     #define configMIN( a, b )    ( ( ( a ) < ( b ) ) ? ( a ) : ( b ) )
2920 #endif
2921
2922 #if configENABLE_BACKWARD_COMPATIBILITY == 1
2923     #define eTaskStateGet                 eTaskGetState
2924     #define portTickType                  TickType_t
2925     #define xTaskHandle                   TaskHandle_t
2926     #define xQueueHandle                  QueueHandle_t
2927     #define xSemaphoreHandle              SemaphoreHandle_t
2928     #define xQueueSetHandle               QueueSetHandle_t
2929     #define xQueueSetMemberHandle         QueueSetMemberHandle_t
2930     #define xTimeOutType                  TimeOut_t
2931     #define xMemoryRegion                 MemoryRegion_t
2932     #define xTaskParameters               TaskParameters_t
2933     #define xTaskStatusType               TaskStatus_t
2934     #define xTimerHandle                  TimerHandle_t
2935     #define xCoRoutineHandle              CoRoutineHandle_t
2936     #define pdTASK_HOOK_CODE              TaskHookFunction_t
2937     #define portTICK_RATE_MS              portTICK_PERIOD_MS
2938     #define pcTaskGetTaskName             pcTaskGetName
2939     #define pcTimerGetTimerName           pcTimerGetName
2940     #define pcQueueGetQueueName           pcQueueGetName
2941     #define vTaskGetTaskInfo              vTaskGetInfo
2942     #define xTaskGetIdleRunTimeCounter    ulTaskGetIdleRunTimeCounter
2943
2944 /* Backward compatibility within the scheduler code only - these definitions
2945  * are not really required but are included for completeness. */
2946     #define tmrTIMER_CALLBACK             TimerCallbackFunction_t
2947     #define pdTASK_CODE                   TaskFunction_t
2948     #define xListItem                     ListItem_t
2949     #define xList                         List_t
2950
2951 /* For libraries that break the list data hiding, and access list structure
2952  * members directly (which is not supposed to be done). */
2953     #define pxContainer                   pvContainer
2954 #endif /* configENABLE_BACKWARD_COMPATIBILITY */
2955
2956 #if ( configUSE_ALTERNATIVE_API != 0 )
2957     #error The alternative API was deprecated some time ago, and was removed in FreeRTOS V9.0 0
2958 #endif
2959
2960 /* Set configUSE_TASK_FPU_SUPPORT to 0 to omit floating point support even
2961  * if floating point hardware is otherwise supported by the FreeRTOS port in use.
2962  * This constant is not supported by all FreeRTOS ports that include floating
2963  * point support. */
2964 #ifndef configUSE_TASK_FPU_SUPPORT
2965     #define configUSE_TASK_FPU_SUPPORT    1
2966 #endif
2967
2968 /* Set configENABLE_MPU to 1 to enable MPU support and 0 to disable it. This is
2969  * currently used in ARMv8M ports. */
2970 #ifndef configENABLE_MPU
2971     #define configENABLE_MPU    0
2972 #endif
2973
2974 /* Set configENABLE_FPU to 1 to enable FPU support and 0 to disable it. This is
2975  * currently used in ARMv8M ports. */
2976 #ifndef configENABLE_FPU
2977     #define configENABLE_FPU    1
2978 #endif
2979
2980 /* Set configENABLE_MVE to 1 to enable MVE support and 0 to disable it. This is
2981  * currently used in ARMv8M ports. */
2982 #ifndef configENABLE_MVE
2983     #define configENABLE_MVE    0
2984 #endif
2985
2986 /* Set configENABLE_TRUSTZONE to 1 enable TrustZone support and 0 to disable it.
2987  * This is currently used in ARMv8M ports. */
2988 #ifndef configENABLE_TRUSTZONE
2989     #define configENABLE_TRUSTZONE    1
2990 #endif
2991
2992 /* Set configRUN_FREERTOS_SECURE_ONLY to 1 to run the FreeRTOS ARMv8M port on
2993  * the Secure Side only. */
2994 #ifndef configRUN_FREERTOS_SECURE_ONLY
2995     #define configRUN_FREERTOS_SECURE_ONLY    0
2996 #endif
2997
2998 #ifndef configRUN_ADDITIONAL_TESTS
2999     #define configRUN_ADDITIONAL_TESTS    0
3000 #endif
3001
3002 /* The following config allows infinite loop control. For example, control the
3003  * infinite loop in idle task function when performing unit tests. */
3004 #ifndef configCONTROL_INFINITE_LOOP
3005     #define configCONTROL_INFINITE_LOOP()
3006 #endif
3007
3008 /* Sometimes the FreeRTOSConfig.h settings only allow a task to be created using
3009  * dynamically allocated RAM, in which case when any task is deleted it is known
3010  * that both the task's stack and TCB need to be freed.  Sometimes the
3011  * FreeRTOSConfig.h settings only allow a task to be created using statically
3012  * allocated RAM, in which case when any task is deleted it is known that neither
3013  * the task's stack or TCB should be freed.  Sometimes the FreeRTOSConfig.h
3014  * settings allow a task to be created using either statically or dynamically
3015  * allocated RAM, in which case a member of the TCB is used to record whether the
3016  * stack and/or TCB were allocated statically or dynamically, so when a task is
3017  * deleted the RAM that was allocated dynamically is freed again and no attempt is
3018  * made to free the RAM that was allocated statically.
3019  * tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE is only true if it is possible for a
3020  * task to be created using either statically or dynamically allocated RAM.  Note
3021  * that if portUSING_MPU_WRAPPERS is 1 then a protected task can be created with
3022  * a statically allocated stack and a dynamically allocated TCB.
3023  *
3024  * The following table lists various combinations of portUSING_MPU_WRAPPERS,
3025  * configSUPPORT_DYNAMIC_ALLOCATION and configSUPPORT_STATIC_ALLOCATION and
3026  * when it is possible to have both static and dynamic allocation:
3027  *  +-----+---------+--------+-----------------------------+-----------------------------------+------------------+-----------+
3028  * | MPU | Dynamic | Static |     Available Functions     |       Possible Allocations        | Both Dynamic and | Need Free |
3029  * |     |         |        |                             |                                   | Static Possible  |           |
3030  * +-----+---------+--------+-----------------------------+-----------------------------------+------------------+-----------+
3031  * | 0   | 0       | 1      | xTaskCreateStatic           | TCB - Static, Stack - Static      | No               | No        |
3032  * +-----|---------|--------|-----------------------------|-----------------------------------|------------------|-----------|
3033  * | 0   | 1       | 0      | xTaskCreate                 | TCB - Dynamic, Stack - Dynamic    | No               | Yes       |
3034  * +-----|---------|--------|-----------------------------|-----------------------------------|------------------|-----------|
3035  * | 0   | 1       | 1      | xTaskCreate,                | 1. TCB - Dynamic, Stack - Dynamic | Yes              | Yes       |
3036  * |     |         |        | xTaskCreateStatic           | 2. TCB - Static, Stack - Static   |                  |           |
3037  * +-----|---------|--------|-----------------------------|-----------------------------------|------------------|-----------|
3038  * | 1   | 0       | 1      | xTaskCreateStatic,          | TCB - Static, Stack - Static      | No               | No        |
3039  * |     |         |        | xTaskCreateRestrictedStatic |                                   |                  |           |
3040  * +-----|---------|--------|-----------------------------|-----------------------------------|------------------|-----------|
3041  * | 1   | 1       | 0      | xTaskCreate,                | 1. TCB - Dynamic, Stack - Dynamic | Yes              | Yes       |
3042  * |     |         |        | xTaskCreateRestricted       | 2. TCB - Dynamic, Stack - Static  |                  |           |
3043  * +-----|---------|--------|-----------------------------|-----------------------------------|------------------|-----------|
3044  * | 1   | 1       | 1      | xTaskCreate,                | 1. TCB - Dynamic, Stack - Dynamic | Yes              | Yes       |
3045  * |     |         |        | xTaskCreateStatic,          | 2. TCB - Dynamic, Stack - Static  |                  |           |
3046  * |     |         |        | xTaskCreateRestricted,      | 3. TCB - Static, Stack - Static   |                  |           |
3047  * |     |         |        | xTaskCreateRestrictedStatic |                                   |                  |           |
3048  * +-----+---------+--------+-----------------------------+-----------------------------------+------------------+-----------+
3049  */
3050 #define tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE                                                                                     \
3051     ( ( ( portUSING_MPU_WRAPPERS == 0 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) ) || \
3052       ( ( portUSING_MPU_WRAPPERS == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) )
3053
3054 /*
3055  * In line with software engineering best practice, FreeRTOS implements a strict
3056  * data hiding policy, so the real structures used by FreeRTOS to maintain the
3057  * state of tasks, queues, semaphores, etc. are not accessible to the application
3058  * code.  However, if the application writer wants to statically allocate such
3059  * an object then the size of the object needs to be known.  Dummy structures
3060  * that are guaranteed to have the same size and alignment requirements of the
3061  * real objects are used for this purpose.  The dummy list and list item
3062  * structures below are used for inclusion in such a dummy structure.
3063  */
3064 struct xSTATIC_LIST_ITEM
3065 {
3066     #if ( configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES == 1 )
3067         TickType_t xDummy1;
3068     #endif
3069     TickType_t xDummy2;
3070     void * pvDummy3[ 4 ];
3071     #if ( configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES == 1 )
3072         TickType_t xDummy4;
3073     #endif
3074 };
3075 typedef struct xSTATIC_LIST_ITEM StaticListItem_t;
3076
3077 #if ( configUSE_MINI_LIST_ITEM == 1 )
3078     /* See the comments above the struct xSTATIC_LIST_ITEM definition. */
3079     struct xSTATIC_MINI_LIST_ITEM
3080     {
3081         #if ( configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES == 1 )
3082             TickType_t xDummy1;
3083         #endif
3084         TickType_t xDummy2;
3085         void * pvDummy3[ 2 ];
3086     };
3087     typedef struct xSTATIC_MINI_LIST_ITEM StaticMiniListItem_t;
3088 #else /* if ( configUSE_MINI_LIST_ITEM == 1 ) */
3089     typedef struct xSTATIC_LIST_ITEM      StaticMiniListItem_t;
3090 #endif /* if ( configUSE_MINI_LIST_ITEM == 1 ) */
3091
3092 /* See the comments above the struct xSTATIC_LIST_ITEM definition. */
3093 typedef struct xSTATIC_LIST
3094 {
3095     #if ( configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES == 1 )
3096         TickType_t xDummy1;
3097     #endif
3098     UBaseType_t uxDummy2;
3099     void * pvDummy3;
3100     StaticMiniListItem_t xDummy4;
3101     #if ( configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES == 1 )
3102         TickType_t xDummy5;
3103     #endif
3104 } StaticList_t;
3105
3106 /*
3107  * In line with software engineering best practice, especially when supplying a
3108  * library that is likely to change in future versions, FreeRTOS implements a
3109  * strict data hiding policy.  This means the Task structure used internally by
3110  * FreeRTOS is not accessible to application code.  However, if the application
3111  * writer wants to statically allocate the memory required to create a task then
3112  * the size of the task object needs to be known.  The StaticTask_t structure
3113  * below is provided for this purpose.  Its sizes and alignment requirements are
3114  * guaranteed to match those of the genuine structure, no matter which
3115  * architecture is being used, and no matter how the values in FreeRTOSConfig.h
3116  * are set.  Its contents are somewhat obfuscated in the hope users will
3117  * recognise that it would be unwise to make direct use of the structure members.
3118  */
3119 typedef struct xSTATIC_TCB
3120 {
3121     void * pxDummy1;
3122     #if ( portUSING_MPU_WRAPPERS == 1 )
3123         xMPU_SETTINGS xDummy2;
3124     #endif
3125     #if ( configUSE_CORE_AFFINITY == 1 ) && ( configNUMBER_OF_CORES > 1 )
3126         UBaseType_t uxDummy26;
3127     #endif
3128     StaticListItem_t xDummy3[ 2 ];
3129     UBaseType_t uxDummy5;
3130     void * pxDummy6;
3131     #if ( configNUMBER_OF_CORES > 1 )
3132         BaseType_t xDummy23;
3133         UBaseType_t uxDummy24;
3134     #endif
3135     uint8_t ucDummy7[ configMAX_TASK_NAME_LEN ];
3136     #if ( configUSE_TASK_PREEMPTION_DISABLE == 1 )
3137         BaseType_t xDummy25;
3138     #endif
3139     #if ( ( portSTACK_GROWTH > 0 ) || ( configRECORD_STACK_HIGH_ADDRESS == 1 ) )
3140         void * pxDummy8;
3141     #endif
3142     #if ( portCRITICAL_NESTING_IN_TCB == 1 )
3143         UBaseType_t uxDummy9;
3144     #endif
3145     #if ( configUSE_TRACE_FACILITY == 1 )
3146         UBaseType_t uxDummy10[ 2 ];
3147     #endif
3148     #if ( configUSE_MUTEXES == 1 )
3149         UBaseType_t uxDummy12[ 2 ];
3150     #endif
3151     #if ( configUSE_APPLICATION_TASK_TAG == 1 )
3152         void * pxDummy14;
3153     #endif
3154     #if ( configNUM_THREAD_LOCAL_STORAGE_POINTERS > 0 )
3155         void * pvDummy15[ configNUM_THREAD_LOCAL_STORAGE_POINTERS ];
3156     #endif
3157     #if ( configGENERATE_RUN_TIME_STATS == 1 )
3158         configRUN_TIME_COUNTER_TYPE ulDummy16;
3159     #endif
3160     #if ( configUSE_C_RUNTIME_TLS_SUPPORT == 1 )
3161         configTLS_BLOCK_TYPE xDummy17;
3162     #endif
3163     #if ( configUSE_TASK_NOTIFICATIONS == 1 )
3164         uint32_t ulDummy18[ configTASK_NOTIFICATION_ARRAY_ENTRIES ];
3165         uint8_t ucDummy19[ configTASK_NOTIFICATION_ARRAY_ENTRIES ];
3166     #endif
3167     #if ( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 )
3168         uint8_t uxDummy20;
3169     #endif
3170
3171     #if ( INCLUDE_xTaskAbortDelay == 1 )
3172         uint8_t ucDummy21;
3173     #endif
3174     #if ( configUSE_POSIX_ERRNO == 1 )
3175         int iDummy22;
3176     #endif
3177 } StaticTask_t;
3178
3179 /*
3180  * In line with software engineering best practice, especially when supplying a
3181  * library that is likely to change in future versions, FreeRTOS implements a
3182  * strict data hiding policy.  This means the Queue structure used internally by
3183  * FreeRTOS is not accessible to application code.  However, if the application
3184  * writer wants to statically allocate the memory required to create a queue
3185  * then the size of the queue object needs to be known.  The StaticQueue_t
3186  * structure below is provided for this purpose.  Its sizes and alignment
3187  * requirements are guaranteed to match those of the genuine structure, no
3188  * matter which architecture is being used, and no matter how the values in
3189  * FreeRTOSConfig.h are set.  Its contents are somewhat obfuscated in the hope
3190  * users will recognise that it would be unwise to make direct use of the
3191  * structure members.
3192  */
3193 typedef struct xSTATIC_QUEUE
3194 {
3195     void * pvDummy1[ 3 ];
3196
3197     union
3198     {
3199         void * pvDummy2;
3200         UBaseType_t uxDummy2;
3201     } u;
3202
3203     StaticList_t xDummy3[ 2 ];
3204     UBaseType_t uxDummy4[ 3 ];
3205     uint8_t ucDummy5[ 2 ];
3206
3207     #if ( ( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) )
3208         uint8_t ucDummy6;
3209     #endif
3210
3211     #if ( configUSE_QUEUE_SETS == 1 )
3212         void * pvDummy7;
3213     #endif
3214
3215     #if ( configUSE_TRACE_FACILITY == 1 )
3216         UBaseType_t uxDummy8;
3217         uint8_t ucDummy9;
3218     #endif
3219 } StaticQueue_t;
3220 typedef StaticQueue_t StaticSemaphore_t;
3221
3222 /*
3223  * In line with software engineering best practice, especially when supplying a
3224  * library that is likely to change in future versions, FreeRTOS implements a
3225  * strict data hiding policy.  This means the event group structure used
3226  * internally by FreeRTOS is not accessible to application code.  However, if
3227  * the application writer wants to statically allocate the memory required to
3228  * create an event group then the size of the event group object needs to be
3229  * know.  The StaticEventGroup_t structure below is provided for this purpose.
3230  * Its sizes and alignment requirements are guaranteed to match those of the
3231  * genuine structure, no matter which architecture is being used, and no matter
3232  * how the values in FreeRTOSConfig.h are set.  Its contents are somewhat
3233  * obfuscated in the hope users will recognise that it would be unwise to make
3234  * direct use of the structure members.
3235  */
3236 typedef struct xSTATIC_EVENT_GROUP
3237 {
3238     TickType_t xDummy1;
3239     StaticList_t xDummy2;
3240
3241     #if ( configUSE_TRACE_FACILITY == 1 )
3242         UBaseType_t uxDummy3;
3243     #endif
3244
3245     #if ( ( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) )
3246         uint8_t ucDummy4;
3247     #endif
3248 } StaticEventGroup_t;
3249
3250 /*
3251  * In line with software engineering best practice, especially when supplying a
3252  * library that is likely to change in future versions, FreeRTOS implements a
3253  * strict data hiding policy.  This means the software timer structure used
3254  * internally by FreeRTOS is not accessible to application code.  However, if
3255  * the application writer wants to statically allocate the memory required to
3256  * create a software timer then the size of the queue object needs to be known.
3257  * The StaticTimer_t structure below is provided for this purpose.  Its sizes
3258  * and alignment requirements are guaranteed to match those of the genuine
3259  * structure, no matter which architecture is being used, and no matter how the
3260  * values in FreeRTOSConfig.h are set.  Its contents are somewhat obfuscated in
3261  * the hope users will recognise that it would be unwise to make direct use of
3262  * the structure members.
3263  */
3264 typedef struct xSTATIC_TIMER
3265 {
3266     void * pvDummy1;
3267     StaticListItem_t xDummy2;
3268     TickType_t xDummy3;
3269     void * pvDummy5;
3270     TaskFunction_t pvDummy6;
3271     #if ( configUSE_TRACE_FACILITY == 1 )
3272         UBaseType_t uxDummy7;
3273     #endif
3274     uint8_t ucDummy8;
3275 } StaticTimer_t;
3276
3277 /*
3278  * In line with software engineering best practice, especially when supplying a
3279  * library that is likely to change in future versions, FreeRTOS implements a
3280  * strict data hiding policy.  This means the stream buffer structure used
3281  * internally by FreeRTOS is not accessible to application code.  However, if
3282  * the application writer wants to statically allocate the memory required to
3283  * create a stream buffer then the size of the stream buffer object needs to be
3284  * known.  The StaticStreamBuffer_t structure below is provided for this
3285  * purpose.  Its size and alignment requirements are guaranteed to match those
3286  * of the genuine structure, no matter which architecture is being used, and
3287  * no matter how the values in FreeRTOSConfig.h are set.  Its contents are
3288  * somewhat obfuscated in the hope users will recognise that it would be unwise
3289  * to make direct use of the structure members.
3290  */
3291 typedef struct xSTATIC_STREAM_BUFFER
3292 {
3293     size_t uxDummy1[ 4 ];
3294     void * pvDummy2[ 3 ];
3295     uint8_t ucDummy3;
3296     #if ( configUSE_TRACE_FACILITY == 1 )
3297         UBaseType_t uxDummy4;
3298     #endif
3299     #if ( configUSE_SB_COMPLETED_CALLBACK == 1 )
3300         void * pvDummy5[ 2 ];
3301     #endif
3302     UBaseType_t uxDummy6;
3303 } StaticStreamBuffer_t;
3304
3305 /* Message buffers are built on stream buffers. */
3306 typedef StaticStreamBuffer_t StaticMessageBuffer_t;
3307
3308 /* *INDENT-OFF* */
3309 #ifdef __cplusplus
3310     }
3311 #endif
3312 /* *INDENT-ON* */
3313
3314 #endif /* INC_FREERTOS_H */