2 FreeRTOS V8.0.1 - Copyright (C) 2014 Real Time Engineers Ltd.
\r
5 VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
\r
7 ***************************************************************************
\r
9 * FreeRTOS provides completely free yet professionally developed, *
\r
10 * robust, strictly quality controlled, supported, and cross *
\r
11 * platform software that has become a de facto standard. *
\r
13 * Help yourself get started quickly and support the FreeRTOS *
\r
14 * project by purchasing a FreeRTOS tutorial book, reference *
\r
15 * manual, or both from: http://www.FreeRTOS.org/Documentation *
\r
19 ***************************************************************************
\r
21 This file is part of the FreeRTOS distribution.
\r
23 FreeRTOS is free software; you can redistribute it and/or modify it under
\r
24 the terms of the GNU General Public License (version 2) as published by the
\r
25 Free Software Foundation >>!AND MODIFIED BY!<< the FreeRTOS exception.
\r
27 >>! NOTE: The modification to the GPL is included to allow you to !<<
\r
28 >>! distribute a combined work that includes FreeRTOS without being !<<
\r
29 >>! obliged to provide the source code for proprietary components !<<
\r
30 >>! outside of the FreeRTOS kernel. !<<
\r
32 FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY
\r
33 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
\r
34 FOR A PARTICULAR PURPOSE. Full license text is available from the following
\r
35 link: http://www.freertos.org/a00114.html
\r
39 ***************************************************************************
\r
41 * Having a problem? Start by reading the FAQ "My application does *
\r
42 * not run, what could be wrong?" *
\r
44 * http://www.FreeRTOS.org/FAQHelp.html *
\r
46 ***************************************************************************
\r
48 http://www.FreeRTOS.org - Documentation, books, training, latest versions,
\r
49 license and Real Time Engineers Ltd. contact details.
\r
51 http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,
\r
52 including FreeRTOS+Trace - an indispensable productivity tool, a DOS
\r
53 compatible FAT file system, and our tiny thread aware UDP/IP stack.
\r
55 http://www.OpenRTOS.com - Real Time Engineers ltd license FreeRTOS to High
\r
56 Integrity Systems to sell under the OpenRTOS brand. Low cost OpenRTOS
\r
57 licenses offer ticketed support, indemnification and middleware.
\r
59 http://www.SafeRTOS.com - High Integrity Systems also provide a safety
\r
60 engineered and independently SIL3 certified version for use in safety and
\r
61 mission critical applications that require provable dependability.
\r
66 #ifndef INC_FREERTOS_H
\r
67 #define INC_FREERTOS_H
\r
70 * Include the generic headers required for the FreeRTOS port being used.
\r
75 * If stdint.h cannot be located then:
\r
76 * + If using GCC ensure the -nostdint options is *not* being used.
\r
77 * + Ensure the project's include path includes the directory in which your
\r
78 * compiler stores stdint.h.
\r
79 * + Set any compiler options necessary for it to support C99, as technically
\r
80 * stdint.h is only mandatory with C99 (FreeRTOS does not require C99 in any
\r
82 * + The FreeRTOS download includes a simple stdint.h definition that can be
\r
83 * used in cases where none is provided by the compiler. The files only
\r
84 * contains the typedefs required to build FreeRTOS. Read the instructions
\r
85 * in FreeRTOS/source/stdint.readme for more information.
\r
87 #include <stdint.h> /* READ COMMENT ABOVE. */
\r
93 /* Application specific configuration options. */
\r
94 #include "FreeRTOSConfig.h"
\r
96 /* Basic FreeRTOS definitions. */
\r
97 #include "projdefs.h"
\r
99 /* configUSE_PORT_OPTIMISED_TASK_SELECTION must be defined before portable.h
\r
100 is included as it is used by the port layer. */
\r
101 #ifndef configUSE_PORT_OPTIMISED_TASK_SELECTION
\r
102 #define configUSE_PORT_OPTIMISED_TASK_SELECTION 0
\r
105 /* Definitions specific to the port being used. */
\r
106 #include "portable.h"
\r
109 * Check all the required application specific macros have been defined.
\r
110 * These macros are application specific and (as downloaded) are defined
\r
111 * within FreeRTOSConfig.h.
\r
114 #ifndef configMINIMAL_STACK_SIZE
\r
115 #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.
\r
118 #ifndef configMAX_PRIORITIES
\r
119 #error Missing definition: configMAX_PRIORITIES must be defined in FreeRTOSConfig.h. See the Configuration section of the FreeRTOS API documentation for details.
\r
122 #ifndef configUSE_PREEMPTION
\r
123 #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.
\r
126 #ifndef configUSE_IDLE_HOOK
\r
127 #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.
\r
130 #ifndef configUSE_TICK_HOOK
\r
131 #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.
\r
134 #ifndef configUSE_CO_ROUTINES
\r
135 #error Missing definition: configUSE_CO_ROUTINES must be defined in FreeRTOSConfig.h as either 1 or 0. See the Configuration section of the FreeRTOS API documentation for details.
\r
138 #ifndef INCLUDE_vTaskPrioritySet
\r
139 #error Missing definition: INCLUDE_vTaskPrioritySet must be defined in FreeRTOSConfig.h as either 1 or 0. See the Configuration section of the FreeRTOS API documentation for details.
\r
142 #ifndef INCLUDE_uxTaskPriorityGet
\r
143 #error Missing definition: INCLUDE_uxTaskPriorityGet must be defined in FreeRTOSConfig.h as either 1 or 0. See the Configuration section of the FreeRTOS API documentation for details.
\r
146 #ifndef INCLUDE_vTaskDelete
\r
147 #error Missing definition: INCLUDE_vTaskDelete must be defined in FreeRTOSConfig.h as either 1 or 0. See the Configuration section of the FreeRTOS API documentation for details.
\r
150 #ifndef INCLUDE_vTaskSuspend
\r
151 #error Missing definition: INCLUDE_vTaskSuspend must be defined in FreeRTOSConfig.h as either 1 or 0. See the Configuration section of the FreeRTOS API documentation for details.
\r
154 #ifndef INCLUDE_vTaskDelayUntil
\r
155 #error Missing definition: INCLUDE_vTaskDelayUntil must be defined in FreeRTOSConfig.h as either 1 or 0. See the Configuration section of the FreeRTOS API documentation for details.
\r
158 #ifndef INCLUDE_vTaskDelay
\r
159 #error Missing definition: INCLUDE_vTaskDelay must be defined in FreeRTOSConfig.h as either 1 or 0. See the Configuration section of the FreeRTOS API documentation for details.
\r
162 #ifndef configUSE_16_BIT_TICKS
\r
163 #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.
\r
166 #if configUSE_CO_ROUTINES != 0
\r
167 #ifndef configMAX_CO_ROUTINE_PRIORITIES
\r
168 #error configMAX_CO_ROUTINE_PRIORITIES must be greater than or equal to 1.
\r
172 #ifndef configMAX_PRIORITIES
\r
173 #error configMAX_PRIORITIES must be defined to be greater than or equal to 1.
\r
176 #ifndef INCLUDE_xTaskGetIdleTaskHandle
\r
177 #define INCLUDE_xTaskGetIdleTaskHandle 0
\r
180 #ifndef INCLUDE_xTimerGetTimerDaemonTaskHandle
\r
181 #define INCLUDE_xTimerGetTimerDaemonTaskHandle 0
\r
184 #ifndef INCLUDE_xQueueGetMutexHolder
\r
185 #define INCLUDE_xQueueGetMutexHolder 0
\r
188 #ifndef INCLUDE_xSemaphoreGetMutexHolder
\r
189 #define INCLUDE_xSemaphoreGetMutexHolder INCLUDE_xQueueGetMutexHolder
\r
192 #ifndef INCLUDE_pcTaskGetTaskName
\r
193 #define INCLUDE_pcTaskGetTaskName 0
\r
196 #ifndef configUSE_APPLICATION_TASK_TAG
\r
197 #define configUSE_APPLICATION_TASK_TAG 0
\r
200 #ifndef INCLUDE_uxTaskGetStackHighWaterMark
\r
201 #define INCLUDE_uxTaskGetStackHighWaterMark 0
\r
204 #ifndef INCLUDE_eTaskGetState
\r
205 #define INCLUDE_eTaskGetState 0
\r
208 #ifndef configUSE_RECURSIVE_MUTEXES
\r
209 #define configUSE_RECURSIVE_MUTEXES 0
\r
212 #ifndef configUSE_MUTEXES
\r
213 #define configUSE_MUTEXES 0
\r
216 #ifndef configUSE_TIMERS
\r
217 #define configUSE_TIMERS 0
\r
220 #ifndef configUSE_COUNTING_SEMAPHORES
\r
221 #define configUSE_COUNTING_SEMAPHORES 0
\r
224 #ifndef configUSE_ALTERNATIVE_API
\r
225 #define configUSE_ALTERNATIVE_API 0
\r
228 #ifndef portCRITICAL_NESTING_IN_TCB
\r
229 #define portCRITICAL_NESTING_IN_TCB 0
\r
232 #ifndef configMAX_TASK_NAME_LEN
\r
233 #define configMAX_TASK_NAME_LEN 16
\r
236 #ifndef configIDLE_SHOULD_YIELD
\r
237 #define configIDLE_SHOULD_YIELD 1
\r
240 #if configMAX_TASK_NAME_LEN < 1
\r
241 #error configMAX_TASK_NAME_LEN must be set to a minimum of 1 in FreeRTOSConfig.h
\r
244 #ifndef INCLUDE_xTaskResumeFromISR
\r
245 #define INCLUDE_xTaskResumeFromISR 1
\r
248 #ifndef INCLUDE_xEventGroupSetBitFromISR
\r
249 #define INCLUDE_xEventGroupSetBitFromISR 0
\r
252 #ifndef INCLUDE_xTimerPendFunctionCall
\r
253 #define INCLUDE_xTimerPendFunctionCall 0
\r
256 #ifndef configASSERT
\r
257 #define configASSERT( x )
\r
258 #define configASSERT_DEFINED 0
\r
260 #define configASSERT_DEFINED 1
\r
263 /* The timers module relies on xTaskGetSchedulerState(). */
\r
264 #if configUSE_TIMERS == 1
\r
266 #ifndef configTIMER_TASK_PRIORITY
\r
267 #error If configUSE_TIMERS is set to 1 then configTIMER_TASK_PRIORITY must also be defined.
\r
268 #endif /* configTIMER_TASK_PRIORITY */
\r
270 #ifndef configTIMER_QUEUE_LENGTH
\r
271 #error If configUSE_TIMERS is set to 1 then configTIMER_QUEUE_LENGTH must also be defined.
\r
272 #endif /* configTIMER_QUEUE_LENGTH */
\r
274 #ifndef configTIMER_TASK_STACK_DEPTH
\r
275 #error If configUSE_TIMERS is set to 1 then configTIMER_TASK_STACK_DEPTH must also be defined.
\r
276 #endif /* configTIMER_TASK_STACK_DEPTH */
\r
278 #endif /* configUSE_TIMERS */
\r
280 #ifndef INCLUDE_xTaskGetSchedulerState
\r
281 #define INCLUDE_xTaskGetSchedulerState 0
\r
284 #ifndef INCLUDE_xTaskGetCurrentTaskHandle
\r
285 #define INCLUDE_xTaskGetCurrentTaskHandle 0
\r
289 #ifndef portSET_INTERRUPT_MASK_FROM_ISR
\r
290 #define portSET_INTERRUPT_MASK_FROM_ISR() 0
\r
293 #ifndef portCLEAR_INTERRUPT_MASK_FROM_ISR
\r
294 #define portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedStatusValue ) ( void ) uxSavedStatusValue
\r
297 #ifndef portCLEAN_UP_TCB
\r
298 #define portCLEAN_UP_TCB( pxTCB ) ( void ) pxTCB
\r
301 #ifndef portPRE_TASK_DELETE_HOOK
\r
302 #define portPRE_TASK_DELETE_HOOK( pvTaskToDelete, pxYieldPending )
\r
305 #ifndef portSETUP_TCB
\r
306 #define portSETUP_TCB( pxTCB ) ( void ) pxTCB
\r
309 #ifndef configQUEUE_REGISTRY_SIZE
\r
310 #define configQUEUE_REGISTRY_SIZE 0U
\r
313 #if ( configQUEUE_REGISTRY_SIZE < 1 )
\r
314 #define vQueueAddToRegistry( xQueue, pcName )
\r
315 #define vQueueUnregisterQueue( xQueue )
\r
318 #ifndef portPOINTER_SIZE_TYPE
\r
319 #define portPOINTER_SIZE_TYPE uint32_t
\r
322 /* Remove any unused trace macros. */
\r
324 /* Used to perform any necessary initialisation - for example, open a file
\r
325 into which trace is to be written. */
\r
326 #define traceSTART()
\r
330 /* Use to close a trace, for example close a file into which trace has been
\r
335 #ifndef traceTASK_SWITCHED_IN
\r
336 /* Called after a task has been selected to run. pxCurrentTCB holds a pointer
\r
337 to the task control block of the selected task. */
\r
338 #define traceTASK_SWITCHED_IN()
\r
341 #ifndef traceINCREASE_TICK_COUNT
\r
342 /* Called before stepping the tick count after waking from tickless idle
\r
344 #define traceINCREASE_TICK_COUNT( x )
\r
347 #ifndef traceLOW_POWER_IDLE_BEGIN
\r
348 /* Called immediately before entering tickless idle. */
\r
349 #define traceLOW_POWER_IDLE_BEGIN()
\r
352 #ifndef traceLOW_POWER_IDLE_END
\r
353 /* Called when returning to the Idle task after a tickless idle. */
\r
354 #define traceLOW_POWER_IDLE_END()
\r
357 #ifndef traceTASK_SWITCHED_OUT
\r
358 /* Called before a task has been selected to run. pxCurrentTCB holds a pointer
\r
359 to the task control block of the task being switched out. */
\r
360 #define traceTASK_SWITCHED_OUT()
\r
363 #ifndef traceTASK_PRIORITY_INHERIT
\r
364 /* Called when a task attempts to take a mutex that is already held by a
\r
365 lower priority task. pxTCBOfMutexHolder is a pointer to the TCB of the task
\r
366 that holds the mutex. uxInheritedPriority is the priority the mutex holder
\r
367 will inherit (the priority of the task that is attempting to obtain the
\r
369 #define traceTASK_PRIORITY_INHERIT( pxTCBOfMutexHolder, uxInheritedPriority )
\r
372 #ifndef traceTASK_PRIORITY_DISINHERIT
\r
373 /* Called when a task releases a mutex, the holding of which had resulted in
\r
374 the task inheriting the priority of a higher priority task.
\r
375 pxTCBOfMutexHolder is a pointer to the TCB of the task that is releasing the
\r
376 mutex. uxOriginalPriority is the task's configured (base) priority. */
\r
377 #define traceTASK_PRIORITY_DISINHERIT( pxTCBOfMutexHolder, uxOriginalPriority )
\r
380 #ifndef traceBLOCKING_ON_QUEUE_RECEIVE
\r
381 /* Task is about to block because it cannot read from a
\r
382 queue/mutex/semaphore. pxQueue is a pointer to the queue/mutex/semaphore
\r
383 upon which the read was attempted. pxCurrentTCB points to the TCB of the
\r
384 task that attempted the read. */
\r
385 #define traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue )
\r
388 #ifndef traceBLOCKING_ON_QUEUE_SEND
\r
389 /* Task is about to block because it cannot write to a
\r
390 queue/mutex/semaphore. pxQueue is a pointer to the queue/mutex/semaphore
\r
391 upon which the write was attempted. pxCurrentTCB points to the TCB of the
\r
392 task that attempted the write. */
\r
393 #define traceBLOCKING_ON_QUEUE_SEND( pxQueue )
\r
396 #ifndef configCHECK_FOR_STACK_OVERFLOW
\r
397 #define configCHECK_FOR_STACK_OVERFLOW 0
\r
400 /* The following event macros are embedded in the kernel API calls. */
\r
402 #ifndef traceMOVED_TASK_TO_READY_STATE
\r
403 #define traceMOVED_TASK_TO_READY_STATE( pxTCB )
\r
406 #ifndef traceQUEUE_CREATE
\r
407 #define traceQUEUE_CREATE( pxNewQueue )
\r
410 #ifndef traceQUEUE_CREATE_FAILED
\r
411 #define traceQUEUE_CREATE_FAILED( ucQueueType )
\r
414 #ifndef traceCREATE_MUTEX
\r
415 #define traceCREATE_MUTEX( pxNewQueue )
\r
418 #ifndef traceCREATE_MUTEX_FAILED
\r
419 #define traceCREATE_MUTEX_FAILED()
\r
422 #ifndef traceGIVE_MUTEX_RECURSIVE
\r
423 #define traceGIVE_MUTEX_RECURSIVE( pxMutex )
\r
426 #ifndef traceGIVE_MUTEX_RECURSIVE_FAILED
\r
427 #define traceGIVE_MUTEX_RECURSIVE_FAILED( pxMutex )
\r
430 #ifndef traceTAKE_MUTEX_RECURSIVE
\r
431 #define traceTAKE_MUTEX_RECURSIVE( pxMutex )
\r
434 #ifndef traceTAKE_MUTEX_RECURSIVE_FAILED
\r
435 #define traceTAKE_MUTEX_RECURSIVE_FAILED( pxMutex )
\r
438 #ifndef traceCREATE_COUNTING_SEMAPHORE
\r
439 #define traceCREATE_COUNTING_SEMAPHORE()
\r
442 #ifndef traceCREATE_COUNTING_SEMAPHORE_FAILED
\r
443 #define traceCREATE_COUNTING_SEMAPHORE_FAILED()
\r
446 #ifndef traceQUEUE_SEND
\r
447 #define traceQUEUE_SEND( pxQueue )
\r
450 #ifndef traceQUEUE_SEND_FAILED
\r
451 #define traceQUEUE_SEND_FAILED( pxQueue )
\r
454 #ifndef traceQUEUE_RECEIVE
\r
455 #define traceQUEUE_RECEIVE( pxQueue )
\r
458 #ifndef traceQUEUE_PEEK
\r
459 #define traceQUEUE_PEEK( pxQueue )
\r
462 #ifndef traceQUEUE_PEEK_FROM_ISR
\r
463 #define traceQUEUE_PEEK_FROM_ISR( pxQueue )
\r
466 #ifndef traceQUEUE_RECEIVE_FAILED
\r
467 #define traceQUEUE_RECEIVE_FAILED( pxQueue )
\r
470 #ifndef traceQUEUE_SEND_FROM_ISR
\r
471 #define traceQUEUE_SEND_FROM_ISR( pxQueue )
\r
474 #ifndef traceQUEUE_SEND_FROM_ISR_FAILED
\r
475 #define traceQUEUE_SEND_FROM_ISR_FAILED( pxQueue )
\r
478 #ifndef traceQUEUE_RECEIVE_FROM_ISR
\r
479 #define traceQUEUE_RECEIVE_FROM_ISR( pxQueue )
\r
482 #ifndef traceQUEUE_RECEIVE_FROM_ISR_FAILED
\r
483 #define traceQUEUE_RECEIVE_FROM_ISR_FAILED( pxQueue )
\r
486 #ifndef traceQUEUE_PEEK_FROM_ISR_FAILED
\r
487 #define traceQUEUE_PEEK_FROM_ISR_FAILED( pxQueue )
\r
490 #ifndef traceQUEUE_DELETE
\r
491 #define traceQUEUE_DELETE( pxQueue )
\r
494 #ifndef traceTASK_CREATE
\r
495 #define traceTASK_CREATE( pxNewTCB )
\r
498 #ifndef traceTASK_CREATE_FAILED
\r
499 #define traceTASK_CREATE_FAILED()
\r
502 #ifndef traceTASK_DELETE
\r
503 #define traceTASK_DELETE( pxTaskToDelete )
\r
506 #ifndef traceTASK_DELAY_UNTIL
\r
507 #define traceTASK_DELAY_UNTIL()
\r
510 #ifndef traceTASK_DELAY
\r
511 #define traceTASK_DELAY()
\r
514 #ifndef traceTASK_PRIORITY_SET
\r
515 #define traceTASK_PRIORITY_SET( pxTask, uxNewPriority )
\r
518 #ifndef traceTASK_SUSPEND
\r
519 #define traceTASK_SUSPEND( pxTaskToSuspend )
\r
522 #ifndef traceTASK_RESUME
\r
523 #define traceTASK_RESUME( pxTaskToResume )
\r
526 #ifndef traceTASK_RESUME_FROM_ISR
\r
527 #define traceTASK_RESUME_FROM_ISR( pxTaskToResume )
\r
530 #ifndef traceTASK_INCREMENT_TICK
\r
531 #define traceTASK_INCREMENT_TICK( xTickCount )
\r
534 #ifndef traceTIMER_CREATE
\r
535 #define traceTIMER_CREATE( pxNewTimer )
\r
538 #ifndef traceTIMER_CREATE_FAILED
\r
539 #define traceTIMER_CREATE_FAILED()
\r
542 #ifndef traceTIMER_COMMAND_SEND
\r
543 #define traceTIMER_COMMAND_SEND( xTimer, xMessageID, xMessageValueValue, xReturn )
\r
546 #ifndef traceTIMER_EXPIRED
\r
547 #define traceTIMER_EXPIRED( pxTimer )
\r
550 #ifndef traceTIMER_COMMAND_RECEIVED
\r
551 #define traceTIMER_COMMAND_RECEIVED( pxTimer, xMessageID, xMessageValue )
\r
554 #ifndef traceMALLOC
\r
555 #define traceMALLOC( pvAddress, uiSize )
\r
559 #define traceFREE( pvAddress, uiSize )
\r
562 #ifndef traceEVENT_GROUP_CREATE
\r
563 #define traceEVENT_GROUP_CREATE( xEventGroup )
\r
566 #ifndef traceEVENT_GROUP_CREATE_FAILED
\r
567 #define traceEVENT_GROUP_CREATE_FAILED()
\r
570 #ifndef traceEVENT_GROUP_SYNC_BLOCK
\r
571 #define traceEVENT_GROUP_SYNC_BLOCK( xEventGroup, uxBitsToSet, uxBitsToWaitFor )
\r
574 #ifndef traceEVENT_GROUP_SYNC_END
\r
575 #define traceEVENT_GROUP_SYNC_END( xEventGroup, uxBitsToSet, uxBitsToWaitFor, xTimeoutOccurred ) ( void ) xTimeoutOccurred
\r
578 #ifndef traceEVENT_GROUP_WAIT_BITS_BLOCK
\r
579 #define traceEVENT_GROUP_WAIT_BITS_BLOCK( xEventGroup, uxBitsToWaitFor )
\r
582 #ifndef traceEVENT_GROUP_WAIT_BITS_END
\r
583 #define traceEVENT_GROUP_WAIT_BITS_END( xEventGroup, uxBitsToWaitFor, xTimeoutOccurred ) ( void ) xTimeoutOccurred
\r
586 #ifndef traceEVENT_GROUP_CLEAR_BITS
\r
587 #define traceEVENT_GROUP_CLEAR_BITS( xEventGroup, uxBitsToClear )
\r
590 #ifndef traceEVENT_GROUP_CLEAR_BITS_FROM_ISR
\r
591 #define traceEVENT_GROUP_CLEAR_BITS_FROM_ISR( xEventGroup, uxBitsToClear )
\r
594 #ifndef traceEVENT_GROUP_SET_BITS
\r
595 #define traceEVENT_GROUP_SET_BITS( xEventGroup, uxBitsToSet )
\r
598 #ifndef traceEVENT_GROUP_SET_BITS_FROM_ISR
\r
599 #define traceEVENT_GROUP_SET_BITS_FROM_ISR( xEventGroup, uxBitsToSet )
\r
602 #ifndef traceEVENT_GROUP_DELETE
\r
603 #define traceEVENT_GROUP_DELETE( xEventGroup )
\r
606 #ifndef tracePEND_FUNC_CALL
\r
607 #define tracePEND_FUNC_CALL(xFunctionToPend, pvParameter1, ulParameter2, ret)
\r
610 #ifndef tracePEND_FUNC_CALL_FROM_ISR
\r
611 #define tracePEND_FUNC_CALL_FROM_ISR(xFunctionToPend, pvParameter1, ulParameter2, ret)
\r
614 #ifndef traceQUEUE_REGISTRY_ADD
\r
615 #define traceQUEUE_REGISTRY_ADD(xQueue, pcQueueName)
\r
618 #ifndef configGENERATE_RUN_TIME_STATS
\r
619 #define configGENERATE_RUN_TIME_STATS 0
\r
622 #if ( configGENERATE_RUN_TIME_STATS == 1 )
\r
624 #ifndef portCONFIGURE_TIMER_FOR_RUN_TIME_STATS
\r
625 #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.
\r
626 #endif /* portCONFIGURE_TIMER_FOR_RUN_TIME_STATS */
\r
628 #ifndef portGET_RUN_TIME_COUNTER_VALUE
\r
629 #ifndef portALT_GET_RUN_TIME_COUNTER_VALUE
\r
630 #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.
\r
631 #endif /* portALT_GET_RUN_TIME_COUNTER_VALUE */
\r
632 #endif /* portGET_RUN_TIME_COUNTER_VALUE */
\r
634 #endif /* configGENERATE_RUN_TIME_STATS */
\r
636 #ifndef portCONFIGURE_TIMER_FOR_RUN_TIME_STATS
\r
637 #define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS()
\r
640 #ifndef configUSE_MALLOC_FAILED_HOOK
\r
641 #define configUSE_MALLOC_FAILED_HOOK 0
\r
644 #ifndef portPRIVILEGE_BIT
\r
645 #define portPRIVILEGE_BIT ( ( UBaseType_t ) 0x00 )
\r
648 #ifndef portYIELD_WITHIN_API
\r
649 #define portYIELD_WITHIN_API portYIELD
\r
652 #ifndef pvPortMallocAligned
\r
653 #define pvPortMallocAligned( x, puxStackBuffer ) ( ( ( puxStackBuffer ) == NULL ) ? ( pvPortMalloc( ( x ) ) ) : ( puxStackBuffer ) )
\r
656 #ifndef vPortFreeAligned
\r
657 #define vPortFreeAligned( pvBlockToFree ) vPortFree( pvBlockToFree )
\r
660 #ifndef portSUPPRESS_TICKS_AND_SLEEP
\r
661 #define portSUPPRESS_TICKS_AND_SLEEP( xExpectedIdleTime )
\r
664 #ifndef configEXPECTED_IDLE_TIME_BEFORE_SLEEP
\r
665 #define configEXPECTED_IDLE_TIME_BEFORE_SLEEP 2
\r
668 #if configEXPECTED_IDLE_TIME_BEFORE_SLEEP < 2
\r
669 #error configEXPECTED_IDLE_TIME_BEFORE_SLEEP must not be less than 2
\r
672 #ifndef configUSE_TICKLESS_IDLE
\r
673 #define configUSE_TICKLESS_IDLE 0
\r
676 #ifndef configPRE_SLEEP_PROCESSING
\r
677 #define configPRE_SLEEP_PROCESSING( x )
\r
680 #ifndef configPOST_SLEEP_PROCESSING
\r
681 #define configPOST_SLEEP_PROCESSING( x )
\r
684 #ifndef configUSE_QUEUE_SETS
\r
685 #define configUSE_QUEUE_SETS 0
\r
688 #ifndef portTASK_USES_FLOATING_POINT
\r
689 #define portTASK_USES_FLOATING_POINT()
\r
692 #ifndef configUSE_TIME_SLICING
\r
693 #define configUSE_TIME_SLICING 1
\r
696 #ifndef configINCLUDE_APPLICATION_DEFINED_PRIVILEGED_FUNCTIONS
\r
697 #define configINCLUDE_APPLICATION_DEFINED_PRIVILEGED_FUNCTIONS 0
\r
700 #ifndef configUSE_NEWLIB_REENTRANT
\r
701 #define configUSE_NEWLIB_REENTRANT 0
\r
704 #ifndef configUSE_STATS_FORMATTING_FUNCTIONS
\r
705 #define configUSE_STATS_FORMATTING_FUNCTIONS 0
\r
708 #ifndef portASSERT_IF_INTERRUPT_PRIORITY_INVALID
\r
709 #define portASSERT_IF_INTERRUPT_PRIORITY_INVALID()
\r
712 #ifndef configUSE_TRACE_FACILITY
\r
713 #define configUSE_TRACE_FACILITY 0
\r
716 #ifndef mtCOVERAGE_TEST_MARKER
\r
717 #define mtCOVERAGE_TEST_MARKER()
\r
720 #ifndef portASSERT_IF_IN_ISR
\r
721 #define portASSERT_IF_IN_ISR()
\r
724 /* Definitions to allow backward compatibility with FreeRTOS versions prior to
\r
726 #ifndef configENABLE_BACKWARD_COMPATIBILITY
\r
727 #define configENABLE_BACKWARD_COMPATIBILITY 1
\r
730 #if configENABLE_BACKWARD_COMPATIBILITY == 1
\r
731 #define eTaskStateGet eTaskGetState
\r
732 #define portTickType TickType_t
\r
733 #define xTaskHandle TaskHandle_t
\r
734 #define xQueueHandle QueueHandle_t
\r
735 #define xSemaphoreHandle SemaphoreHandle_t
\r
736 #define xQueueSetHandle QueueSetHandle_t
\r
737 #define xQueueSetMemberHandle QueueSetMemberHandle_t
\r
738 #define xTimeOutType TimeOut_t
\r
739 #define xMemoryRegion MemoryRegion_t
\r
740 #define xTaskParameters TaskParameters_t
\r
741 #define xTaskStatusType TaskStatus_t
\r
742 #define xTimerHandle TimerHandle_t
\r
743 #define xCoRoutineHandle CoRoutineHandle_t
\r
744 #define pdTASK_HOOK_CODE TaskHookFunction_t
\r
745 #define portTICK_RATE_MS portTICK_PERIOD_MS
\r
747 /* Backward compatibility within the scheduler code only - these definitions
\r
748 are not really required but are included for completeness. */
\r
749 #define tmrTIMER_CALLBACK TimerCallbackFunction_t
\r
750 #define pdTASK_CODE TaskFunction_t
\r
751 #define xListItem ListItem_t
\r
752 #define xList List_t
\r
753 #endif /* configENABLE_BACKWARD_COMPATIBILITY */
\r
759 #endif /* INC_FREERTOS_H */
\r