FreeRTOS.h
Go to the documentation of this file.
1 /*
2  * FreeRTOS Kernel V10.0.0
3  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a copy of
6  * this software and associated documentation files (the "Software"), to deal in
7  * the Software without restriction, including without limitation the rights to
8  * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9  * the Software, and to permit persons to whom the Software is furnished to do so,
10  * subject to the following conditions:
11  *
12  * The above copyright notice and this permission notice shall be included in all
13  * copies or substantial portions of the Software. If you wish to use our Amazon
14  * FreeRTOS name, please do so in a fair use way that does not cause confusion.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
18  * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
19  * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
20  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22  *
23  * http://www.FreeRTOS.org
24  * http://aws.amazon.com/freertos
25  *
26  * 1 tab == 4 spaces!
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 #ifdef __cplusplus
53 extern "C" {
54 #endif
55 
56 /* Application specific configuration options. */
57 #include "FreeRTOSConfig.h"
58 
59 /* Basic FreeRTOS definitions. */
60 #include "projdefs.h"
61 
62 /* Definitions specific to the port being used. */
63 #include "portable.h"
64 
65 /* Must be defaulted before configUSE_NEWLIB_REENTRANT is used below. */
66 #ifndef configUSE_NEWLIB_REENTRANT
67  #define configUSE_NEWLIB_REENTRANT 0
68 #endif
69 
70 /* Required if struct _reent is used. */
71 #if ( configUSE_NEWLIB_REENTRANT == 1 )
72  #include <reent.h>
73 #endif
74 /*
75  * Check all the required application specific macros have been defined.
76  * These macros are application specific and (as downloaded) are defined
77  * within FreeRTOSConfig.h.
78  */
79 
80 #ifndef configMINIMAL_STACK_SIZE
81  #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.
82 #endif
83 
84 #ifndef configMAX_PRIORITIES
85  #error Missing definition: configMAX_PRIORITIES must be defined in FreeRTOSConfig.h. See the Configuration section of the FreeRTOS API documentation for details.
86 #endif
87 
88 #if configMAX_PRIORITIES < 1
89  #error configMAX_PRIORITIES must be defined to be greater than or equal to 1.
90 #endif
91 
92 #ifndef configUSE_PREEMPTION
93  #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.
94 #endif
95 
96 #ifndef configUSE_IDLE_HOOK
97  #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.
98 #endif
99 
100 #ifndef configUSE_TICK_HOOK
101  #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.
102 #endif
103 
104 #ifndef configUSE_16_BIT_TICKS
105  #error Missing definition: configUSE_16_BIT_TICKS must be defined in FreeRTOSConfig.h as either 1 or 0. See the Configuration section of the FreeRTOS API documentation for details.
106 #endif
107 
108 #ifndef configUSE_CO_ROUTINES
109  #define configUSE_CO_ROUTINES 0
110 #endif
111 
112 #ifndef INCLUDE_vTaskPrioritySet
113  #define INCLUDE_vTaskPrioritySet 0
114 #endif
115 
116 #ifndef INCLUDE_uxTaskPriorityGet
117  #define INCLUDE_uxTaskPriorityGet 0
118 #endif
119 
120 #ifndef INCLUDE_vTaskDelete
121  #define INCLUDE_vTaskDelete 0
122 #endif
123 
124 #ifndef INCLUDE_vTaskSuspend
125  #define INCLUDE_vTaskSuspend 0
126 #endif
127 
128 #ifndef INCLUDE_vTaskDelayUntil
129  #define INCLUDE_vTaskDelayUntil 0
130 #endif
131 
132 #ifndef INCLUDE_vTaskDelay
133  #define INCLUDE_vTaskDelay 0
134 #endif
135 
136 #ifndef INCLUDE_xTaskGetIdleTaskHandle
137  #define INCLUDE_xTaskGetIdleTaskHandle 0
138 #endif
139 
140 #ifndef INCLUDE_xTaskAbortDelay
141  #define INCLUDE_xTaskAbortDelay 0
142 #endif
143 
144 #ifndef INCLUDE_xQueueGetMutexHolder
145  #define INCLUDE_xQueueGetMutexHolder 0
146 #endif
147 
148 #ifndef INCLUDE_xSemaphoreGetMutexHolder
149  #define INCLUDE_xSemaphoreGetMutexHolder INCLUDE_xQueueGetMutexHolder
150 #endif
151 
152 #ifndef INCLUDE_xTaskGetHandle
153  #define INCLUDE_xTaskGetHandle 0
154 #endif
155 
156 #ifndef INCLUDE_uxTaskGetStackHighWaterMark
157  #define INCLUDE_uxTaskGetStackHighWaterMark 0
158 #endif
159 
160 #ifndef INCLUDE_eTaskGetState
161  #define INCLUDE_eTaskGetState 0
162 #endif
163 
164 #ifndef INCLUDE_xTaskResumeFromISR
165  #define INCLUDE_xTaskResumeFromISR 1
166 #endif
167 
168 #ifndef INCLUDE_xTimerPendFunctionCall
169  #define INCLUDE_xTimerPendFunctionCall 0
170 #endif
171 
172 #ifndef INCLUDE_xTaskGetSchedulerState
173  #define INCLUDE_xTaskGetSchedulerState 0
174 #endif
175 
176 #ifndef INCLUDE_xTaskGetCurrentTaskHandle
177  #define INCLUDE_xTaskGetCurrentTaskHandle 0
178 #endif
179 
180 #if configUSE_CO_ROUTINES != 0
181  #ifndef configMAX_CO_ROUTINE_PRIORITIES
182  #error configMAX_CO_ROUTINE_PRIORITIES must be greater than or equal to 1.
183  #endif
184 #endif
185 
186 #ifndef configUSE_DAEMON_TASK_STARTUP_HOOK
187  #define configUSE_DAEMON_TASK_STARTUP_HOOK 0
188 #endif
189 
190 #ifndef configUSE_APPLICATION_TASK_TAG
191  #define configUSE_APPLICATION_TASK_TAG 0
192 #endif
193 
194 #ifndef configNUM_THREAD_LOCAL_STORAGE_POINTERS
195  #define configNUM_THREAD_LOCAL_STORAGE_POINTERS 0
196 #endif
197 
198 #ifndef configUSE_RECURSIVE_MUTEXES
199  #define configUSE_RECURSIVE_MUTEXES 0
200 #endif
201 
202 #ifndef configUSE_MUTEXES
203  #define configUSE_MUTEXES 0
204 #endif
205 
206 #ifndef configUSE_TIMERS
207  #define configUSE_TIMERS 0
208 #endif
209 
210 #ifndef configUSE_COUNTING_SEMAPHORES
211  #define configUSE_COUNTING_SEMAPHORES 0
212 #endif
213 
214 #ifndef configUSE_ALTERNATIVE_API
215  #define configUSE_ALTERNATIVE_API 0
216 #endif
217 
218 #ifndef portCRITICAL_NESTING_IN_TCB
219  #define portCRITICAL_NESTING_IN_TCB 0
220 #endif
221 
222 #ifndef configMAX_TASK_NAME_LEN
223  #define configMAX_TASK_NAME_LEN 16
224 #endif
225 
226 #ifndef configIDLE_SHOULD_YIELD
227  #define configIDLE_SHOULD_YIELD 1
228 #endif
229 
230 #if configMAX_TASK_NAME_LEN < 1
231  #error configMAX_TASK_NAME_LEN must be set to a minimum of 1 in FreeRTOSConfig.h
232 #endif
233 
234 #ifndef configASSERT
235  #define configASSERT( x )
236  #define configASSERT_DEFINED 0
237 #else
238  #define configASSERT_DEFINED 1
239 #endif
240 
241 /* The timers module relies on xTaskGetSchedulerState(). */
242 #if configUSE_TIMERS == 1
243 
244  #ifndef configTIMER_TASK_PRIORITY
245  #error If configUSE_TIMERS is set to 1 then configTIMER_TASK_PRIORITY must also be defined.
246  #endif /* configTIMER_TASK_PRIORITY */
247 
248  #ifndef configTIMER_QUEUE_LENGTH
249  #error If configUSE_TIMERS is set to 1 then configTIMER_QUEUE_LENGTH must also be defined.
250  #endif /* configTIMER_QUEUE_LENGTH */
251 
252  #ifndef configTIMER_TASK_STACK_DEPTH
253  #error If configUSE_TIMERS is set to 1 then configTIMER_TASK_STACK_DEPTH must also be defined.
254  #endif /* configTIMER_TASK_STACK_DEPTH */
255 
256 #endif /* configUSE_TIMERS */
257 
258 #ifndef portSET_INTERRUPT_MASK_FROM_ISR
259  #define portSET_INTERRUPT_MASK_FROM_ISR() 0
260 #endif
261 
262 #ifndef portCLEAR_INTERRUPT_MASK_FROM_ISR
263  #define portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedStatusValue ) ( void ) uxSavedStatusValue
264 #endif
265 
266 #ifndef portCLEAN_UP_TCB
267  #define portCLEAN_UP_TCB( pxTCB ) ( void ) pxTCB
268 #endif
269 
270 #ifndef portPRE_TASK_DELETE_HOOK
271  #define portPRE_TASK_DELETE_HOOK( pvTaskToDelete, pxYieldPending )
272 #endif
273 
274 #ifndef portSETUP_TCB
275  #define portSETUP_TCB( pxTCB ) ( void ) pxTCB
276 #endif
277 
278 #ifndef configQUEUE_REGISTRY_SIZE
279  #define configQUEUE_REGISTRY_SIZE 0U
280 #endif
281 
282 #if ( configQUEUE_REGISTRY_SIZE < 1 )
283  #define vQueueAddToRegistry( xQueue, pcName )
284  #define vQueueUnregisterQueue( xQueue )
285  #define pcQueueGetName( xQueue )
286 #endif
287 
288 #ifndef portPOINTER_SIZE_TYPE
289  #define portPOINTER_SIZE_TYPE uint32_t
290 #endif
291 
292 /* Remove any unused trace macros. */
293 #ifndef traceSTART
294  /* Used to perform any necessary initialisation - for example, open a file
295  into which trace is to be written. */
296  #define traceSTART()
297 #endif
298 
299 #ifndef traceEND
300  /* Use to close a trace, for example close a file into which trace has been
301  written. */
302  #define traceEND()
303 #endif
304 
305 #ifndef traceTASK_SWITCHED_IN
306  /* Called after a task has been selected to run. pxCurrentTCB holds a pointer
307  to the task control block of the selected task. */
308  #define traceTASK_SWITCHED_IN()
309 #endif
310 
311 #ifndef traceINCREASE_TICK_COUNT
312  /* Called before stepping the tick count after waking from tickless idle
313  sleep. */
314  #define traceINCREASE_TICK_COUNT( x )
315 #endif
316 
317 #ifndef traceLOW_POWER_IDLE_BEGIN
318  /* Called immediately before entering tickless idle. */
319  #define traceLOW_POWER_IDLE_BEGIN()
320 #endif
321 
322 #ifndef traceLOW_POWER_IDLE_END
323  /* Called when returning to the Idle task after a tickless idle. */
324  #define traceLOW_POWER_IDLE_END()
325 #endif
326 
327 #ifndef traceTASK_SWITCHED_OUT
328  /* Called before a task has been selected to run. pxCurrentTCB holds a pointer
329  to the task control block of the task being switched out. */
330  #define traceTASK_SWITCHED_OUT()
331 #endif
332 
333 #ifndef traceTASK_PRIORITY_INHERIT
334  /* Called when a task attempts to take a mutex that is already held by a
335  lower priority task. pxTCBOfMutexHolder is a pointer to the TCB of the task
336  that holds the mutex. uxInheritedPriority is the priority the mutex holder
337  will inherit (the priority of the task that is attempting to obtain the
338  muted. */
339  #define traceTASK_PRIORITY_INHERIT( pxTCBOfMutexHolder, uxInheritedPriority )
340 #endif
341 
342 #ifndef traceTASK_PRIORITY_DISINHERIT
343  /* Called when a task releases a mutex, the holding of which had resulted in
344  the task inheriting the priority of a higher priority task.
345  pxTCBOfMutexHolder is a pointer to the TCB of the task that is releasing the
346  mutex. uxOriginalPriority is the task's configured (base) priority. */
347  #define traceTASK_PRIORITY_DISINHERIT( pxTCBOfMutexHolder, uxOriginalPriority )
348 #endif
349 
350 #ifndef traceBLOCKING_ON_QUEUE_RECEIVE
351  /* Task is about to block because it cannot read from a
352  queue/mutex/semaphore. pxQueue is a pointer to the queue/mutex/semaphore
353  upon which the read was attempted. pxCurrentTCB points to the TCB of the
354  task that attempted the read. */
355  #define traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue )
356 #endif
357 
358 #ifndef traceBLOCKING_ON_QUEUE_PEEK
359  /* Task is about to block because it cannot read from a
360  queue/mutex/semaphore. pxQueue is a pointer to the queue/mutex/semaphore
361  upon which the read was attempted. pxCurrentTCB points to the TCB of the
362  task that attempted the read. */
363  #define traceBLOCKING_ON_QUEUE_PEEK( pxQueue )
364 #endif
365 
366 #ifndef traceBLOCKING_ON_QUEUE_SEND
367  /* Task is about to block because it cannot write to a
368  queue/mutex/semaphore. pxQueue is a pointer to the queue/mutex/semaphore
369  upon which the write was attempted. pxCurrentTCB points to the TCB of the
370  task that attempted the write. */
371  #define traceBLOCKING_ON_QUEUE_SEND( pxQueue )
372 #endif
373 
374 #ifndef configCHECK_FOR_STACK_OVERFLOW
375  #define configCHECK_FOR_STACK_OVERFLOW 0
376 #endif
377 
378 #ifndef configRECORD_STACK_HIGH_ADDRESS
379  #define configRECORD_STACK_HIGH_ADDRESS 0
380 #endif
381 
382 #ifndef configINCLUDE_FREERTOS_TASK_C_ADDITIONS_H
383  #define configINCLUDE_FREERTOS_TASK_C_ADDITIONS_H 0
384 #endif
385 
386 /* The following event macros are embedded in the kernel API calls. */
387 
388 #ifndef traceMOVED_TASK_TO_READY_STATE
389  #define traceMOVED_TASK_TO_READY_STATE( pxTCB )
390 #endif
391 
392 #ifndef tracePOST_MOVED_TASK_TO_READY_STATE
393  #define tracePOST_MOVED_TASK_TO_READY_STATE( pxTCB )
394 #endif
395 
396 #ifndef traceQUEUE_CREATE
397  #define traceQUEUE_CREATE( pxNewQueue )
398 #endif
399 
400 #ifndef traceQUEUE_CREATE_FAILED
401  #define traceQUEUE_CREATE_FAILED( ucQueueType )
402 #endif
403 
404 #ifndef traceCREATE_MUTEX
405  #define traceCREATE_MUTEX( pxNewQueue )
406 #endif
407 
408 #ifndef traceCREATE_MUTEX_FAILED
409  #define traceCREATE_MUTEX_FAILED()
410 #endif
411 
412 #ifndef traceGIVE_MUTEX_RECURSIVE
413  #define traceGIVE_MUTEX_RECURSIVE( pxMutex )
414 #endif
415 
416 #ifndef traceGIVE_MUTEX_RECURSIVE_FAILED
417  #define traceGIVE_MUTEX_RECURSIVE_FAILED( pxMutex )
418 #endif
419 
420 #ifndef traceTAKE_MUTEX_RECURSIVE
421  #define traceTAKE_MUTEX_RECURSIVE( pxMutex )
422 #endif
423 
424 #ifndef traceTAKE_MUTEX_RECURSIVE_FAILED
425  #define traceTAKE_MUTEX_RECURSIVE_FAILED( pxMutex )
426 #endif
427 
428 #ifndef traceCREATE_COUNTING_SEMAPHORE
429  #define traceCREATE_COUNTING_SEMAPHORE()
430 #endif
431 
432 #ifndef traceCREATE_COUNTING_SEMAPHORE_FAILED
433  #define traceCREATE_COUNTING_SEMAPHORE_FAILED()
434 #endif
435 
436 #ifndef traceQUEUE_SEND
437  #define traceQUEUE_SEND( pxQueue )
438 #endif
439 
440 #ifndef traceQUEUE_SEND_FAILED
441  #define traceQUEUE_SEND_FAILED( pxQueue )
442 #endif
443 
444 #ifndef traceQUEUE_RECEIVE
445  #define traceQUEUE_RECEIVE( pxQueue )
446 #endif
447 
448 #ifndef traceQUEUE_PEEK
449  #define traceQUEUE_PEEK( pxQueue )
450 #endif
451 
452 #ifndef traceQUEUE_PEEK_FAILED
453  #define traceQUEUE_PEEK_FAILED( pxQueue )
454 #endif
455 
456 #ifndef traceQUEUE_PEEK_FROM_ISR
457  #define traceQUEUE_PEEK_FROM_ISR( pxQueue )
458 #endif
459 
460 #ifndef traceQUEUE_RECEIVE_FAILED
461  #define traceQUEUE_RECEIVE_FAILED( pxQueue )
462 #endif
463 
464 #ifndef traceQUEUE_SEND_FROM_ISR
465  #define traceQUEUE_SEND_FROM_ISR( pxQueue )
466 #endif
467 
468 #ifndef traceQUEUE_SEND_FROM_ISR_FAILED
469  #define traceQUEUE_SEND_FROM_ISR_FAILED( pxQueue )
470 #endif
471 
472 #ifndef traceQUEUE_RECEIVE_FROM_ISR
473  #define traceQUEUE_RECEIVE_FROM_ISR( pxQueue )
474 #endif
475 
476 #ifndef traceQUEUE_RECEIVE_FROM_ISR_FAILED
477  #define traceQUEUE_RECEIVE_FROM_ISR_FAILED( pxQueue )
478 #endif
479 
480 #ifndef traceQUEUE_PEEK_FROM_ISR_FAILED
481  #define traceQUEUE_PEEK_FROM_ISR_FAILED( pxQueue )
482 #endif
483 
484 #ifndef traceQUEUE_DELETE
485  #define traceQUEUE_DELETE( pxQueue )
486 #endif
487 
488 #ifndef traceTASK_CREATE
489  #define traceTASK_CREATE( pxNewTCB )
490 #endif
491 
492 #ifndef traceTASK_CREATE_FAILED
493  #define traceTASK_CREATE_FAILED()
494 #endif
495 
496 #ifndef traceTASK_DELETE
497  #define traceTASK_DELETE( pxTaskToDelete )
498 #endif
499 
500 #ifndef traceTASK_DELAY_UNTIL
501  #define traceTASK_DELAY_UNTIL( x )
502 #endif
503 
504 #ifndef traceTASK_DELAY
505  #define traceTASK_DELAY()
506 #endif
507 
508 #ifndef traceTASK_PRIORITY_SET
509  #define traceTASK_PRIORITY_SET( pxTask, uxNewPriority )
510 #endif
511 
512 #ifndef traceTASK_SUSPEND
513  #define traceTASK_SUSPEND( pxTaskToSuspend )
514 #endif
515 
516 #ifndef traceTASK_RESUME
517  #define traceTASK_RESUME( pxTaskToResume )
518 #endif
519 
520 #ifndef traceTASK_RESUME_FROM_ISR
521  #define traceTASK_RESUME_FROM_ISR( pxTaskToResume )
522 #endif
523 
524 #ifndef traceTASK_INCREMENT_TICK
525  #define traceTASK_INCREMENT_TICK( xTickCount )
526 #endif
527 
528 #ifndef traceTIMER_CREATE
529  #define traceTIMER_CREATE( pxNewTimer )
530 #endif
531 
532 #ifndef traceTIMER_CREATE_FAILED
533  #define traceTIMER_CREATE_FAILED()
534 #endif
535 
536 #ifndef traceTIMER_COMMAND_SEND
537  #define traceTIMER_COMMAND_SEND( xTimer, xMessageID, xMessageValueValue, xReturn )
538 #endif
539 
540 #ifndef traceTIMER_EXPIRED
541  #define traceTIMER_EXPIRED( pxTimer )
542 #endif
543 
544 #ifndef traceTIMER_COMMAND_RECEIVED
545  #define traceTIMER_COMMAND_RECEIVED( pxTimer, xMessageID, xMessageValue )
546 #endif
547 
548 #ifndef traceMALLOC
549  #define traceMALLOC( pvAddress, uiSize )
550 #endif
551 
552 #ifndef traceFREE
553  #define traceFREE( pvAddress, uiSize )
554 #endif
555 
556 #ifndef traceEVENT_GROUP_CREATE
557  #define traceEVENT_GROUP_CREATE( xEventGroup )
558 #endif
559 
560 #ifndef traceEVENT_GROUP_CREATE_FAILED
561  #define traceEVENT_GROUP_CREATE_FAILED()
562 #endif
563 
564 #ifndef traceEVENT_GROUP_SYNC_BLOCK
565  #define traceEVENT_GROUP_SYNC_BLOCK( xEventGroup, uxBitsToSet, uxBitsToWaitFor )
566 #endif
567 
568 #ifndef traceEVENT_GROUP_SYNC_END
569  #define traceEVENT_GROUP_SYNC_END( xEventGroup, uxBitsToSet, uxBitsToWaitFor, xTimeoutOccurred ) ( void ) xTimeoutOccurred
570 #endif
571 
572 #ifndef traceEVENT_GROUP_WAIT_BITS_BLOCK
573  #define traceEVENT_GROUP_WAIT_BITS_BLOCK( xEventGroup, uxBitsToWaitFor )
574 #endif
575 
576 #ifndef traceEVENT_GROUP_WAIT_BITS_END
577  #define traceEVENT_GROUP_WAIT_BITS_END( xEventGroup, uxBitsToWaitFor, xTimeoutOccurred ) ( void ) xTimeoutOccurred
578 #endif
579 
580 #ifndef traceEVENT_GROUP_CLEAR_BITS
581  #define traceEVENT_GROUP_CLEAR_BITS( xEventGroup, uxBitsToClear )
582 #endif
583 
584 #ifndef traceEVENT_GROUP_CLEAR_BITS_FROM_ISR
585  #define traceEVENT_GROUP_CLEAR_BITS_FROM_ISR( xEventGroup, uxBitsToClear )
586 #endif
587 
588 #ifndef traceEVENT_GROUP_SET_BITS
589  #define traceEVENT_GROUP_SET_BITS( xEventGroup, uxBitsToSet )
590 #endif
591 
592 #ifndef traceEVENT_GROUP_SET_BITS_FROM_ISR
593  #define traceEVENT_GROUP_SET_BITS_FROM_ISR( xEventGroup, uxBitsToSet )
594 #endif
595 
596 #ifndef traceEVENT_GROUP_DELETE
597  #define traceEVENT_GROUP_DELETE( xEventGroup )
598 #endif
599 
600 #ifndef tracePEND_FUNC_CALL
601  #define tracePEND_FUNC_CALL(xFunctionToPend, pvParameter1, ulParameter2, ret)
602 #endif
603 
604 #ifndef tracePEND_FUNC_CALL_FROM_ISR
605  #define tracePEND_FUNC_CALL_FROM_ISR(xFunctionToPend, pvParameter1, ulParameter2, ret)
606 #endif
607 
608 #ifndef traceQUEUE_REGISTRY_ADD
609  #define traceQUEUE_REGISTRY_ADD(xQueue, pcQueueName)
610 #endif
611 
612 #ifndef traceTASK_NOTIFY_TAKE_BLOCK
613  #define traceTASK_NOTIFY_TAKE_BLOCK()
614 #endif
615 
616 #ifndef traceTASK_NOTIFY_TAKE
617  #define traceTASK_NOTIFY_TAKE()
618 #endif
619 
620 #ifndef traceTASK_NOTIFY_WAIT_BLOCK
621  #define traceTASK_NOTIFY_WAIT_BLOCK()
622 #endif
623 
624 #ifndef traceTASK_NOTIFY_WAIT
625  #define traceTASK_NOTIFY_WAIT()
626 #endif
627 
628 #ifndef traceTASK_NOTIFY
629  #define traceTASK_NOTIFY()
630 #endif
631 
632 #ifndef traceTASK_NOTIFY_FROM_ISR
633  #define traceTASK_NOTIFY_FROM_ISR()
634 #endif
635 
636 #ifndef traceTASK_NOTIFY_GIVE_FROM_ISR
637  #define traceTASK_NOTIFY_GIVE_FROM_ISR()
638 #endif
639 
640 #ifndef traceSTREAM_BUFFER_CREATE_FAILED
641  #define traceSTREAM_BUFFER_CREATE_FAILED( xIsMessageBuffer )
642 #endif
643 
644 #ifndef traceSTREAM_BUFFER_CREATE_STATIC_FAILED
645  #define traceSTREAM_BUFFER_CREATE_STATIC_FAILED( xReturn, xIsMessageBuffer )
646 #endif
647 
648 #ifndef traceSTREAM_BUFFER_CREATE
649  #define traceSTREAM_BUFFER_CREATE( pxStreamBuffer, xIsMessageBuffer )
650 #endif
651 
652 #ifndef traceSTREAM_BUFFER_DELETE
653  #define traceSTREAM_BUFFER_DELETE( xStreamBuffer )
654 #endif
655 
656 #ifndef traceSTREAM_BUFFER_RESET
657  #define traceSTREAM_BUFFER_RESET( xStreamBuffer )
658 #endif
659 
660 #ifndef traceBLOCKING_ON_STREAM_BUFFER_SEND
661  #define traceBLOCKING_ON_STREAM_BUFFER_SEND( xStreamBuffer )
662 #endif
663 
664 #ifndef traceSTREAM_BUFFER_SEND
665  #define traceSTREAM_BUFFER_SEND( xStreamBuffer, xBytesSent )
666 #endif
667 
668 #ifndef traceSTREAM_BUFFER_SEND_FAILED
669  #define traceSTREAM_BUFFER_SEND_FAILED( xStreamBuffer )
670 #endif
671 
672 #ifndef traceSTREAM_BUFFER_SEND_FROM_ISR
673  #define traceSTREAM_BUFFER_SEND_FROM_ISR( xStreamBuffer, xBytesSent )
674 #endif
675 
676 #ifndef traceBLOCKING_ON_STREAM_BUFFER_RECEIVE
677  #define traceBLOCKING_ON_STREAM_BUFFER_RECEIVE( xStreamBuffer )
678 #endif
679 
680 #ifndef traceSTREAM_BUFFER_RECEIVE
681  #define traceSTREAM_BUFFER_RECEIVE( xStreamBuffer, xReceivedLength )
682 #endif
683 
684 #ifndef traceSTREAM_BUFFER_RECEIVE_FAILED
685  #define traceSTREAM_BUFFER_RECEIVE_FAILED( xStreamBuffer )
686 #endif
687 
688 #ifndef traceSTREAM_BUFFER_RECEIVE_FROM_ISR
689  #define traceSTREAM_BUFFER_RECEIVE_FROM_ISR( xStreamBuffer, xReceivedLength )
690 #endif
691 
692 #ifndef configGENERATE_RUN_TIME_STATS
693  #define configGENERATE_RUN_TIME_STATS 0
694 #endif
695 
696 #if ( configGENERATE_RUN_TIME_STATS == 1 )
697 
698  #ifndef portCONFIGURE_TIMER_FOR_RUN_TIME_STATS
699  #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.
700  #endif /* portCONFIGURE_TIMER_FOR_RUN_TIME_STATS */
701 
702  #ifndef portGET_RUN_TIME_COUNTER_VALUE
703  #ifndef portALT_GET_RUN_TIME_COUNTER_VALUE
704  #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.
705  #endif /* portALT_GET_RUN_TIME_COUNTER_VALUE */
706  #endif /* portGET_RUN_TIME_COUNTER_VALUE */
707 
708 #endif /* configGENERATE_RUN_TIME_STATS */
709 
710 #ifndef portCONFIGURE_TIMER_FOR_RUN_TIME_STATS
711  #define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS()
712 #endif
713 
714 #ifndef configUSE_MALLOC_FAILED_HOOK
715  #define configUSE_MALLOC_FAILED_HOOK 0
716 #endif
717 
718 #ifndef portPRIVILEGE_BIT
719  #define portPRIVILEGE_BIT ( ( UBaseType_t ) 0x00 )
720 #endif
721 
722 #ifndef portYIELD_WITHIN_API
723  #define portYIELD_WITHIN_API portYIELD
724 #endif
725 
726 #ifndef portSUPPRESS_TICKS_AND_SLEEP
727  #define portSUPPRESS_TICKS_AND_SLEEP( xExpectedIdleTime )
728 #endif
729 
730 #ifndef configEXPECTED_IDLE_TIME_BEFORE_SLEEP
731  #define configEXPECTED_IDLE_TIME_BEFORE_SLEEP 2
732 #endif
733 
734 #if configEXPECTED_IDLE_TIME_BEFORE_SLEEP < 2
735  #error configEXPECTED_IDLE_TIME_BEFORE_SLEEP must not be less than 2
736 #endif
737 
738 #ifndef configUSE_TICKLESS_IDLE
739  #define configUSE_TICKLESS_IDLE 0
740 #endif
741 
742 #ifndef configPRE_SUPPRESS_TICKS_AND_SLEEP_PROCESSING
743  #define configPRE_SUPPRESS_TICKS_AND_SLEEP_PROCESSING( x )
744 #endif
745 
746 #ifndef configPRE_SLEEP_PROCESSING
747  #define configPRE_SLEEP_PROCESSING( x )
748 #endif
749 
750 #ifndef configPOST_SLEEP_PROCESSING
751  #define configPOST_SLEEP_PROCESSING( x )
752 #endif
753 
754 #ifndef configUSE_QUEUE_SETS
755  #define configUSE_QUEUE_SETS 0
756 #endif
757 
758 #ifndef portTASK_USES_FLOATING_POINT
759  #define portTASK_USES_FLOATING_POINT()
760 #endif
761 
762 #ifndef portTASK_CALLS_SECURE_FUNCTIONS
763  #define portTASK_CALLS_SECURE_FUNCTIONS()
764 #endif
765 
766 #ifndef configUSE_TIME_SLICING
767  #define configUSE_TIME_SLICING 1
768 #endif
769 
770 #ifndef configINCLUDE_APPLICATION_DEFINED_PRIVILEGED_FUNCTIONS
771  #define configINCLUDE_APPLICATION_DEFINED_PRIVILEGED_FUNCTIONS 0
772 #endif
773 
774 #ifndef configUSE_STATS_FORMATTING_FUNCTIONS
775  #define configUSE_STATS_FORMATTING_FUNCTIONS 0
776 #endif
777 
778 #ifndef portASSERT_IF_INTERRUPT_PRIORITY_INVALID
779  #define portASSERT_IF_INTERRUPT_PRIORITY_INVALID()
780 #endif
781 
782 #ifndef configUSE_TRACE_FACILITY
783  #define configUSE_TRACE_FACILITY 0
784 #endif
785 
786 #ifndef mtCOVERAGE_TEST_MARKER
787  #define mtCOVERAGE_TEST_MARKER()
788 #endif
789 
790 #ifndef mtCOVERAGE_TEST_DELAY
791  #define mtCOVERAGE_TEST_DELAY()
792 #endif
793 
794 #ifndef portASSERT_IF_IN_ISR
795  #define portASSERT_IF_IN_ISR()
796 #endif
797 
798 #ifndef configUSE_PORT_OPTIMISED_TASK_SELECTION
799  #define configUSE_PORT_OPTIMISED_TASK_SELECTION 0
800 #endif
801 
802 #ifndef configAPPLICATION_ALLOCATED_HEAP
803  #define configAPPLICATION_ALLOCATED_HEAP 0
804 #endif
805 
806 #ifndef configUSE_TASK_NOTIFICATIONS
807  #define configUSE_TASK_NOTIFICATIONS 1
808 #endif
809 
810 #ifndef portTICK_TYPE_IS_ATOMIC
811  #define portTICK_TYPE_IS_ATOMIC 0
812 #endif
813 
814 #ifndef configSUPPORT_STATIC_ALLOCATION
815  /* Defaults to 0 for backward compatibility. */
816  #define configSUPPORT_STATIC_ALLOCATION 0
817 #endif
818 
819 #ifndef configSUPPORT_DYNAMIC_ALLOCATION
820  /* Defaults to 1 for backward compatibility. */
821  #define configSUPPORT_DYNAMIC_ALLOCATION 1
822 #endif
823 
824 #ifndef configSTACK_DEPTH_TYPE
825  /* Defaults to uint16_t for backward compatibility, but can be overridden
826  in FreeRTOSConfig.h if uint16_t is too restrictive. */
827  #define configSTACK_DEPTH_TYPE uint16_t
828 #endif
829 
830 /* Sanity check the configuration. */
831 #if( configUSE_TICKLESS_IDLE != 0 )
832  #if( INCLUDE_vTaskSuspend != 1 )
833  #error INCLUDE_vTaskSuspend must be set to 1 if configUSE_TICKLESS_IDLE is not set to 0
834  #endif /* INCLUDE_vTaskSuspend */
835 #endif /* configUSE_TICKLESS_IDLE */
836 
837 #if( ( configSUPPORT_STATIC_ALLOCATION == 0 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 0 ) )
838  #error configSUPPORT_STATIC_ALLOCATION and configSUPPORT_DYNAMIC_ALLOCATION cannot both be 0, but can both be 1.
839 #endif
840 
841 #if( ( configUSE_RECURSIVE_MUTEXES == 1 ) && ( configUSE_MUTEXES != 1 ) )
842  #error configUSE_MUTEXES must be set to 1 to use recursive mutexes
843 #endif
844 
845 #ifndef configINITIAL_TICK_COUNT
846  #define configINITIAL_TICK_COUNT 0
847 #endif
848 
849 #if( portTICK_TYPE_IS_ATOMIC == 0 )
850  /* Either variables of tick type cannot be read atomically, or
851  portTICK_TYPE_IS_ATOMIC was not set - map the critical sections used when
852  the tick count is returned to the standard critical section macros. */
853  #define portTICK_TYPE_ENTER_CRITICAL() portENTER_CRITICAL()
854  #define portTICK_TYPE_EXIT_CRITICAL() portEXIT_CRITICAL()
855  #define portTICK_TYPE_SET_INTERRUPT_MASK_FROM_ISR() portSET_INTERRUPT_MASK_FROM_ISR()
856  #define portTICK_TYPE_CLEAR_INTERRUPT_MASK_FROM_ISR( x ) portCLEAR_INTERRUPT_MASK_FROM_ISR( ( x ) )
857 #else
858  /* The tick type can be read atomically, so critical sections used when the
859  tick count is returned can be defined away. */
860  #define portTICK_TYPE_ENTER_CRITICAL()
861  #define portTICK_TYPE_EXIT_CRITICAL()
862  #define portTICK_TYPE_SET_INTERRUPT_MASK_FROM_ISR() 0
863  #define portTICK_TYPE_CLEAR_INTERRUPT_MASK_FROM_ISR( x ) ( void ) x
864 #endif
865 
866 /* Definitions to allow backward compatibility with FreeRTOS versions prior to
867 V8 if desired. */
868 #ifndef configENABLE_BACKWARD_COMPATIBILITY
869  #define configENABLE_BACKWARD_COMPATIBILITY 1
870 #endif
871 
872 #ifndef configPRINTF
873  /* configPRINTF() was not defined, so define it away to nothing. To use
874  configPRINTF() then define it as follows (where MyPrintFunction() is
875  provided by the application writer):
876 
877  void MyPrintFunction(const char *pcFormat, ... );
878  #define configPRINTF( X ) MyPrintFunction X
879 
880  Then call like a standard printf() function, but placing brackets around
881  all parameters so they are passed as a single parameter. For example:
882  configPRINTF( ("Value = %d", MyVariable) ); */
883  #define configPRINTF( X )
884 #endif
885 
886 #ifndef configMAX
887  /* The application writer has not provided their own MAX macro, so define
888  the following generic implementation. */
889  #define configMAX( a, b ) ( ( ( a ) > ( b ) ) ? ( a ) : ( b ) )
890 #endif
891 
892 #ifndef configMIN
893  /* The application writer has not provided their own MAX macro, so define
894  the following generic implementation. */
895  #define configMIN( a, b ) ( ( ( a ) < ( b ) ) ? ( a ) : ( b ) )
896 #endif
897 
898 #if configENABLE_BACKWARD_COMPATIBILITY == 1
899  #define eTaskStateGet eTaskGetState
900  #define portTickType TickType_t
901  #define xTaskHandle TaskHandle_t
902  #define xQueueHandle QueueHandle_t
903  #define xSemaphoreHandle SemaphoreHandle_t
904  #define xQueueSetHandle QueueSetHandle_t
905  #define xQueueSetMemberHandle QueueSetMemberHandle_t
906  #define xTimeOutType TimeOut_t
907  #define xMemoryRegion MemoryRegion_t
908  #define xTaskParameters TaskParameters_t
909  #define xTaskStatusType TaskStatus_t
910  #define xTimerHandle TimerHandle_t
911  #define xCoRoutineHandle CoRoutineHandle_t
912  #define pdTASK_HOOK_CODE TaskHookFunction_t
913  #define portTICK_RATE_MS portTICK_PERIOD_MS
914  #define pcTaskGetTaskName pcTaskGetName
915  #define pcTimerGetTimerName pcTimerGetName
916  #define pcQueueGetQueueName pcQueueGetName
917  #define vTaskGetTaskInfo vTaskGetInfo
918 
919  /* Backward compatibility within the scheduler code only - these definitions
920  are not really required but are included for completeness. */
921  #define tmrTIMER_CALLBACK TimerCallbackFunction_t
922  #define pdTASK_CODE TaskFunction_t
923  #define xListItem ListItem_t
924  #define xList List_t
925 #endif /* configENABLE_BACKWARD_COMPATIBILITY */
926 
927 #if( configUSE_ALTERNATIVE_API != 0 )
928  #error The alternative API was deprecated some time ago, and was removed in FreeRTOS V9.0 0
929 #endif
930 
931 /* Set configUSE_TASK_FPU_SUPPORT to 0 to omit floating point support even
932 if floating point hardware is otherwise supported by the FreeRTOS port in use.
933 This constant is not supported by all FreeRTOS ports that include floating
934 point support. */
935 #ifndef configUSE_TASK_FPU_SUPPORT
936  #define configUSE_TASK_FPU_SUPPORT 1
937 #endif
938 
939 /*
940  * In line with software engineering best practice, FreeRTOS implements a strict
941  * data hiding policy, so the real structures used by FreeRTOS to maintain the
942  * state of tasks, queues, semaphores, etc. are not accessible to the application
943  * code. However, if the application writer wants to statically allocate such
944  * an object then the size of the object needs to be know. Dummy structures
945  * that are guaranteed to have the same size and alignment requirements of the
946  * real objects are used for this purpose. The dummy list and list item
947  * structures below are used for inclusion in such a dummy structure.
948  */
950 {
952  void *pvDummy2[ 4 ];
953 };
955 
956 /* See the comments above the struct xSTATIC_LIST_ITEM definition. */
958 {
960  void *pvDummy2[ 2 ];
961 };
963 
964 /* See the comments above the struct xSTATIC_LIST_ITEM definition. */
965 typedef struct xSTATIC_LIST
966 {
968  void *pvDummy2;
970 } StaticList_t;
971 
972 /*
973  * In line with software engineering best practice, especially when supplying a
974  * library that is likely to change in future versions, FreeRTOS implements a
975  * strict data hiding policy. This means the Task structure used internally by
976  * FreeRTOS is not accessible to application code. However, if the application
977  * writer wants to statically allocate the memory required to create a task then
978  * the size of the task object needs to be know. The StaticTask_t structure
979  * below is provided for this purpose. Its sizes and alignment requirements are
980  * guaranteed to match those of the genuine structure, no matter which
981  * architecture is being used, and no matter how the values in FreeRTOSConfig.h
982  * are set. Its contents are somewhat obfuscated in the hope users will
983  * recognise that it would be unwise to make direct use of the structure members.
984  */
985 typedef struct xSTATIC_TCB
986 {
987  void *pxDummy1;
988  #if ( portUSING_MPU_WRAPPERS == 1 )
989  xMPU_SETTINGS xDummy2;
990  #endif
991  StaticListItem_t xDummy3[ 2 ];
993  void *pxDummy6;
994  uint8_t ucDummy7[ configMAX_TASK_NAME_LEN ];
995  #if ( ( portSTACK_GROWTH > 0 ) || ( configRECORD_STACK_HIGH_ADDRESS == 1 ) )
996  void *pxDummy8;
997  #endif
998  #if ( portCRITICAL_NESTING_IN_TCB == 1 )
999  UBaseType_t uxDummy9;
1000  #endif
1001  #if ( configUSE_TRACE_FACILITY == 1 )
1002  UBaseType_t uxDummy10[ 2 ];
1003  #endif
1004  #if ( configUSE_MUTEXES == 1 )
1005  UBaseType_t uxDummy12[ 2 ];
1006  #endif
1007  #if ( configUSE_APPLICATION_TASK_TAG == 1 )
1008  void *pxDummy14;
1009  #endif
1010  #if( configNUM_THREAD_LOCAL_STORAGE_POINTERS > 0 )
1011  void *pvDummy15[ configNUM_THREAD_LOCAL_STORAGE_POINTERS ];
1012  #endif
1013  #if ( configGENERATE_RUN_TIME_STATS == 1 )
1014  uint32_t ulDummy16;
1015  #endif
1016  #if ( configUSE_NEWLIB_REENTRANT == 1 )
1017  struct _reent xDummy17;
1018  #endif
1019  #if ( configUSE_TASK_NOTIFICATIONS == 1 )
1020  uint32_t ulDummy18;
1021  uint8_t ucDummy19;
1022  #endif
1023  #if( ( ( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) || ( portUSING_MPU_WRAPPERS == 1 ) )
1024  uint8_t uxDummy20;
1025  #endif
1026 
1027  #if( INCLUDE_xTaskAbortDelay == 1 )
1028  uint8_t ucDummy21;
1029  #endif
1030 
1031 } StaticTask_t;
1032 
1033 /*
1034  * In line with software engineering best practice, especially when supplying a
1035  * library that is likely to change in future versions, FreeRTOS implements a
1036  * strict data hiding policy. This means the Queue structure used internally by
1037  * FreeRTOS is not accessible to application code. However, if the application
1038  * writer wants to statically allocate the memory required to create a queue
1039  * then the size of the queue object needs to be know. The StaticQueue_t
1040  * structure below is provided for this purpose. Its sizes and alignment
1041  * requirements are guaranteed to match those of the genuine structure, no
1042  * matter which architecture is being used, and no matter how the values in
1043  * FreeRTOSConfig.h are set. Its contents are somewhat obfuscated in the hope
1044  * users will recognise that it would be unwise to make direct use of the
1045  * structure members.
1046  */
1047 typedef struct xSTATIC_QUEUE
1048 {
1049  void *pvDummy1[ 3 ];
1050 
1051  union
1052  {
1053  void *pvDummy2;
1055  } u;
1056 
1057  StaticList_t xDummy3[ 2 ];
1058  UBaseType_t uxDummy4[ 3 ];
1059  uint8_t ucDummy5[ 2 ];
1060 
1061  #if( ( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) )
1062  uint8_t ucDummy6;
1063  #endif
1064 
1065  #if ( configUSE_QUEUE_SETS == 1 )
1066  void *pvDummy7;
1067  #endif
1068 
1069  #if ( configUSE_TRACE_FACILITY == 1 )
1070  UBaseType_t uxDummy8;
1071  uint8_t ucDummy9;
1072  #endif
1073 
1074 } StaticQueue_t;
1076 
1077 /*
1078  * In line with software engineering best practice, especially when supplying a
1079  * library that is likely to change in future versions, FreeRTOS implements a
1080  * strict data hiding policy. This means the event group structure used
1081  * internally by FreeRTOS is not accessible to application code. However, if
1082  * the application writer wants to statically allocate the memory required to
1083  * create an event group then the size of the event group object needs to be
1084  * know. The StaticEventGroup_t structure below is provided for this purpose.
1085  * Its sizes and alignment requirements are guaranteed to match those of the
1086  * genuine structure, no matter which architecture is being used, and no matter
1087  * how the values in FreeRTOSConfig.h are set. Its contents are somewhat
1088  * obfuscated in the hope users will recognise that it would be unwise to make
1089  * direct use of the structure members.
1090  */
1091 typedef struct xSTATIC_EVENT_GROUP
1092 {
1095 
1096  #if( configUSE_TRACE_FACILITY == 1 )
1097  UBaseType_t uxDummy3;
1098  #endif
1099 
1100  #if( ( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) )
1101  uint8_t ucDummy4;
1102  #endif
1103 
1105 
1106 /*
1107  * In line with software engineering best practice, especially when supplying a
1108  * library that is likely to change in future versions, FreeRTOS implements a
1109  * strict data hiding policy. This means the software timer structure used
1110  * internally by FreeRTOS is not accessible to application code. However, if
1111  * the application writer wants to statically allocate the memory required to
1112  * create a software timer then the size of the queue object needs to be know.
1113  * The StaticTimer_t structure below is provided for this purpose. Its sizes
1114  * and alignment requirements are guaranteed to match those of the genuine
1115  * structure, no matter which architecture is being used, and no matter how the
1116  * values in FreeRTOSConfig.h are set. Its contents are somewhat obfuscated in
1117  * the hope users will recognise that it would be unwise to make direct use of
1118  * the structure members.
1119  */
1120 typedef struct xSTATIC_TIMER
1121 {
1122  void *pvDummy1;
1126  void *pvDummy5[ 2 ];
1127  #if( configUSE_TRACE_FACILITY == 1 )
1128  UBaseType_t uxDummy6;
1129  #endif
1130 
1131  #if( ( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) )
1132  uint8_t ucDummy7;
1133  #endif
1134 
1135 } StaticTimer_t;
1136 
1137 /*
1138 * In line with software engineering best practice, especially when supplying a
1139 * library that is likely to change in future versions, FreeRTOS implements a
1140 * strict data hiding policy. This means the stream buffer structure used
1141 * internally by FreeRTOS is not accessible to application code. However, if
1142 * the application writer wants to statically allocate the memory required to
1143 * create a stream buffer then the size of the stream buffer object needs to be
1144 * know. The StaticStreamBuffer_t structure below is provided for this purpose.
1145 * Its size and alignment requirements are guaranteed to match those of the
1146 * genuine structure, no matter which architecture is being used, and no matter
1147 * how the values in FreeRTOSConfig.h are set. Its contents are somewhat
1148 * obfuscated in the hope users will recognise that it would be unwise to make
1149 * direct use of the structure members.
1150 */
1152 {
1153  size_t uxDummy1[ 4 ];
1154  void * pvDummy2[ 3 ];
1155  uint8_t ucDummy3;
1156  #if ( configUSE_TRACE_FACILITY == 1 )
1157  UBaseType_t uxDummy4;
1158  #endif
1160 
1161 /* Message buffers are built on stream buffers. */
1163 
1164 #ifdef __cplusplus
1165 }
1166 #endif
1167 
1168 #endif /* INC_FREERTOS_H */
1169 
StaticStreamBuffer_t StaticMessageBuffer_t
Definition: FreeRTOS.h:1162
uint32_t ulDummy18
Definition: FreeRTOS.h:1020
void * pvDummy1
Definition: FreeRTOS.h:1122
#define configNUM_THREAD_LOCAL_STORAGE_POINTERS
Definition: FreeRTOS.h:195
StaticQueue_t StaticSemaphore_t
Definition: FreeRTOS.h:1075
struct xSTATIC_STREAM_BUFFER StaticStreamBuffer_t
UBaseType_t uxDummy2
Definition: FreeRTOS.h:1054
UBaseType_t uxDummy4
Definition: FreeRTOS.h:1125
TickType_t xDummy3
Definition: FreeRTOS.h:1124
UBaseType_t uxDummy1
Definition: FreeRTOS.h:967
unsigned long UBaseType_t
Definition: portmacro.h:58
uint32_t TickType_t
Definition: portmacro.h:64
TickType_t xDummy1
Definition: FreeRTOS.h:951
TickType_t xDummy1
Definition: FreeRTOS.h:1093
struct xSTATIC_TCB StaticTask_t
void * pvDummy2
Definition: FreeRTOS.h:968
void * pxDummy1
Definition: FreeRTOS.h:987
TickType_t xDummy1
Definition: FreeRTOS.h:959
void * pvDummy2
Definition: FreeRTOS.h:1053
StaticList_t xDummy2
Definition: FreeRTOS.h:1094
struct xSTATIC_LIST StaticList_t
struct xSTATIC_EVENT_GROUP StaticEventGroup_t
void * pvDummy2[4]
Definition: FreeRTOS.h:952
struct xSTATIC_TIMER StaticTimer_t
uint8_t ucDummy19
Definition: FreeRTOS.h:1021
UBaseType_t uxDummy5
Definition: FreeRTOS.h:992
StaticListItem_t xDummy2
Definition: FreeRTOS.h:1123
struct xSTATIC_QUEUE StaticQueue_t
#define configMAX_TASK_NAME_LEN
Definition: FreeRTOS.h:223
StaticMiniListItem_t xDummy3
Definition: FreeRTOS.h:969
void * pxDummy6
Definition: FreeRTOS.h:993


inertial_sense_ros
Author(s):
autogenerated on Sun Feb 28 2021 03:17:57