mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
change(freertos/idf): Update FreeRTOS documentation build
This commit does the following: - Update doxygen comments in FreeRTOS headers to remove unsupported doxygen labels and internal functions - Fixed existing doxygen warnings in FreeRTOS headers
This commit is contained in:
parent
fdfdfc6d9e
commit
94b46599c3
@ -147,3 +147,49 @@ List of differences between Vanilla FreeRTOS V10.5.1 and building the dual-core
|
|||||||
- Extended critical section so that SMP can check for yields while still inside critical section
|
- Extended critical section so that SMP can check for yields while still inside critical section
|
||||||
- `vTaskStepTick()`
|
- `vTaskStepTick()`
|
||||||
- Extended critical section so that SMP can access `xTickCount` while still inside critical section
|
- Extended critical section so that SMP can access `xTickCount` while still inside critical section
|
||||||
|
|
||||||
|
## Header File & Doxygen Changes
|
||||||
|
|
||||||
|
List of changes made to Vanilla FreeRTOS V10.5.1 header files to allow for building in ESP-IDF documentation build system.
|
||||||
|
|
||||||
|
- Removed leading header name line (e.g., `xxx.h`) in doxygen comment blocks. For example:
|
||||||
|
|
||||||
|
```c
|
||||||
|
/**
|
||||||
|
* xxx.h
|
||||||
|
*
|
||||||
|
* Documentation from some func
|
||||||
|
*/
|
||||||
|
void some_func(void);
|
||||||
|
```
|
||||||
|
|
||||||
|
- Removed leading `@code{c}` blocks in containing redundant function prototypes. For example:
|
||||||
|
|
||||||
|
```c
|
||||||
|
/**
|
||||||
|
* @code{c}
|
||||||
|
* void some_func(int var_a, int var_b);
|
||||||
|
* @endcode
|
||||||
|
*
|
||||||
|
* Documentation from some func
|
||||||
|
*/
|
||||||
|
void some_func(int var_a, int var_b);
|
||||||
|
```
|
||||||
|
|
||||||
|
- Added `/** @cond !DOC_EXCLUDE_HEADER_SECTION */` and `/** @endcond */` labels to exclude various doxygen sections from being included into documentation builds. These excluded sections include:
|
||||||
|
- In doxygen blocks that describe multiple related set of functions/macros, only the function/macro that matches the doxygen blocks parameters is included. For example:
|
||||||
|
```c
|
||||||
|
/**
|
||||||
|
* Description that covers both some_func() and some_func_extra()
|
||||||
|
*
|
||||||
|
* @param var_a var_a description
|
||||||
|
* @param var_b var_b description
|
||||||
|
*/
|
||||||
|
/** @cond !DOC_EXCLUDE_HEADER_SECTION */
|
||||||
|
#define some_func(var_a) #define some_func_generic(var_a, NULL)
|
||||||
|
/** @endcond */
|
||||||
|
#define some_func_extra(var_a, var_b) #define some_func_generic(var_a, var_b)
|
||||||
|
```
|
||||||
|
- In functions/macros that are not meant to be directly called by users (i.e., internal), such as the various `Generic` variants of functions
|
||||||
|
|
||||||
|
- Some types/functions/macros are manually documented, thus are documented with regular comment blocks (i.e., `/* */`) instead of doxygen comment blocks (i.e., `/** */`). Some of these blocks are changed into doxygen blocks.
|
||||||
|
@ -74,13 +74,11 @@
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* event_groups.h
|
|
||||||
*
|
*
|
||||||
* Type by which event groups are referenced. For example, a call to
|
* Type by which event groups are referenced. For example, a call to
|
||||||
* xEventGroupCreate() returns an EventGroupHandle_t variable that can then
|
* xEventGroupCreate() returns an EventGroupHandle_t variable that can then
|
||||||
* be used as a parameter to other event group functions.
|
* be used as a parameter to other event group functions.
|
||||||
*
|
*
|
||||||
* \defgroup EventGroupHandle_t EventGroupHandle_t
|
|
||||||
* \ingroup EventGroup
|
* \ingroup EventGroup
|
||||||
*/
|
*/
|
||||||
struct EventGroupDef_t;
|
struct EventGroupDef_t;
|
||||||
@ -91,16 +89,11 @@ typedef struct EventGroupDef_t * EventGroupHandle_t;
|
|||||||
* number of bits it holds is set by configUSE_16_BIT_TICKS (16 bits if set to 1,
|
* number of bits it holds is set by configUSE_16_BIT_TICKS (16 bits if set to 1,
|
||||||
* 32 bits if set to 0.
|
* 32 bits if set to 0.
|
||||||
*
|
*
|
||||||
* \defgroup EventBits_t EventBits_t
|
|
||||||
* \ingroup EventGroup
|
* \ingroup EventGroup
|
||||||
*/
|
*/
|
||||||
typedef TickType_t EventBits_t;
|
typedef TickType_t EventBits_t;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* event_groups.h
|
|
||||||
* @code{c}
|
|
||||||
* EventGroupHandle_t xEventGroupCreate( void );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Create a new event group.
|
* Create a new event group.
|
||||||
*
|
*
|
||||||
@ -145,7 +138,6 @@ typedef TickType_t EventBits_t;
|
|||||||
* // The event group was created.
|
* // The event group was created.
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xEventGroupCreate xEventGroupCreate
|
|
||||||
* \ingroup EventGroup
|
* \ingroup EventGroup
|
||||||
*/
|
*/
|
||||||
#if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
|
#if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
|
||||||
@ -153,10 +145,6 @@ typedef TickType_t EventBits_t;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* event_groups.h
|
|
||||||
* @code{c}
|
|
||||||
* EventGroupHandle_t xEventGroupCreateStatic( EventGroupHandle_t * pxEventGroupBuffer );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Create a new event group.
|
* Create a new event group.
|
||||||
*
|
*
|
||||||
@ -206,14 +194,6 @@ typedef TickType_t EventBits_t;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* event_groups.h
|
|
||||||
* @code{c}
|
|
||||||
* EventBits_t xEventGroupWaitBits( EventGroupHandle_t xEventGroup,
|
|
||||||
* const EventBits_t uxBitsToWaitFor,
|
|
||||||
* const BaseType_t xClearOnExit,
|
|
||||||
* const BaseType_t xWaitForAllBits,
|
|
||||||
* const TickType_t xTicksToWait );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* [Potentially] block to wait for one or more bits to be set within a
|
* [Potentially] block to wait for one or more bits to be set within a
|
||||||
* previously created event group.
|
* previously created event group.
|
||||||
@ -295,7 +275,6 @@ typedef TickType_t EventBits_t;
|
|||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xEventGroupWaitBits xEventGroupWaitBits
|
|
||||||
* \ingroup EventGroup
|
* \ingroup EventGroup
|
||||||
*/
|
*/
|
||||||
EventBits_t xEventGroupWaitBits( EventGroupHandle_t xEventGroup,
|
EventBits_t xEventGroupWaitBits( EventGroupHandle_t xEventGroup,
|
||||||
@ -305,10 +284,6 @@ EventBits_t xEventGroupWaitBits( EventGroupHandle_t xEventGroup,
|
|||||||
TickType_t xTicksToWait ) PRIVILEGED_FUNCTION;
|
TickType_t xTicksToWait ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* event_groups.h
|
|
||||||
* @code{c}
|
|
||||||
* EventBits_t xEventGroupClearBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToClear );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Clear bits within an event group. This function cannot be called from an
|
* Clear bits within an event group. This function cannot be called from an
|
||||||
* interrupt.
|
* interrupt.
|
||||||
@ -356,17 +331,12 @@ EventBits_t xEventGroupWaitBits( EventGroupHandle_t xEventGroup,
|
|||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xEventGroupClearBits xEventGroupClearBits
|
|
||||||
* \ingroup EventGroup
|
* \ingroup EventGroup
|
||||||
*/
|
*/
|
||||||
EventBits_t xEventGroupClearBits( EventGroupHandle_t xEventGroup,
|
EventBits_t xEventGroupClearBits( EventGroupHandle_t xEventGroup,
|
||||||
const EventBits_t uxBitsToClear ) PRIVILEGED_FUNCTION;
|
const EventBits_t uxBitsToClear ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* event_groups.h
|
|
||||||
* @code{c}
|
|
||||||
* BaseType_t xEventGroupClearBitsFromISR( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* A version of xEventGroupClearBits() that can be called from an interrupt.
|
* A version of xEventGroupClearBits() that can be called from an interrupt.
|
||||||
*
|
*
|
||||||
@ -419,7 +389,6 @@ EventBits_t xEventGroupClearBits( EventGroupHandle_t xEventGroup,
|
|||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xEventGroupClearBitsFromISR xEventGroupClearBitsFromISR
|
|
||||||
* \ingroup EventGroup
|
* \ingroup EventGroup
|
||||||
*/
|
*/
|
||||||
#if ( configUSE_TRACE_FACILITY == 1 )
|
#if ( configUSE_TRACE_FACILITY == 1 )
|
||||||
@ -431,10 +400,6 @@ EventBits_t xEventGroupClearBits( EventGroupHandle_t xEventGroup,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* event_groups.h
|
|
||||||
* @code{c}
|
|
||||||
* EventBits_t xEventGroupSetBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Set bits within an event group.
|
* Set bits within an event group.
|
||||||
* This function cannot be called from an interrupt. xEventGroupSetBitsFromISR()
|
* This function cannot be called from an interrupt. xEventGroupSetBitsFromISR()
|
||||||
@ -499,17 +464,12 @@ EventBits_t xEventGroupClearBits( EventGroupHandle_t xEventGroup,
|
|||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xEventGroupSetBits xEventGroupSetBits
|
|
||||||
* \ingroup EventGroup
|
* \ingroup EventGroup
|
||||||
*/
|
*/
|
||||||
EventBits_t xEventGroupSetBits( EventGroupHandle_t xEventGroup,
|
EventBits_t xEventGroupSetBits( EventGroupHandle_t xEventGroup,
|
||||||
const EventBits_t uxBitsToSet ) PRIVILEGED_FUNCTION;
|
const EventBits_t uxBitsToSet ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* event_groups.h
|
|
||||||
* @code{c}
|
|
||||||
* BaseType_t xEventGroupSetBitsFromISR( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet, BaseType_t *pxHigherPriorityTaskWoken );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* A version of xEventGroupSetBits() that can be called from an interrupt.
|
* A version of xEventGroupSetBits() that can be called from an interrupt.
|
||||||
*
|
*
|
||||||
@ -574,7 +534,6 @@ EventBits_t xEventGroupSetBits( EventGroupHandle_t xEventGroup,
|
|||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xEventGroupSetBitsFromISR xEventGroupSetBitsFromISR
|
|
||||||
* \ingroup EventGroup
|
* \ingroup EventGroup
|
||||||
*/
|
*/
|
||||||
#if ( configUSE_TRACE_FACILITY == 1 )
|
#if ( configUSE_TRACE_FACILITY == 1 )
|
||||||
@ -587,13 +546,6 @@ EventBits_t xEventGroupSetBits( EventGroupHandle_t xEventGroup,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* event_groups.h
|
|
||||||
* @code{c}
|
|
||||||
* EventBits_t xEventGroupSync( EventGroupHandle_t xEventGroup,
|
|
||||||
* const EventBits_t uxBitsToSet,
|
|
||||||
* const EventBits_t uxBitsToWaitFor,
|
|
||||||
* TickType_t xTicksToWait );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Atomically set bits within an event group, then wait for a combination of
|
* Atomically set bits within an event group, then wait for a combination of
|
||||||
* bits to be set within the same event group. This functionality is typically
|
* bits to be set within the same event group. This functionality is typically
|
||||||
@ -707,7 +659,6 @@ EventBits_t xEventGroupSetBits( EventGroupHandle_t xEventGroup,
|
|||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xEventGroupSync xEventGroupSync
|
|
||||||
* \ingroup EventGroup
|
* \ingroup EventGroup
|
||||||
*/
|
*/
|
||||||
EventBits_t xEventGroupSync( EventGroupHandle_t xEventGroup,
|
EventBits_t xEventGroupSync( EventGroupHandle_t xEventGroup,
|
||||||
@ -717,10 +668,6 @@ EventBits_t xEventGroupSync( EventGroupHandle_t xEventGroup,
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* event_groups.h
|
|
||||||
* @code{c}
|
|
||||||
* EventBits_t xEventGroupGetBits( EventGroupHandle_t xEventGroup );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Returns the current value of the bits in an event group. This function
|
* Returns the current value of the bits in an event group. This function
|
||||||
* cannot be used from an interrupt.
|
* cannot be used from an interrupt.
|
||||||
@ -729,16 +676,11 @@ EventBits_t xEventGroupSync( EventGroupHandle_t xEventGroup,
|
|||||||
*
|
*
|
||||||
* @return The event group bits at the time xEventGroupGetBits() was called.
|
* @return The event group bits at the time xEventGroupGetBits() was called.
|
||||||
*
|
*
|
||||||
* \defgroup xEventGroupGetBits xEventGroupGetBits
|
|
||||||
* \ingroup EventGroup
|
* \ingroup EventGroup
|
||||||
*/
|
*/
|
||||||
#define xEventGroupGetBits( xEventGroup ) xEventGroupClearBits( ( xEventGroup ), 0 )
|
#define xEventGroupGetBits( xEventGroup ) xEventGroupClearBits( ( xEventGroup ), 0 )
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* event_groups.h
|
|
||||||
* @code{c}
|
|
||||||
* EventBits_t xEventGroupGetBitsFromISR( EventGroupHandle_t xEventGroup );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* A version of xEventGroupGetBits() that can be called from an ISR.
|
* A version of xEventGroupGetBits() that can be called from an ISR.
|
||||||
*
|
*
|
||||||
@ -746,16 +688,11 @@ EventBits_t xEventGroupSync( EventGroupHandle_t xEventGroup,
|
|||||||
*
|
*
|
||||||
* @return The event group bits at the time xEventGroupGetBitsFromISR() was called.
|
* @return The event group bits at the time xEventGroupGetBitsFromISR() was called.
|
||||||
*
|
*
|
||||||
* \defgroup xEventGroupGetBitsFromISR xEventGroupGetBitsFromISR
|
|
||||||
* \ingroup EventGroup
|
* \ingroup EventGroup
|
||||||
*/
|
*/
|
||||||
EventBits_t xEventGroupGetBitsFromISR( EventGroupHandle_t xEventGroup ) PRIVILEGED_FUNCTION;
|
EventBits_t xEventGroupGetBitsFromISR( EventGroupHandle_t xEventGroup ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* event_groups.h
|
|
||||||
* @code{c}
|
|
||||||
* void xEventGroupDelete( EventGroupHandle_t xEventGroup );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Delete an event group that was previously created by a call to
|
* Delete an event group that was previously created by a call to
|
||||||
* xEventGroupCreate(). Tasks that are blocked on the event group will be
|
* xEventGroupCreate(). Tasks that are blocked on the event group will be
|
||||||
@ -766,11 +703,6 @@ EventBits_t xEventGroupGetBitsFromISR( EventGroupHandle_t xEventGroup ) PRIVILEG
|
|||||||
void vEventGroupDelete( EventGroupHandle_t xEventGroup ) PRIVILEGED_FUNCTION;
|
void vEventGroupDelete( EventGroupHandle_t xEventGroup ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* event_groups.h
|
|
||||||
* @code{c}
|
|
||||||
* BaseType_t xEventGroupGetStaticBuffer( EventGroupHandle_t xEventGroup,
|
|
||||||
* StaticEventGroup_t ** ppxEventGroupBuffer );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Retrieve a pointer to a statically created event groups's data structure
|
* Retrieve a pointer to a statically created event groups's data structure
|
||||||
* buffer. It is the same buffer that is supplied at the time of creation.
|
* buffer. It is the same buffer that is supplied at the time of creation.
|
||||||
@ -787,6 +719,8 @@ void vEventGroupDelete( EventGroupHandle_t xEventGroup ) PRIVILEGED_FUNCTION;
|
|||||||
StaticEventGroup_t ** ppxEventGroupBuffer ) PRIVILEGED_FUNCTION;
|
StaticEventGroup_t ** ppxEventGroupBuffer ) PRIVILEGED_FUNCTION;
|
||||||
#endif /* configSUPPORT_STATIC_ALLOCATION */
|
#endif /* configSUPPORT_STATIC_ALLOCATION */
|
||||||
|
|
||||||
|
/** @cond !DOC_EXCLUDE_HEADER_SECTION */
|
||||||
|
|
||||||
/* For internal use only. */
|
/* For internal use only. */
|
||||||
void vEventGroupSetBitsCallback( void * pvEventGroup,
|
void vEventGroupSetBitsCallback( void * pvEventGroup,
|
||||||
const uint32_t ulBitsToSet ) PRIVILEGED_FUNCTION;
|
const uint32_t ulBitsToSet ) PRIVILEGED_FUNCTION;
|
||||||
@ -800,6 +734,8 @@ void vEventGroupClearBitsCallback( void * pvEventGroup,
|
|||||||
UBaseType_t uxEventGroupNumber ) PRIVILEGED_FUNCTION;
|
UBaseType_t uxEventGroupNumber ) PRIVILEGED_FUNCTION;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/** @endcond */
|
||||||
|
|
||||||
/* *INDENT-OFF* */
|
/* *INDENT-OFF* */
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
@ -92,11 +92,6 @@ typedef StreamBufferHandle_t MessageBufferHandle_t;
|
|||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* message_buffer.h
|
|
||||||
*
|
|
||||||
* @code{c}
|
|
||||||
* MessageBufferHandle_t xMessageBufferCreate( size_t xBufferSizeBytes );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Creates a new message buffer using dynamically allocated memory. See
|
* Creates a new message buffer using dynamically allocated memory. See
|
||||||
* xMessageBufferCreateStatic() for a version that uses statically allocated
|
* xMessageBufferCreateStatic() for a version that uses statically allocated
|
||||||
@ -156,25 +151,18 @@ typedef StreamBufferHandle_t MessageBufferHandle_t;
|
|||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xMessageBufferCreate xMessageBufferCreate
|
|
||||||
* \ingroup MessageBufferManagement
|
* \ingroup MessageBufferManagement
|
||||||
*/
|
*/
|
||||||
|
/** @cond !DOC_EXCLUDE_HEADER_SECTION */
|
||||||
#define xMessageBufferCreate( xBufferSizeBytes ) \
|
#define xMessageBufferCreate( xBufferSizeBytes ) \
|
||||||
xStreamBufferGenericCreate( ( xBufferSizeBytes ), ( size_t ) 0, pdTRUE, NULL, NULL )
|
xStreamBufferGenericCreate( ( xBufferSizeBytes ), ( size_t ) 0, pdTRUE, NULL, NULL )
|
||||||
|
/** @endcond */
|
||||||
#if ( configUSE_SB_COMPLETED_CALLBACK == 1 )
|
#if ( configUSE_SB_COMPLETED_CALLBACK == 1 )
|
||||||
#define xMessageBufferCreateWithCallback( xBufferSizeBytes, pxSendCompletedCallback, pxReceiveCompletedCallback ) \
|
#define xMessageBufferCreateWithCallback( xBufferSizeBytes, pxSendCompletedCallback, pxReceiveCompletedCallback ) \
|
||||||
xStreamBufferGenericCreate( ( xBufferSizeBytes ), ( size_t ) 0, pdTRUE, ( pxSendCompletedCallback ), ( pxReceiveCompletedCallback ) )
|
xStreamBufferGenericCreate( ( xBufferSizeBytes ), ( size_t ) 0, pdTRUE, ( pxSendCompletedCallback ), ( pxReceiveCompletedCallback ) )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* message_buffer.h
|
|
||||||
*
|
|
||||||
* @code{c}
|
|
||||||
* MessageBufferHandle_t xMessageBufferCreateStatic( size_t xBufferSizeBytes,
|
|
||||||
* uint8_t *pucMessageBufferStorageArea,
|
|
||||||
* StaticMessageBuffer_t *pxStaticMessageBuffer );
|
|
||||||
* @endcode
|
|
||||||
* Creates a new message buffer using statically allocated memory. See
|
* Creates a new message buffer using statically allocated memory. See
|
||||||
* xMessageBufferCreate() for a version that uses dynamically allocated memory.
|
* xMessageBufferCreate() for a version that uses dynamically allocated memory.
|
||||||
*
|
*
|
||||||
@ -213,7 +201,7 @@ typedef StreamBufferHandle_t MessageBufferHandle_t;
|
|||||||
*
|
*
|
||||||
* // Used to dimension the array used to hold the messages. The available space
|
* // Used to dimension the array used to hold the messages. The available space
|
||||||
* // will actually be one less than this, so 999.
|
* // will actually be one less than this, so 999.
|
||||||
#define STORAGE_SIZE_BYTES 1000
|
* #define STORAGE_SIZE_BYTES 1000
|
||||||
*
|
*
|
||||||
* // Defines the memory that will actually hold the messages within the message
|
* // Defines the memory that will actually hold the messages within the message
|
||||||
* // buffer.
|
* // buffer.
|
||||||
@ -238,25 +226,18 @@ typedef StreamBufferHandle_t MessageBufferHandle_t;
|
|||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xMessageBufferCreateStatic xMessageBufferCreateStatic
|
|
||||||
* \ingroup MessageBufferManagement
|
* \ingroup MessageBufferManagement
|
||||||
*/
|
*/
|
||||||
|
/** @cond !DOC_EXCLUDE_HEADER_SECTION */
|
||||||
#define xMessageBufferCreateStatic( xBufferSizeBytes, pucMessageBufferStorageArea, pxStaticMessageBuffer ) \
|
#define xMessageBufferCreateStatic( xBufferSizeBytes, pucMessageBufferStorageArea, pxStaticMessageBuffer ) \
|
||||||
xStreamBufferGenericCreateStatic( ( xBufferSizeBytes ), 0, pdTRUE, ( pucMessageBufferStorageArea ), ( pxStaticMessageBuffer ), NULL, NULL )
|
xStreamBufferGenericCreateStatic( ( xBufferSizeBytes ), 0, pdTRUE, ( pucMessageBufferStorageArea ), ( pxStaticMessageBuffer ), NULL, NULL )
|
||||||
|
/** @endcond */
|
||||||
#if ( configUSE_SB_COMPLETED_CALLBACK == 1 )
|
#if ( configUSE_SB_COMPLETED_CALLBACK == 1 )
|
||||||
#define xMessageBufferCreateStaticWithCallback( xBufferSizeBytes, pucMessageBufferStorageArea, pxStaticMessageBuffer, pxSendCompletedCallback, pxReceiveCompletedCallback ) \
|
#define xMessageBufferCreateStaticWithCallback( xBufferSizeBytes, pucMessageBufferStorageArea, pxStaticMessageBuffer, pxSendCompletedCallback, pxReceiveCompletedCallback ) \
|
||||||
xStreamBufferGenericCreateStatic( ( xBufferSizeBytes ), 0, pdTRUE, ( pucMessageBufferStorageArea ), ( pxStaticMessageBuffer ), ( pxSendCompletedCallback ), ( pxReceiveCompletedCallback ) )
|
xStreamBufferGenericCreateStatic( ( xBufferSizeBytes ), 0, pdTRUE, ( pucMessageBufferStorageArea ), ( pxStaticMessageBuffer ), ( pxSendCompletedCallback ), ( pxReceiveCompletedCallback ) )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* message_buffer.h
|
|
||||||
*
|
|
||||||
* @code{c}
|
|
||||||
* BaseType_t xMessageBufferGetStaticBuffers( MessageBufferHandle_t xMessageBuffer,
|
|
||||||
* uint8_t ** ppucMessageBufferStorageArea,
|
|
||||||
* StaticMessageBuffer_t ** ppxStaticMessageBuffer );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Retrieve pointers to a statically created message buffer's data structure
|
* Retrieve pointers to a statically created message buffer's data structure
|
||||||
* buffer and storage area buffer. These are the same buffers that are supplied
|
* buffer and storage area buffer. These are the same buffers that are supplied
|
||||||
@ -272,7 +253,6 @@ typedef StreamBufferHandle_t MessageBufferHandle_t;
|
|||||||
*
|
*
|
||||||
* @return pdTRUE if buffers were retrieved, pdFALSE otherwise.
|
* @return pdTRUE if buffers were retrieved, pdFALSE otherwise.
|
||||||
*
|
*
|
||||||
* \defgroup xMessageBufferGetStaticBuffers xMessageBufferGetStaticBuffers
|
|
||||||
* \ingroup MessageBufferManagement
|
* \ingroup MessageBufferManagement
|
||||||
*/
|
*/
|
||||||
#if ( configSUPPORT_STATIC_ALLOCATION == 1 )
|
#if ( configSUPPORT_STATIC_ALLOCATION == 1 )
|
||||||
@ -281,14 +261,6 @@ typedef StreamBufferHandle_t MessageBufferHandle_t;
|
|||||||
#endif /* configSUPPORT_STATIC_ALLOCATION */
|
#endif /* configSUPPORT_STATIC_ALLOCATION */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* message_buffer.h
|
|
||||||
*
|
|
||||||
* @code{c}
|
|
||||||
* size_t xMessageBufferSend( MessageBufferHandle_t xMessageBuffer,
|
|
||||||
* const void *pvTxData,
|
|
||||||
* size_t xDataLengthBytes,
|
|
||||||
* TickType_t xTicksToWait );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Sends a discrete message to the message buffer. The message can be any
|
* Sends a discrete message to the message buffer. The message can be any
|
||||||
* length that fits within the buffer's free space, and is copied into the
|
* length that fits within the buffer's free space, and is copied into the
|
||||||
@ -374,21 +346,12 @@ typedef StreamBufferHandle_t MessageBufferHandle_t;
|
|||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xMessageBufferSend xMessageBufferSend
|
|
||||||
* \ingroup MessageBufferManagement
|
* \ingroup MessageBufferManagement
|
||||||
*/
|
*/
|
||||||
#define xMessageBufferSend( xMessageBuffer, pvTxData, xDataLengthBytes, xTicksToWait ) \
|
#define xMessageBufferSend( xMessageBuffer, pvTxData, xDataLengthBytes, xTicksToWait ) \
|
||||||
xStreamBufferSend( ( xMessageBuffer ), ( pvTxData ), ( xDataLengthBytes ), ( xTicksToWait ) )
|
xStreamBufferSend( ( xMessageBuffer ), ( pvTxData ), ( xDataLengthBytes ), ( xTicksToWait ) )
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* message_buffer.h
|
|
||||||
*
|
|
||||||
* @code{c}
|
|
||||||
* size_t xMessageBufferSendFromISR( MessageBufferHandle_t xMessageBuffer,
|
|
||||||
* const void *pvTxData,
|
|
||||||
* size_t xDataLengthBytes,
|
|
||||||
* BaseType_t *pxHigherPriorityTaskWoken );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Interrupt safe version of the API function that sends a discrete message to
|
* Interrupt safe version of the API function that sends a discrete message to
|
||||||
* the message buffer. The message can be any length that fits within the
|
* the message buffer. The message can be any length that fits within the
|
||||||
@ -479,21 +442,12 @@ typedef StreamBufferHandle_t MessageBufferHandle_t;
|
|||||||
* portYIELD_FROM_ISR( xHigherPriorityTaskWoken );
|
* portYIELD_FROM_ISR( xHigherPriorityTaskWoken );
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xMessageBufferSendFromISR xMessageBufferSendFromISR
|
|
||||||
* \ingroup MessageBufferManagement
|
* \ingroup MessageBufferManagement
|
||||||
*/
|
*/
|
||||||
#define xMessageBufferSendFromISR( xMessageBuffer, pvTxData, xDataLengthBytes, pxHigherPriorityTaskWoken ) \
|
#define xMessageBufferSendFromISR( xMessageBuffer, pvTxData, xDataLengthBytes, pxHigherPriorityTaskWoken ) \
|
||||||
xStreamBufferSendFromISR( ( xMessageBuffer ), ( pvTxData ), ( xDataLengthBytes ), ( pxHigherPriorityTaskWoken ) )
|
xStreamBufferSendFromISR( ( xMessageBuffer ), ( pvTxData ), ( xDataLengthBytes ), ( pxHigherPriorityTaskWoken ) )
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* message_buffer.h
|
|
||||||
*
|
|
||||||
* @code{c}
|
|
||||||
* size_t xMessageBufferReceive( MessageBufferHandle_t xMessageBuffer,
|
|
||||||
* void *pvRxData,
|
|
||||||
* size_t xBufferLengthBytes,
|
|
||||||
* TickType_t xTicksToWait );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Receives a discrete message from a message buffer. Messages can be of
|
* Receives a discrete message from a message buffer. Messages can be of
|
||||||
* variable length and are copied out of the buffer.
|
* variable length and are copied out of the buffer.
|
||||||
@ -568,7 +522,6 @@ typedef StreamBufferHandle_t MessageBufferHandle_t;
|
|||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xMessageBufferReceive xMessageBufferReceive
|
|
||||||
* \ingroup MessageBufferManagement
|
* \ingroup MessageBufferManagement
|
||||||
*/
|
*/
|
||||||
#define xMessageBufferReceive( xMessageBuffer, pvRxData, xBufferLengthBytes, xTicksToWait ) \
|
#define xMessageBufferReceive( xMessageBuffer, pvRxData, xBufferLengthBytes, xTicksToWait ) \
|
||||||
@ -576,14 +529,6 @@ typedef StreamBufferHandle_t MessageBufferHandle_t;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* message_buffer.h
|
|
||||||
*
|
|
||||||
* @code{c}
|
|
||||||
* size_t xMessageBufferReceiveFromISR( MessageBufferHandle_t xMessageBuffer,
|
|
||||||
* void *pvRxData,
|
|
||||||
* size_t xBufferLengthBytes,
|
|
||||||
* BaseType_t *pxHigherPriorityTaskWoken );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* An interrupt safe version of the API function that receives a discrete
|
* An interrupt safe version of the API function that receives a discrete
|
||||||
* message from a message buffer. Messages can be of variable length and are
|
* message from a message buffer. Messages can be of variable length and are
|
||||||
@ -670,18 +615,12 @@ typedef StreamBufferHandle_t MessageBufferHandle_t;
|
|||||||
* portYIELD_FROM_ISR( xHigherPriorityTaskWoken );
|
* portYIELD_FROM_ISR( xHigherPriorityTaskWoken );
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xMessageBufferReceiveFromISR xMessageBufferReceiveFromISR
|
|
||||||
* \ingroup MessageBufferManagement
|
* \ingroup MessageBufferManagement
|
||||||
*/
|
*/
|
||||||
#define xMessageBufferReceiveFromISR( xMessageBuffer, pvRxData, xBufferLengthBytes, pxHigherPriorityTaskWoken ) \
|
#define xMessageBufferReceiveFromISR( xMessageBuffer, pvRxData, xBufferLengthBytes, pxHigherPriorityTaskWoken ) \
|
||||||
xStreamBufferReceiveFromISR( ( xMessageBuffer ), ( pvRxData ), ( xBufferLengthBytes ), ( pxHigherPriorityTaskWoken ) )
|
xStreamBufferReceiveFromISR( ( xMessageBuffer ), ( pvRxData ), ( xBufferLengthBytes ), ( pxHigherPriorityTaskWoken ) )
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* message_buffer.h
|
|
||||||
*
|
|
||||||
* @code{c}
|
|
||||||
* void vMessageBufferDelete( MessageBufferHandle_t xMessageBuffer );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Deletes a message buffer that was previously created using a call to
|
* Deletes a message buffer that was previously created using a call to
|
||||||
* xMessageBufferCreate() or xMessageBufferCreateStatic(). If the message
|
* xMessageBufferCreate() or xMessageBufferCreateStatic(). If the message
|
||||||
@ -698,10 +637,6 @@ typedef StreamBufferHandle_t MessageBufferHandle_t;
|
|||||||
vStreamBufferDelete( xMessageBuffer )
|
vStreamBufferDelete( xMessageBuffer )
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* message_buffer.h
|
|
||||||
* @code{c}
|
|
||||||
* BaseType_t xMessageBufferIsFull( MessageBufferHandle_t xMessageBuffer );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Tests to see if a message buffer is full. A message buffer is full if it
|
* Tests to see if a message buffer is full. A message buffer is full if it
|
||||||
* cannot accept any more messages, of any size, until space is made available
|
* cannot accept any more messages, of any size, until space is made available
|
||||||
@ -716,10 +651,6 @@ typedef StreamBufferHandle_t MessageBufferHandle_t;
|
|||||||
xStreamBufferIsFull( xMessageBuffer )
|
xStreamBufferIsFull( xMessageBuffer )
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* message_buffer.h
|
|
||||||
* @code{c}
|
|
||||||
* BaseType_t xMessageBufferIsEmpty( MessageBufferHandle_t xMessageBuffer );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Tests to see if a message buffer is empty (does not contain any messages).
|
* Tests to see if a message buffer is empty (does not contain any messages).
|
||||||
*
|
*
|
||||||
@ -733,10 +664,6 @@ typedef StreamBufferHandle_t MessageBufferHandle_t;
|
|||||||
xStreamBufferIsEmpty( xMessageBuffer )
|
xStreamBufferIsEmpty( xMessageBuffer )
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* message_buffer.h
|
|
||||||
* @code{c}
|
|
||||||
* BaseType_t xMessageBufferReset( MessageBufferHandle_t xMessageBuffer );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Resets a message buffer to its initial empty state, discarding any message it
|
* Resets a message buffer to its initial empty state, discarding any message it
|
||||||
* contained.
|
* contained.
|
||||||
@ -750,7 +677,6 @@ typedef StreamBufferHandle_t MessageBufferHandle_t;
|
|||||||
* the message queue to wait for space to become available, or to wait for a
|
* the message queue to wait for space to become available, or to wait for a
|
||||||
* a message to be available, then pdFAIL is returned.
|
* a message to be available, then pdFAIL is returned.
|
||||||
*
|
*
|
||||||
* \defgroup xMessageBufferReset xMessageBufferReset
|
|
||||||
* \ingroup MessageBufferManagement
|
* \ingroup MessageBufferManagement
|
||||||
*/
|
*/
|
||||||
#define xMessageBufferReset( xMessageBuffer ) \
|
#define xMessageBufferReset( xMessageBuffer ) \
|
||||||
@ -773,7 +699,6 @@ typedef StreamBufferHandle_t MessageBufferHandle_t;
|
|||||||
* architecture, so if xMessageBufferSpacesAvailable() returns 10, then the size
|
* architecture, so if xMessageBufferSpacesAvailable() returns 10, then the size
|
||||||
* of the largest message that can be written to the message buffer is 6 bytes.
|
* of the largest message that can be written to the message buffer is 6 bytes.
|
||||||
*
|
*
|
||||||
* \defgroup xMessageBufferSpaceAvailable xMessageBufferSpaceAvailable
|
|
||||||
* \ingroup MessageBufferManagement
|
* \ingroup MessageBufferManagement
|
||||||
*/
|
*/
|
||||||
#define xMessageBufferSpaceAvailable( xMessageBuffer ) \
|
#define xMessageBufferSpaceAvailable( xMessageBuffer ) \
|
||||||
@ -782,10 +707,6 @@ typedef StreamBufferHandle_t MessageBufferHandle_t;
|
|||||||
xStreamBufferSpacesAvailable( xMessageBuffer ) /* Corrects typo in original macro name. */
|
xStreamBufferSpacesAvailable( xMessageBuffer ) /* Corrects typo in original macro name. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* message_buffer.h
|
|
||||||
* @code{c}
|
|
||||||
* size_t xMessageBufferNextLengthBytes( MessageBufferHandle_t xMessageBuffer );
|
|
||||||
* @endcode
|
|
||||||
* Returns the length (in bytes) of the next message in a message buffer.
|
* Returns the length (in bytes) of the next message in a message buffer.
|
||||||
* Useful if xMessageBufferReceive() returned 0 because the size of the buffer
|
* Useful if xMessageBufferReceive() returned 0 because the size of the buffer
|
||||||
* passed into xMessageBufferReceive() was too small to hold the next message.
|
* passed into xMessageBufferReceive() was too small to hold the next message.
|
||||||
@ -795,18 +716,12 @@ typedef StreamBufferHandle_t MessageBufferHandle_t;
|
|||||||
* @return The length (in bytes) of the next message in the message buffer, or 0
|
* @return The length (in bytes) of the next message in the message buffer, or 0
|
||||||
* if the message buffer is empty.
|
* if the message buffer is empty.
|
||||||
*
|
*
|
||||||
* \defgroup xMessageBufferNextLengthBytes xMessageBufferNextLengthBytes
|
|
||||||
* \ingroup MessageBufferManagement
|
* \ingroup MessageBufferManagement
|
||||||
*/
|
*/
|
||||||
#define xMessageBufferNextLengthBytes( xMessageBuffer ) \
|
#define xMessageBufferNextLengthBytes( xMessageBuffer ) \
|
||||||
xStreamBufferNextMessageLengthBytes( xMessageBuffer ) PRIVILEGED_FUNCTION;
|
xStreamBufferNextMessageLengthBytes( xMessageBuffer ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* message_buffer.h
|
|
||||||
*
|
|
||||||
* @code{c}
|
|
||||||
* BaseType_t xMessageBufferSendCompletedFromISR( MessageBufferHandle_t xMessageBuffer, BaseType_t *pxHigherPriorityTaskWoken );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* For advanced users only.
|
* For advanced users only.
|
||||||
*
|
*
|
||||||
@ -835,18 +750,12 @@ typedef StreamBufferHandle_t MessageBufferHandle_t;
|
|||||||
* @return If a task was removed from the Blocked state then pdTRUE is returned.
|
* @return If a task was removed from the Blocked state then pdTRUE is returned.
|
||||||
* Otherwise pdFALSE is returned.
|
* Otherwise pdFALSE is returned.
|
||||||
*
|
*
|
||||||
* \defgroup xMessageBufferSendCompletedFromISR xMessageBufferSendCompletedFromISR
|
|
||||||
* \ingroup StreamBufferManagement
|
* \ingroup StreamBufferManagement
|
||||||
*/
|
*/
|
||||||
#define xMessageBufferSendCompletedFromISR( xMessageBuffer, pxHigherPriorityTaskWoken ) \
|
#define xMessageBufferSendCompletedFromISR( xMessageBuffer, pxHigherPriorityTaskWoken ) \
|
||||||
xStreamBufferSendCompletedFromISR( ( xMessageBuffer ), ( pxHigherPriorityTaskWoken ) )
|
xStreamBufferSendCompletedFromISR( ( xMessageBuffer ), ( pxHigherPriorityTaskWoken ) )
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* message_buffer.h
|
|
||||||
*
|
|
||||||
* @code{c}
|
|
||||||
* BaseType_t xMessageBufferReceiveCompletedFromISR( MessageBufferHandle_t xMessageBuffer, BaseType_t *pxHigherPriorityTaskWoken );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* For advanced users only.
|
* For advanced users only.
|
||||||
*
|
*
|
||||||
@ -876,7 +785,6 @@ typedef StreamBufferHandle_t MessageBufferHandle_t;
|
|||||||
* @return If a task was removed from the Blocked state then pdTRUE is returned.
|
* @return If a task was removed from the Blocked state then pdTRUE is returned.
|
||||||
* Otherwise pdFALSE is returned.
|
* Otherwise pdFALSE is returned.
|
||||||
*
|
*
|
||||||
* \defgroup xMessageBufferReceiveCompletedFromISR xMessageBufferReceiveCompletedFromISR
|
|
||||||
* \ingroup StreamBufferManagement
|
* \ingroup StreamBufferManagement
|
||||||
*/
|
*/
|
||||||
#define xMessageBufferReceiveCompletedFromISR( xMessageBuffer, pxHigherPriorityTaskWoken ) \
|
#define xMessageBufferReceiveCompletedFromISR( xMessageBuffer, pxHigherPriorityTaskWoken ) \
|
||||||
|
@ -68,6 +68,8 @@ typedef struct QueueDefinition * QueueSetHandle_t;
|
|||||||
*/
|
*/
|
||||||
typedef struct QueueDefinition * QueueSetMemberHandle_t;
|
typedef struct QueueDefinition * QueueSetMemberHandle_t;
|
||||||
|
|
||||||
|
/** @cond !DOC_EXCLUDE_HEADER_SECTION */
|
||||||
|
|
||||||
/* For internal use only. */
|
/* For internal use only. */
|
||||||
#define queueSEND_TO_BACK ( ( BaseType_t ) 0 )
|
#define queueSEND_TO_BACK ( ( BaseType_t ) 0 )
|
||||||
#define queueSEND_TO_FRONT ( ( BaseType_t ) 1 )
|
#define queueSEND_TO_FRONT ( ( BaseType_t ) 1 )
|
||||||
@ -81,14 +83,9 @@ typedef struct QueueDefinition * QueueSetMemberHandle_t;
|
|||||||
#define queueQUEUE_TYPE_BINARY_SEMAPHORE ( ( uint8_t ) 3U )
|
#define queueQUEUE_TYPE_BINARY_SEMAPHORE ( ( uint8_t ) 3U )
|
||||||
#define queueQUEUE_TYPE_RECURSIVE_MUTEX ( ( uint8_t ) 4U )
|
#define queueQUEUE_TYPE_RECURSIVE_MUTEX ( ( uint8_t ) 4U )
|
||||||
|
|
||||||
|
/** @endcond */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* queue. h
|
|
||||||
* @code{c}
|
|
||||||
* QueueHandle_t xQueueCreate(
|
|
||||||
* UBaseType_t uxQueueLength,
|
|
||||||
* UBaseType_t uxItemSize
|
|
||||||
* );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Creates a new queue instance, and returns a handle by which the new queue
|
* Creates a new queue instance, and returns a handle by which the new queue
|
||||||
* can be referenced.
|
* can be referenced.
|
||||||
@ -146,7 +143,6 @@ typedef struct QueueDefinition * QueueSetMemberHandle_t;
|
|||||||
* // ... Rest of task code.
|
* // ... Rest of task code.
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xQueueCreate xQueueCreate
|
|
||||||
* \ingroup QueueManagement
|
* \ingroup QueueManagement
|
||||||
*/
|
*/
|
||||||
#if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
|
#if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
|
||||||
@ -154,15 +150,6 @@ typedef struct QueueDefinition * QueueSetMemberHandle_t;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* queue. h
|
|
||||||
* @code{c}
|
|
||||||
* QueueHandle_t xQueueCreateStatic(
|
|
||||||
* UBaseType_t uxQueueLength,
|
|
||||||
* UBaseType_t uxItemSize,
|
|
||||||
* uint8_t *pucQueueStorage,
|
|
||||||
* StaticQueue_t *pxQueueBuffer
|
|
||||||
* );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Creates a new queue instance, and returns a handle by which the new queue
|
* Creates a new queue instance, and returns a handle by which the new queue
|
||||||
* can be referenced.
|
* can be referenced.
|
||||||
@ -206,8 +193,8 @@ typedef struct QueueDefinition * QueueSetMemberHandle_t;
|
|||||||
* char ucData[ 20 ];
|
* char ucData[ 20 ];
|
||||||
* };
|
* };
|
||||||
*
|
*
|
||||||
#define QUEUE_LENGTH 10
|
* #define QUEUE_LENGTH 10
|
||||||
#define ITEM_SIZE sizeof( uint32_t )
|
* #define ITEM_SIZE sizeof( uint32_t )
|
||||||
*
|
*
|
||||||
* // xQueueBuffer will hold the queue structure.
|
* // xQueueBuffer will hold the queue structure.
|
||||||
* StaticQueue_t xQueueBuffer;
|
* StaticQueue_t xQueueBuffer;
|
||||||
@ -232,7 +219,6 @@ typedef struct QueueDefinition * QueueSetMemberHandle_t;
|
|||||||
* // ... Rest of task code.
|
* // ... Rest of task code.
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xQueueCreateStatic xQueueCreateStatic
|
|
||||||
* \ingroup QueueManagement
|
* \ingroup QueueManagement
|
||||||
*/
|
*/
|
||||||
#if ( configSUPPORT_STATIC_ALLOCATION == 1 )
|
#if ( configSUPPORT_STATIC_ALLOCATION == 1 )
|
||||||
@ -240,12 +226,6 @@ typedef struct QueueDefinition * QueueSetMemberHandle_t;
|
|||||||
#endif /* configSUPPORT_STATIC_ALLOCATION */
|
#endif /* configSUPPORT_STATIC_ALLOCATION */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* queue. h
|
|
||||||
* @code{c}
|
|
||||||
* BaseType_t xQueueGetStaticBuffers( QueueHandle_t xQueue,
|
|
||||||
* uint8_t ** ppucQueueStorage,
|
|
||||||
* StaticQueue_t ** ppxStaticQueue );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Retrieve pointers to a statically created queue's data structure buffer
|
* Retrieve pointers to a statically created queue's data structure buffer
|
||||||
* and storage area buffer. These are the same buffers that are supplied
|
* and storage area buffer. These are the same buffers that are supplied
|
||||||
@ -261,7 +241,6 @@ typedef struct QueueDefinition * QueueSetMemberHandle_t;
|
|||||||
*
|
*
|
||||||
* @return pdTRUE if buffers were retrieved, pdFALSE otherwise.
|
* @return pdTRUE if buffers were retrieved, pdFALSE otherwise.
|
||||||
*
|
*
|
||||||
* \defgroup xQueueGetStaticBuffers xQueueGetStaticBuffers
|
|
||||||
* \ingroup QueueManagement
|
* \ingroup QueueManagement
|
||||||
*/
|
*/
|
||||||
#if ( configSUPPORT_STATIC_ALLOCATION == 1 )
|
#if ( configSUPPORT_STATIC_ALLOCATION == 1 )
|
||||||
@ -269,14 +248,6 @@ typedef struct QueueDefinition * QueueSetMemberHandle_t;
|
|||||||
#endif /* configSUPPORT_STATIC_ALLOCATION */
|
#endif /* configSUPPORT_STATIC_ALLOCATION */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* queue. h
|
|
||||||
* @code{c}
|
|
||||||
* BaseType_t xQueueSendToToFront(
|
|
||||||
* QueueHandle_t xQueue,
|
|
||||||
* const void *pvItemToQueue,
|
|
||||||
* TickType_t xTicksToWait
|
|
||||||
* );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Post an item to the front of a queue. The item is queued by copy, not by
|
* Post an item to the front of a queue. The item is queued by copy, not by
|
||||||
* reference. This function must not be called from an interrupt service
|
* reference. This function must not be called from an interrupt service
|
||||||
@ -343,21 +314,12 @@ typedef struct QueueDefinition * QueueSetMemberHandle_t;
|
|||||||
* // ... Rest of task code.
|
* // ... Rest of task code.
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xQueueSend xQueueSend
|
|
||||||
* \ingroup QueueManagement
|
* \ingroup QueueManagement
|
||||||
*/
|
*/
|
||||||
#define xQueueSendToFront( xQueue, pvItemToQueue, xTicksToWait ) \
|
#define xQueueSendToFront( xQueue, pvItemToQueue, xTicksToWait ) \
|
||||||
xQueueGenericSend( ( xQueue ), ( pvItemToQueue ), ( xTicksToWait ), queueSEND_TO_FRONT )
|
xQueueGenericSend( ( xQueue ), ( pvItemToQueue ), ( xTicksToWait ), queueSEND_TO_FRONT )
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* queue. h
|
|
||||||
* @code{c}
|
|
||||||
* BaseType_t xQueueSendToBack(
|
|
||||||
* QueueHandle_t xQueue,
|
|
||||||
* const void *pvItemToQueue,
|
|
||||||
* TickType_t xTicksToWait
|
|
||||||
* );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* This is a macro that calls xQueueGenericSend().
|
* This is a macro that calls xQueueGenericSend().
|
||||||
*
|
*
|
||||||
@ -426,21 +388,12 @@ typedef struct QueueDefinition * QueueSetMemberHandle_t;
|
|||||||
* // ... Rest of task code.
|
* // ... Rest of task code.
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xQueueSend xQueueSend
|
|
||||||
* \ingroup QueueManagement
|
* \ingroup QueueManagement
|
||||||
*/
|
*/
|
||||||
#define xQueueSendToBack( xQueue, pvItemToQueue, xTicksToWait ) \
|
#define xQueueSendToBack( xQueue, pvItemToQueue, xTicksToWait ) \
|
||||||
xQueueGenericSend( ( xQueue ), ( pvItemToQueue ), ( xTicksToWait ), queueSEND_TO_BACK )
|
xQueueGenericSend( ( xQueue ), ( pvItemToQueue ), ( xTicksToWait ), queueSEND_TO_BACK )
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* queue. h
|
|
||||||
* @code{c}
|
|
||||||
* BaseType_t xQueueSend(
|
|
||||||
* QueueHandle_t xQueue,
|
|
||||||
* const void * pvItemToQueue,
|
|
||||||
* TickType_t xTicksToWait
|
|
||||||
* );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* This is a macro that calls xQueueGenericSend(). It is included for
|
* This is a macro that calls xQueueGenericSend(). It is included for
|
||||||
* backward compatibility with versions of FreeRTOS.org that did not
|
* backward compatibility with versions of FreeRTOS.org that did not
|
||||||
@ -511,20 +464,12 @@ typedef struct QueueDefinition * QueueSetMemberHandle_t;
|
|||||||
* // ... Rest of task code.
|
* // ... Rest of task code.
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xQueueSend xQueueSend
|
|
||||||
* \ingroup QueueManagement
|
* \ingroup QueueManagement
|
||||||
*/
|
*/
|
||||||
#define xQueueSend( xQueue, pvItemToQueue, xTicksToWait ) \
|
#define xQueueSend( xQueue, pvItemToQueue, xTicksToWait ) \
|
||||||
xQueueGenericSend( ( xQueue ), ( pvItemToQueue ), ( xTicksToWait ), queueSEND_TO_BACK )
|
xQueueGenericSend( ( xQueue ), ( pvItemToQueue ), ( xTicksToWait ), queueSEND_TO_BACK )
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* queue. h
|
|
||||||
* @code{c}
|
|
||||||
* BaseType_t xQueueOverwrite(
|
|
||||||
* QueueHandle_t xQueue,
|
|
||||||
* const void * pvItemToQueue
|
|
||||||
* );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Only for use with queues that have a length of one - so the queue is either
|
* Only for use with queues that have a length of one - so the queue is either
|
||||||
* empty or full.
|
* empty or full.
|
||||||
@ -595,7 +540,6 @@ typedef struct QueueDefinition * QueueSetMemberHandle_t;
|
|||||||
* // ...
|
* // ...
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xQueueOverwrite xQueueOverwrite
|
|
||||||
* \ingroup QueueManagement
|
* \ingroup QueueManagement
|
||||||
*/
|
*/
|
||||||
#define xQueueOverwrite( xQueue, pvItemToQueue ) \
|
#define xQueueOverwrite( xQueue, pvItemToQueue ) \
|
||||||
@ -603,15 +547,6 @@ typedef struct QueueDefinition * QueueSetMemberHandle_t;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* queue. h
|
|
||||||
* @code{c}
|
|
||||||
* BaseType_t xQueueGenericSend(
|
|
||||||
* QueueHandle_t xQueue,
|
|
||||||
* const void * pvItemToQueue,
|
|
||||||
* TickType_t xTicksToWait
|
|
||||||
* BaseType_t xCopyPosition
|
|
||||||
* );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* It is preferred that the macros xQueueSend(), xQueueSendToFront() and
|
* It is preferred that the macros xQueueSend(), xQueueSendToFront() and
|
||||||
* xQueueSendToBack() are used in place of calling this function directly.
|
* xQueueSendToBack() are used in place of calling this function directly.
|
||||||
@ -684,7 +619,6 @@ typedef struct QueueDefinition * QueueSetMemberHandle_t;
|
|||||||
* // ... Rest of task code.
|
* // ... Rest of task code.
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xQueueSend xQueueSend
|
|
||||||
* \ingroup QueueManagement
|
* \ingroup QueueManagement
|
||||||
*/
|
*/
|
||||||
BaseType_t xQueueGenericSend( QueueHandle_t xQueue,
|
BaseType_t xQueueGenericSend( QueueHandle_t xQueue,
|
||||||
@ -693,14 +627,6 @@ BaseType_t xQueueGenericSend( QueueHandle_t xQueue,
|
|||||||
const BaseType_t xCopyPosition ) PRIVILEGED_FUNCTION;
|
const BaseType_t xCopyPosition ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* queue. h
|
|
||||||
* @code{c}
|
|
||||||
* BaseType_t xQueuePeek(
|
|
||||||
* QueueHandle_t xQueue,
|
|
||||||
* void * const pvBuffer,
|
|
||||||
* TickType_t xTicksToWait
|
|
||||||
* );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Receive an item from a queue without removing the item from the queue.
|
* Receive an item from a queue without removing the item from the queue.
|
||||||
* The item is received by copy so a buffer of adequate size must be
|
* The item is received by copy so a buffer of adequate size must be
|
||||||
@ -782,7 +708,6 @@ BaseType_t xQueueGenericSend( QueueHandle_t xQueue,
|
|||||||
* // ... Rest of task code.
|
* // ... Rest of task code.
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xQueuePeek xQueuePeek
|
|
||||||
* \ingroup QueueManagement
|
* \ingroup QueueManagement
|
||||||
*/
|
*/
|
||||||
BaseType_t xQueuePeek( QueueHandle_t xQueue,
|
BaseType_t xQueuePeek( QueueHandle_t xQueue,
|
||||||
@ -790,13 +715,6 @@ BaseType_t xQueuePeek( QueueHandle_t xQueue,
|
|||||||
TickType_t xTicksToWait ) PRIVILEGED_FUNCTION;
|
TickType_t xTicksToWait ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* queue. h
|
|
||||||
* @code{c}
|
|
||||||
* BaseType_t xQueuePeekFromISR(
|
|
||||||
* QueueHandle_t xQueue,
|
|
||||||
* void *pvBuffer,
|
|
||||||
* );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* A version of xQueuePeek() that can be called from an interrupt service
|
* A version of xQueuePeek() that can be called from an interrupt service
|
||||||
* routine (ISR).
|
* routine (ISR).
|
||||||
@ -818,21 +736,12 @@ BaseType_t xQueuePeek( QueueHandle_t xQueue,
|
|||||||
* @return pdTRUE if an item was successfully received from the queue,
|
* @return pdTRUE if an item was successfully received from the queue,
|
||||||
* otherwise pdFALSE.
|
* otherwise pdFALSE.
|
||||||
*
|
*
|
||||||
* \defgroup xQueuePeekFromISR xQueuePeekFromISR
|
|
||||||
* \ingroup QueueManagement
|
* \ingroup QueueManagement
|
||||||
*/
|
*/
|
||||||
BaseType_t xQueuePeekFromISR( QueueHandle_t xQueue,
|
BaseType_t xQueuePeekFromISR( QueueHandle_t xQueue,
|
||||||
void * const pvBuffer ) PRIVILEGED_FUNCTION;
|
void * const pvBuffer ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* queue. h
|
|
||||||
* @code{c}
|
|
||||||
* BaseType_t xQueueReceive(
|
|
||||||
* QueueHandle_t xQueue,
|
|
||||||
* void *pvBuffer,
|
|
||||||
* TickType_t xTicksToWait
|
|
||||||
* );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Receive an item from a queue. The item is received by copy so a buffer of
|
* Receive an item from a queue. The item is received by copy so a buffer of
|
||||||
* adequate size must be provided. The number of bytes copied into the buffer
|
* adequate size must be provided. The number of bytes copied into the buffer
|
||||||
@ -911,7 +820,6 @@ BaseType_t xQueuePeekFromISR( QueueHandle_t xQueue,
|
|||||||
* // ... Rest of task code.
|
* // ... Rest of task code.
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xQueueReceive xQueueReceive
|
|
||||||
* \ingroup QueueManagement
|
* \ingroup QueueManagement
|
||||||
*/
|
*/
|
||||||
BaseType_t xQueueReceive( QueueHandle_t xQueue,
|
BaseType_t xQueueReceive( QueueHandle_t xQueue,
|
||||||
@ -919,10 +827,6 @@ BaseType_t xQueueReceive( QueueHandle_t xQueue,
|
|||||||
TickType_t xTicksToWait ) PRIVILEGED_FUNCTION;
|
TickType_t xTicksToWait ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* queue. h
|
|
||||||
* @code{c}
|
|
||||||
* UBaseType_t uxQueueMessagesWaiting( const QueueHandle_t xQueue );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Return the number of messages stored in a queue.
|
* Return the number of messages stored in a queue.
|
||||||
*
|
*
|
||||||
@ -930,16 +834,11 @@ BaseType_t xQueueReceive( QueueHandle_t xQueue,
|
|||||||
*
|
*
|
||||||
* @return The number of messages available in the queue.
|
* @return The number of messages available in the queue.
|
||||||
*
|
*
|
||||||
* \defgroup uxQueueMessagesWaiting uxQueueMessagesWaiting
|
|
||||||
* \ingroup QueueManagement
|
* \ingroup QueueManagement
|
||||||
*/
|
*/
|
||||||
UBaseType_t uxQueueMessagesWaiting( const QueueHandle_t xQueue ) PRIVILEGED_FUNCTION;
|
UBaseType_t uxQueueMessagesWaiting( const QueueHandle_t xQueue ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* queue. h
|
|
||||||
* @code{c}
|
|
||||||
* UBaseType_t uxQueueSpacesAvailable( const QueueHandle_t xQueue );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Return the number of free spaces available in a queue. This is equal to the
|
* Return the number of free spaces available in a queue. This is equal to the
|
||||||
* number of items that can be sent to the queue before the queue becomes full
|
* number of items that can be sent to the queue before the queue becomes full
|
||||||
@ -949,36 +848,22 @@ UBaseType_t uxQueueMessagesWaiting( const QueueHandle_t xQueue ) PRIVILEGED_FUNC
|
|||||||
*
|
*
|
||||||
* @return The number of spaces available in the queue.
|
* @return The number of spaces available in the queue.
|
||||||
*
|
*
|
||||||
* \defgroup uxQueueMessagesWaiting uxQueueMessagesWaiting
|
|
||||||
* \ingroup QueueManagement
|
* \ingroup QueueManagement
|
||||||
*/
|
*/
|
||||||
UBaseType_t uxQueueSpacesAvailable( const QueueHandle_t xQueue ) PRIVILEGED_FUNCTION;
|
UBaseType_t uxQueueSpacesAvailable( const QueueHandle_t xQueue ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* queue. h
|
|
||||||
* @code{c}
|
|
||||||
* void vQueueDelete( QueueHandle_t xQueue );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Delete a queue - freeing all the memory allocated for storing of items
|
* Delete a queue - freeing all the memory allocated for storing of items
|
||||||
* placed on the queue.
|
* placed on the queue.
|
||||||
*
|
*
|
||||||
* @param xQueue A handle to the queue to be deleted.
|
* @param xQueue A handle to the queue to be deleted.
|
||||||
*
|
*
|
||||||
* \defgroup vQueueDelete vQueueDelete
|
|
||||||
* \ingroup QueueManagement
|
* \ingroup QueueManagement
|
||||||
*/
|
*/
|
||||||
void vQueueDelete( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION;
|
void vQueueDelete( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* queue. h
|
|
||||||
* @code{c}
|
|
||||||
* BaseType_t xQueueSendToFrontFromISR(
|
|
||||||
* QueueHandle_t xQueue,
|
|
||||||
* const void *pvItemToQueue,
|
|
||||||
* BaseType_t *pxHigherPriorityTaskWoken
|
|
||||||
* );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* This is a macro that calls xQueueGenericSendFromISR().
|
* This is a macro that calls xQueueGenericSendFromISR().
|
||||||
*
|
*
|
||||||
@ -1035,7 +920,6 @@ void vQueueDelete( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION;
|
|||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
*
|
*
|
||||||
* \defgroup xQueueSendFromISR xQueueSendFromISR
|
|
||||||
* \ingroup QueueManagement
|
* \ingroup QueueManagement
|
||||||
*/
|
*/
|
||||||
#define xQueueSendToFrontFromISR( xQueue, pvItemToQueue, pxHigherPriorityTaskWoken ) \
|
#define xQueueSendToFrontFromISR( xQueue, pvItemToQueue, pxHigherPriorityTaskWoken ) \
|
||||||
@ -1043,14 +927,6 @@ void vQueueDelete( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* queue. h
|
|
||||||
* @code{c}
|
|
||||||
* BaseType_t xQueueSendToBackFromISR(
|
|
||||||
* QueueHandle_t xQueue,
|
|
||||||
* const void *pvItemToQueue,
|
|
||||||
* BaseType_t *pxHigherPriorityTaskWoken
|
|
||||||
* );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* This is a macro that calls xQueueGenericSendFromISR().
|
* This is a macro that calls xQueueGenericSendFromISR().
|
||||||
*
|
*
|
||||||
@ -1107,21 +983,12 @@ void vQueueDelete( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION;
|
|||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
*
|
*
|
||||||
* \defgroup xQueueSendFromISR xQueueSendFromISR
|
|
||||||
* \ingroup QueueManagement
|
* \ingroup QueueManagement
|
||||||
*/
|
*/
|
||||||
#define xQueueSendToBackFromISR( xQueue, pvItemToQueue, pxHigherPriorityTaskWoken ) \
|
#define xQueueSendToBackFromISR( xQueue, pvItemToQueue, pxHigherPriorityTaskWoken ) \
|
||||||
xQueueGenericSendFromISR( ( xQueue ), ( pvItemToQueue ), ( pxHigherPriorityTaskWoken ), queueSEND_TO_BACK )
|
xQueueGenericSendFromISR( ( xQueue ), ( pvItemToQueue ), ( pxHigherPriorityTaskWoken ), queueSEND_TO_BACK )
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* queue. h
|
|
||||||
* @code{c}
|
|
||||||
* BaseType_t xQueueOverwriteFromISR(
|
|
||||||
* QueueHandle_t xQueue,
|
|
||||||
* const void * pvItemToQueue,
|
|
||||||
* BaseType_t *pxHigherPriorityTaskWoken
|
|
||||||
* );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* A version of xQueueOverwrite() that can be used in an interrupt service
|
* A version of xQueueOverwrite() that can be used in an interrupt service
|
||||||
* routine (ISR).
|
* routine (ISR).
|
||||||
@ -1195,21 +1062,12 @@ void vQueueDelete( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION;
|
|||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xQueueOverwriteFromISR xQueueOverwriteFromISR
|
|
||||||
* \ingroup QueueManagement
|
* \ingroup QueueManagement
|
||||||
*/
|
*/
|
||||||
#define xQueueOverwriteFromISR( xQueue, pvItemToQueue, pxHigherPriorityTaskWoken ) \
|
#define xQueueOverwriteFromISR( xQueue, pvItemToQueue, pxHigherPriorityTaskWoken ) \
|
||||||
xQueueGenericSendFromISR( ( xQueue ), ( pvItemToQueue ), ( pxHigherPriorityTaskWoken ), queueOVERWRITE )
|
xQueueGenericSendFromISR( ( xQueue ), ( pvItemToQueue ), ( pxHigherPriorityTaskWoken ), queueOVERWRITE )
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* queue. h
|
|
||||||
* @code{c}
|
|
||||||
* BaseType_t xQueueSendFromISR(
|
|
||||||
* QueueHandle_t xQueue,
|
|
||||||
* const void *pvItemToQueue,
|
|
||||||
* BaseType_t *pxHigherPriorityTaskWoken
|
|
||||||
* );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* This is a macro that calls xQueueGenericSendFromISR(). It is included
|
* This is a macro that calls xQueueGenericSendFromISR(). It is included
|
||||||
* for backward compatibility with versions of FreeRTOS.org that did not
|
* for backward compatibility with versions of FreeRTOS.org that did not
|
||||||
@ -1270,22 +1128,12 @@ void vQueueDelete( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION;
|
|||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
*
|
*
|
||||||
* \defgroup xQueueSendFromISR xQueueSendFromISR
|
|
||||||
* \ingroup QueueManagement
|
* \ingroup QueueManagement
|
||||||
*/
|
*/
|
||||||
#define xQueueSendFromISR( xQueue, pvItemToQueue, pxHigherPriorityTaskWoken ) \
|
#define xQueueSendFromISR( xQueue, pvItemToQueue, pxHigherPriorityTaskWoken ) \
|
||||||
xQueueGenericSendFromISR( ( xQueue ), ( pvItemToQueue ), ( pxHigherPriorityTaskWoken ), queueSEND_TO_BACK )
|
xQueueGenericSendFromISR( ( xQueue ), ( pvItemToQueue ), ( pxHigherPriorityTaskWoken ), queueSEND_TO_BACK )
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* queue. h
|
|
||||||
* @code{c}
|
|
||||||
* BaseType_t xQueueGenericSendFromISR(
|
|
||||||
* QueueHandle_t xQueue,
|
|
||||||
* const void *pvItemToQueue,
|
|
||||||
* BaseType_t *pxHigherPriorityTaskWoken,
|
|
||||||
* BaseType_t xCopyPosition
|
|
||||||
* );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* It is preferred that the macros xQueueSendFromISR(),
|
* It is preferred that the macros xQueueSendFromISR(),
|
||||||
* xQueueSendToFrontFromISR() and xQueueSendToBackFromISR() be used in place
|
* xQueueSendToFrontFromISR() and xQueueSendToBackFromISR() be used in place
|
||||||
@ -1350,7 +1198,6 @@ void vQueueDelete( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION;
|
|||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
*
|
*
|
||||||
* \defgroup xQueueSendFromISR xQueueSendFromISR
|
|
||||||
* \ingroup QueueManagement
|
* \ingroup QueueManagement
|
||||||
*/
|
*/
|
||||||
BaseType_t xQueueGenericSendFromISR( QueueHandle_t xQueue,
|
BaseType_t xQueueGenericSendFromISR( QueueHandle_t xQueue,
|
||||||
@ -1361,14 +1208,6 @@ BaseType_t xQueueGiveFromISR( QueueHandle_t xQueue,
|
|||||||
BaseType_t * const pxHigherPriorityTaskWoken ) PRIVILEGED_FUNCTION;
|
BaseType_t * const pxHigherPriorityTaskWoken ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* queue. h
|
|
||||||
* @code{c}
|
|
||||||
* BaseType_t xQueueReceiveFromISR(
|
|
||||||
* QueueHandle_t xQueue,
|
|
||||||
* void *pvBuffer,
|
|
||||||
* BaseType_t *pxTaskWoken
|
|
||||||
* );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Receive an item from a queue. It is safe to use this function from within an
|
* Receive an item from a queue. It is safe to use this function from within an
|
||||||
* interrupt service routine.
|
* interrupt service routine.
|
||||||
@ -1379,8 +1218,8 @@ BaseType_t xQueueGiveFromISR( QueueHandle_t xQueue,
|
|||||||
* @param pvBuffer Pointer to the buffer into which the received item will
|
* @param pvBuffer Pointer to the buffer into which the received item will
|
||||||
* be copied.
|
* be copied.
|
||||||
*
|
*
|
||||||
* @param pxTaskWoken A task may be blocked waiting for space to become
|
* @param pxHigherPriorityTaskWoken A task may be blocked waiting for space to
|
||||||
* available on the queue. If xQueueReceiveFromISR causes such a task to
|
* become available on the queue. If xQueueReceiveFromISR causes such a task to
|
||||||
* unblock *pxTaskWoken will get set to pdTRUE, otherwise *pxTaskWoken will
|
* unblock *pxTaskWoken will get set to pdTRUE, otherwise *pxTaskWoken will
|
||||||
* remain unchanged.
|
* remain unchanged.
|
||||||
*
|
*
|
||||||
@ -1444,21 +1283,38 @@ BaseType_t xQueueGiveFromISR( QueueHandle_t xQueue,
|
|||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xQueueReceiveFromISR xQueueReceiveFromISR
|
|
||||||
* \ingroup QueueManagement
|
* \ingroup QueueManagement
|
||||||
*/
|
*/
|
||||||
BaseType_t xQueueReceiveFromISR( QueueHandle_t xQueue,
|
BaseType_t xQueueReceiveFromISR( QueueHandle_t xQueue,
|
||||||
void * const pvBuffer,
|
void * const pvBuffer,
|
||||||
BaseType_t * const pxHigherPriorityTaskWoken ) PRIVILEGED_FUNCTION;
|
BaseType_t * const pxHigherPriorityTaskWoken ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Utilities to query queues that are safe to use from an ISR. These utilities
|
* Queries a queue to determine if the queue is empty. This function should only be used in an ISR.
|
||||||
* should be used only from within an ISR, or within a critical section.
|
*
|
||||||
|
* @param xQueue The handle of the queue being queried
|
||||||
|
* @return pdFALSE if the queue is not empty, or pdTRUE if the queue is empty.
|
||||||
*/
|
*/
|
||||||
BaseType_t xQueueIsQueueEmptyFromISR( const QueueHandle_t xQueue ) PRIVILEGED_FUNCTION;
|
BaseType_t xQueueIsQueueEmptyFromISR( const QueueHandle_t xQueue ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Queries a queue to determine if the queue is full. This function should only be used in an ISR.
|
||||||
|
*
|
||||||
|
* @param xQueue The handle of the queue being queried
|
||||||
|
* @return pdFALSE if the queue is not full, or pdTRUE if the queue is full.
|
||||||
|
*/
|
||||||
BaseType_t xQueueIsQueueFullFromISR( const QueueHandle_t xQueue ) PRIVILEGED_FUNCTION;
|
BaseType_t xQueueIsQueueFullFromISR( const QueueHandle_t xQueue ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A version of uxQueueMessagesWaiting() that can be called from an ISR. Return the number of messages stored in a queue.
|
||||||
|
*
|
||||||
|
* @param xQueue A handle to the queue being queried.
|
||||||
|
* @return The number of messages available in the queue.
|
||||||
|
*/
|
||||||
UBaseType_t uxQueueMessagesWaitingFromISR( const QueueHandle_t xQueue ) PRIVILEGED_FUNCTION;
|
UBaseType_t uxQueueMessagesWaitingFromISR( const QueueHandle_t xQueue ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
|
/** @cond !DOC_EXCLUDE_HEADER_SECTION */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The functions defined above are for passing data to and from tasks. The
|
* The functions defined above are for passing data to and from tasks. The
|
||||||
* functions below are the equivalents for passing data to and from
|
* functions below are the equivalents for passing data to and from
|
||||||
@ -1507,13 +1363,15 @@ BaseType_t xQueueTakeMutexRecursive( QueueHandle_t xMutex,
|
|||||||
TickType_t xTicksToWait ) PRIVILEGED_FUNCTION;
|
TickType_t xTicksToWait ) PRIVILEGED_FUNCTION;
|
||||||
BaseType_t xQueueGiveMutexRecursive( QueueHandle_t xMutex ) PRIVILEGED_FUNCTION;
|
BaseType_t xQueueGiveMutexRecursive( QueueHandle_t xMutex ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/*
|
/** @endcond */
|
||||||
|
|
||||||
|
/**
|
||||||
* Reset a queue back to its original empty state. The return value is now
|
* Reset a queue back to its original empty state. The return value is now
|
||||||
* obsolete and is always set to pdPASS.
|
* obsolete and is always set to pdPASS.
|
||||||
*/
|
*/
|
||||||
#define xQueueReset( xQueue ) xQueueGenericReset( ( xQueue ), pdFALSE )
|
#define xQueueReset( xQueue ) xQueueGenericReset( ( xQueue ), pdFALSE )
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* The registry is provided as a means for kernel aware debuggers to
|
* The registry is provided as a means for kernel aware debuggers to
|
||||||
* locate queues, semaphores and mutexes. Call vQueueAddToRegistry() add
|
* locate queues, semaphores and mutexes. Call vQueueAddToRegistry() add
|
||||||
* a queue, semaphore or mutex handle to the registry if you want the handle
|
* a queue, semaphore or mutex handle to the registry if you want the handle
|
||||||
@ -1544,7 +1402,7 @@ BaseType_t xQueueGiveMutexRecursive( QueueHandle_t xMutex ) PRIVILEGED_FUNCTION;
|
|||||||
const char * pcQueueName ) PRIVILEGED_FUNCTION; /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
|
const char * pcQueueName ) PRIVILEGED_FUNCTION; /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* The registry is provided as a means for kernel aware debuggers to
|
* The registry is provided as a means for kernel aware debuggers to
|
||||||
* locate queues, semaphores and mutexes. Call vQueueAddToRegistry() add
|
* locate queues, semaphores and mutexes. Call vQueueAddToRegistry() add
|
||||||
* a queue, semaphore or mutex handle to the registry if you want the handle
|
* a queue, semaphore or mutex handle to the registry if you want the handle
|
||||||
@ -1558,7 +1416,7 @@ BaseType_t xQueueGiveMutexRecursive( QueueHandle_t xMutex ) PRIVILEGED_FUNCTION;
|
|||||||
void vQueueUnregisterQueue( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION;
|
void vQueueUnregisterQueue( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* The queue registry is provided as a means for kernel aware debuggers to
|
* The queue registry is provided as a means for kernel aware debuggers to
|
||||||
* locate queues, semaphores and mutexes. Call pcQueueGetName() to look
|
* locate queues, semaphores and mutexes. Call pcQueueGetName() to look
|
||||||
* up and return the name of a queue in the queue registry from the queue's
|
* up and return the name of a queue in the queue registry from the queue's
|
||||||
@ -1573,6 +1431,8 @@ BaseType_t xQueueGiveMutexRecursive( QueueHandle_t xMutex ) PRIVILEGED_FUNCTION;
|
|||||||
const char * pcQueueGetName( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
|
const char * pcQueueGetName( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/** @cond !DOC_EXCLUDE_HEADER_SECTION */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Generic version of the function used to create a queue using dynamic memory
|
* Generic version of the function used to create a queue using dynamic memory
|
||||||
* allocation. This is called by other functions and macros that create other
|
* allocation. This is called by other functions and macros that create other
|
||||||
@ -1609,7 +1469,9 @@ BaseType_t xQueueGiveMutexRecursive( QueueHandle_t xMutex ) PRIVILEGED_FUNCTION;
|
|||||||
StaticQueue_t ** ppxStaticQueue ) PRIVILEGED_FUNCTION;
|
StaticQueue_t ** ppxStaticQueue ) PRIVILEGED_FUNCTION;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/** @endcond */
|
||||||
|
|
||||||
|
/**
|
||||||
* Queue sets provide a mechanism to allow a task to block (pend) on a read
|
* Queue sets provide a mechanism to allow a task to block (pend) on a read
|
||||||
* operation from multiple queues or semaphores simultaneously.
|
* operation from multiple queues or semaphores simultaneously.
|
||||||
*
|
*
|
||||||
@ -1659,7 +1521,7 @@ BaseType_t xQueueGiveMutexRecursive( QueueHandle_t xMutex ) PRIVILEGED_FUNCTION;
|
|||||||
*/
|
*/
|
||||||
QueueSetHandle_t xQueueCreateSet( const UBaseType_t uxEventQueueLength ) PRIVILEGED_FUNCTION;
|
QueueSetHandle_t xQueueCreateSet( const UBaseType_t uxEventQueueLength ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Adds a queue or semaphore to a queue set that was previously created by a
|
* Adds a queue or semaphore to a queue set that was previously created by a
|
||||||
* call to xQueueCreateSet().
|
* call to xQueueCreateSet().
|
||||||
*
|
*
|
||||||
@ -1684,7 +1546,7 @@ QueueSetHandle_t xQueueCreateSet( const UBaseType_t uxEventQueueLength ) PRIVILE
|
|||||||
BaseType_t xQueueAddToSet( QueueSetMemberHandle_t xQueueOrSemaphore,
|
BaseType_t xQueueAddToSet( QueueSetMemberHandle_t xQueueOrSemaphore,
|
||||||
QueueSetHandle_t xQueueSet ) PRIVILEGED_FUNCTION;
|
QueueSetHandle_t xQueueSet ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Removes a queue or semaphore from a queue set. A queue or semaphore can only
|
* Removes a queue or semaphore from a queue set. A queue or semaphore can only
|
||||||
* be removed from a set if the queue or semaphore is empty.
|
* be removed from a set if the queue or semaphore is empty.
|
||||||
*
|
*
|
||||||
@ -1704,7 +1566,7 @@ BaseType_t xQueueAddToSet( QueueSetMemberHandle_t xQueueOrSemaphore,
|
|||||||
BaseType_t xQueueRemoveFromSet( QueueSetMemberHandle_t xQueueOrSemaphore,
|
BaseType_t xQueueRemoveFromSet( QueueSetMemberHandle_t xQueueOrSemaphore,
|
||||||
QueueSetHandle_t xQueueSet ) PRIVILEGED_FUNCTION;
|
QueueSetHandle_t xQueueSet ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* xQueueSelectFromSet() selects from the members of a queue set a queue or
|
* xQueueSelectFromSet() selects from the members of a queue set a queue or
|
||||||
* semaphore that either contains data (in the case of a queue) or is available
|
* semaphore that either contains data (in the case of a queue) or is available
|
||||||
* to take (in the case of a semaphore). xQueueSelectFromSet() effectively
|
* to take (in the case of a semaphore). xQueueSelectFromSet() effectively
|
||||||
@ -1741,11 +1603,13 @@ BaseType_t xQueueRemoveFromSet( QueueSetMemberHandle_t xQueueOrSemaphore,
|
|||||||
QueueSetMemberHandle_t xQueueSelectFromSet( QueueSetHandle_t xQueueSet,
|
QueueSetMemberHandle_t xQueueSelectFromSet( QueueSetHandle_t xQueueSet,
|
||||||
const TickType_t xTicksToWait ) PRIVILEGED_FUNCTION;
|
const TickType_t xTicksToWait ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* A version of xQueueSelectFromSet() that can be used from an ISR.
|
* A version of xQueueSelectFromSet() that can be used from an ISR.
|
||||||
*/
|
*/
|
||||||
QueueSetMemberHandle_t xQueueSelectFromSetFromISR( QueueSetHandle_t xQueueSet ) PRIVILEGED_FUNCTION;
|
QueueSetMemberHandle_t xQueueSelectFromSetFromISR( QueueSetHandle_t xQueueSet ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
|
/** @cond !DOC_EXCLUDE_HEADER_SECTION */
|
||||||
|
|
||||||
/* Not public API functions. */
|
/* Not public API functions. */
|
||||||
void vQueueWaitForMessageRestricted( QueueHandle_t xQueue,
|
void vQueueWaitForMessageRestricted( QueueHandle_t xQueue,
|
||||||
TickType_t xTicksToWait,
|
TickType_t xTicksToWait,
|
||||||
@ -1757,6 +1621,7 @@ void vQueueSetQueueNumber( QueueHandle_t xQueue,
|
|||||||
UBaseType_t uxQueueGetQueueNumber( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION;
|
UBaseType_t uxQueueGetQueueNumber( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION;
|
||||||
uint8_t ucQueueGetQueueType( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION;
|
uint8_t ucQueueGetQueueType( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
|
/** @endcond */
|
||||||
|
|
||||||
/* *INDENT-OFF* */
|
/* *INDENT-OFF* */
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -47,10 +47,6 @@ typedef QueueHandle_t SemaphoreHandle_t;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* semphr. h
|
|
||||||
* @code{c}
|
|
||||||
* vSemaphoreCreateBinary( SemaphoreHandle_t xSemaphore );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* In many usage scenarios it is faster and more memory efficient to use a
|
* In many usage scenarios it is faster and more memory efficient to use a
|
||||||
* direct to task notification in place of a binary semaphore!
|
* direct to task notification in place of a binary semaphore!
|
||||||
@ -94,7 +90,6 @@ typedef QueueHandle_t SemaphoreHandle_t;
|
|||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup vSemaphoreCreateBinary vSemaphoreCreateBinary
|
|
||||||
* \ingroup Semaphores
|
* \ingroup Semaphores
|
||||||
*/
|
*/
|
||||||
#if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
|
#if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
|
||||||
@ -109,10 +104,6 @@ typedef QueueHandle_t SemaphoreHandle_t;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* semphr. h
|
|
||||||
* @code{c}
|
|
||||||
* SemaphoreHandle_t xSemaphoreCreateBinary( void );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Creates a new binary semaphore instance, and returns a handle by which the
|
* Creates a new binary semaphore instance, and returns a handle by which the
|
||||||
* new semaphore can be referenced.
|
* new semaphore can be referenced.
|
||||||
@ -164,7 +155,6 @@ typedef QueueHandle_t SemaphoreHandle_t;
|
|||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xSemaphoreCreateBinary xSemaphoreCreateBinary
|
|
||||||
* \ingroup Semaphores
|
* \ingroup Semaphores
|
||||||
*/
|
*/
|
||||||
#if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
|
#if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
|
||||||
@ -172,10 +162,6 @@ typedef QueueHandle_t SemaphoreHandle_t;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* semphr. h
|
|
||||||
* @code{c}
|
|
||||||
* SemaphoreHandle_t xSemaphoreCreateBinaryStatic( StaticSemaphore_t *pxSemaphoreBuffer );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Creates a new binary semaphore instance, and returns a handle by which the
|
* Creates a new binary semaphore instance, and returns a handle by which the
|
||||||
* new semaphore can be referenced.
|
* new semaphore can be referenced.
|
||||||
@ -200,7 +186,7 @@ typedef QueueHandle_t SemaphoreHandle_t;
|
|||||||
* semaphore does not use a priority inheritance mechanism. For an alternative
|
* semaphore does not use a priority inheritance mechanism. For an alternative
|
||||||
* that does use priority inheritance see xSemaphoreCreateMutex().
|
* that does use priority inheritance see xSemaphoreCreateMutex().
|
||||||
*
|
*
|
||||||
* @param pxSemaphoreBuffer Must point to a variable of type StaticSemaphore_t,
|
* @param pxStaticSemaphore Must point to a variable of type StaticSemaphore_t,
|
||||||
* which will then be used to hold the semaphore's data structure, removing the
|
* which will then be used to hold the semaphore's data structure, removing the
|
||||||
* need for the memory to be allocated dynamically.
|
* need for the memory to be allocated dynamically.
|
||||||
*
|
*
|
||||||
@ -225,7 +211,6 @@ typedef QueueHandle_t SemaphoreHandle_t;
|
|||||||
* // Rest of task code goes here.
|
* // Rest of task code goes here.
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xSemaphoreCreateBinaryStatic xSemaphoreCreateBinaryStatic
|
|
||||||
* \ingroup Semaphores
|
* \ingroup Semaphores
|
||||||
*/
|
*/
|
||||||
#if ( configSUPPORT_STATIC_ALLOCATION == 1 )
|
#if ( configSUPPORT_STATIC_ALLOCATION == 1 )
|
||||||
@ -233,13 +218,6 @@ typedef QueueHandle_t SemaphoreHandle_t;
|
|||||||
#endif /* configSUPPORT_STATIC_ALLOCATION */
|
#endif /* configSUPPORT_STATIC_ALLOCATION */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* semphr. h
|
|
||||||
* @code{c}
|
|
||||||
* xSemaphoreTake(
|
|
||||||
* SemaphoreHandle_t xSemaphore,
|
|
||||||
* TickType_t xBlockTime
|
|
||||||
* );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* <i>Macro</i> to obtain a semaphore. The semaphore must have previously been
|
* <i>Macro</i> to obtain a semaphore. The semaphore must have previously been
|
||||||
* created with a call to xSemaphoreCreateBinary(), xSemaphoreCreateMutex() or
|
* created with a call to xSemaphoreCreateBinary(), xSemaphoreCreateMutex() or
|
||||||
@ -296,19 +274,11 @@ typedef QueueHandle_t SemaphoreHandle_t;
|
|||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xSemaphoreTake xSemaphoreTake
|
|
||||||
* \ingroup Semaphores
|
* \ingroup Semaphores
|
||||||
*/
|
*/
|
||||||
#define xSemaphoreTake( xSemaphore, xBlockTime ) xQueueSemaphoreTake( ( xSemaphore ), ( xBlockTime ) )
|
#define xSemaphoreTake( xSemaphore, xBlockTime ) xQueueSemaphoreTake( ( xSemaphore ), ( xBlockTime ) )
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* semphr. h
|
|
||||||
* @code{c}
|
|
||||||
* xSemaphoreTakeRecursive(
|
|
||||||
* SemaphoreHandle_t xMutex,
|
|
||||||
* TickType_t xBlockTime
|
|
||||||
* );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* <i>Macro</i> to recursively obtain, or 'take', a mutex type semaphore.
|
* <i>Macro</i> to recursively obtain, or 'take', a mutex type semaphore.
|
||||||
* The mutex must have previously been created using a call to
|
* The mutex must have previously been created using a call to
|
||||||
@ -391,7 +361,6 @@ typedef QueueHandle_t SemaphoreHandle_t;
|
|||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xSemaphoreTakeRecursive xSemaphoreTakeRecursive
|
|
||||||
* \ingroup Semaphores
|
* \ingroup Semaphores
|
||||||
*/
|
*/
|
||||||
#if ( configUSE_RECURSIVE_MUTEXES == 1 )
|
#if ( configUSE_RECURSIVE_MUTEXES == 1 )
|
||||||
@ -399,10 +368,6 @@ typedef QueueHandle_t SemaphoreHandle_t;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* semphr. h
|
|
||||||
* @code{c}
|
|
||||||
* xSemaphoreGive( SemaphoreHandle_t xSemaphore );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* <i>Macro</i> to release a semaphore. The semaphore must have previously been
|
* <i>Macro</i> to release a semaphore. The semaphore must have previously been
|
||||||
* created with a call to xSemaphoreCreateBinary(), xSemaphoreCreateMutex() or
|
* created with a call to xSemaphoreCreateBinary(), xSemaphoreCreateMutex() or
|
||||||
@ -458,16 +423,11 @@ typedef QueueHandle_t SemaphoreHandle_t;
|
|||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xSemaphoreGive xSemaphoreGive
|
|
||||||
* \ingroup Semaphores
|
* \ingroup Semaphores
|
||||||
*/
|
*/
|
||||||
#define xSemaphoreGive( xSemaphore ) xQueueGenericSend( ( QueueHandle_t ) ( xSemaphore ), NULL, semGIVE_BLOCK_TIME, queueSEND_TO_BACK )
|
#define xSemaphoreGive( xSemaphore ) xQueueGenericSend( ( QueueHandle_t ) ( xSemaphore ), NULL, semGIVE_BLOCK_TIME, queueSEND_TO_BACK )
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* semphr. h
|
|
||||||
* @code{c}
|
|
||||||
* xSemaphoreGiveRecursive( SemaphoreHandle_t xMutex );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* <i>Macro</i> to recursively release, or 'give', a mutex type semaphore.
|
* <i>Macro</i> to recursively release, or 'give', a mutex type semaphore.
|
||||||
* The mutex must have previously been created using a call to
|
* The mutex must have previously been created using a call to
|
||||||
@ -544,7 +504,6 @@ typedef QueueHandle_t SemaphoreHandle_t;
|
|||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xSemaphoreGiveRecursive xSemaphoreGiveRecursive
|
|
||||||
* \ingroup Semaphores
|
* \ingroup Semaphores
|
||||||
*/
|
*/
|
||||||
#if ( configUSE_RECURSIVE_MUTEXES == 1 )
|
#if ( configUSE_RECURSIVE_MUTEXES == 1 )
|
||||||
@ -552,13 +511,6 @@ typedef QueueHandle_t SemaphoreHandle_t;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* semphr. h
|
|
||||||
* @code{c}
|
|
||||||
* xSemaphoreGiveFromISR(
|
|
||||||
* SemaphoreHandle_t xSemaphore,
|
|
||||||
* BaseType_t *pxHigherPriorityTaskWoken
|
|
||||||
* );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* <i>Macro</i> to release a semaphore. The semaphore must have previously been
|
* <i>Macro</i> to release a semaphore. The semaphore must have previously been
|
||||||
* created with a call to xSemaphoreCreateBinary() or xSemaphoreCreateCounting().
|
* created with a call to xSemaphoreCreateBinary() or xSemaphoreCreateCounting().
|
||||||
@ -581,8 +533,8 @@ typedef QueueHandle_t SemaphoreHandle_t;
|
|||||||
*
|
*
|
||||||
* Example usage:
|
* Example usage:
|
||||||
* @code{c}
|
* @code{c}
|
||||||
\#define LONG_TIME 0xffff
|
* #define LONG_TIME 0xffff
|
||||||
\#define TICKS_TO_WAIT 10
|
* #define TICKS_TO_WAIT 10
|
||||||
* SemaphoreHandle_t xSemaphore = NULL;
|
* SemaphoreHandle_t xSemaphore = NULL;
|
||||||
*
|
*
|
||||||
* // Repetitive task.
|
* // Repetitive task.
|
||||||
@ -638,19 +590,11 @@ typedef QueueHandle_t SemaphoreHandle_t;
|
|||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xSemaphoreGiveFromISR xSemaphoreGiveFromISR
|
|
||||||
* \ingroup Semaphores
|
* \ingroup Semaphores
|
||||||
*/
|
*/
|
||||||
#define xSemaphoreGiveFromISR( xSemaphore, pxHigherPriorityTaskWoken ) xQueueGiveFromISR( ( QueueHandle_t ) ( xSemaphore ), ( pxHigherPriorityTaskWoken ) )
|
#define xSemaphoreGiveFromISR( xSemaphore, pxHigherPriorityTaskWoken ) xQueueGiveFromISR( ( QueueHandle_t ) ( xSemaphore ), ( pxHigherPriorityTaskWoken ) )
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* semphr. h
|
|
||||||
* @code{c}
|
|
||||||
* xSemaphoreTakeFromISR(
|
|
||||||
* SemaphoreHandle_t xSemaphore,
|
|
||||||
* BaseType_t *pxHigherPriorityTaskWoken
|
|
||||||
* );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* <i>Macro</i> to take a semaphore from an ISR. The semaphore must have
|
* <i>Macro</i> to take a semaphore from an ISR. The semaphore must have
|
||||||
* previously been created with a call to xSemaphoreCreateBinary() or
|
* previously been created with a call to xSemaphoreCreateBinary() or
|
||||||
@ -679,10 +623,6 @@ typedef QueueHandle_t SemaphoreHandle_t;
|
|||||||
#define xSemaphoreTakeFromISR( xSemaphore, pxHigherPriorityTaskWoken ) xQueueReceiveFromISR( ( QueueHandle_t ) ( xSemaphore ), NULL, ( pxHigherPriorityTaskWoken ) )
|
#define xSemaphoreTakeFromISR( xSemaphore, pxHigherPriorityTaskWoken ) xQueueReceiveFromISR( ( QueueHandle_t ) ( xSemaphore ), NULL, ( pxHigherPriorityTaskWoken ) )
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* semphr. h
|
|
||||||
* @code{c}
|
|
||||||
* SemaphoreHandle_t xSemaphoreCreateMutex( void );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Creates a new mutex type semaphore instance, and returns a handle by which
|
* Creates a new mutex type semaphore instance, and returns a handle by which
|
||||||
* the new mutex can be referenced.
|
* the new mutex can be referenced.
|
||||||
@ -732,18 +672,13 @@ typedef QueueHandle_t SemaphoreHandle_t;
|
|||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xSemaphoreCreateMutex xSemaphoreCreateMutex
|
|
||||||
* \ingroup Semaphores
|
* \ingroup Semaphores
|
||||||
*/
|
*/
|
||||||
#if ( ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) && ( configUSE_MUTEXES == 1 ) )
|
#if __DOXYGEN__ || ( ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) && ( configUSE_MUTEXES == 1 ) )
|
||||||
#define xSemaphoreCreateMutex() xQueueCreateMutex( queueQUEUE_TYPE_MUTEX )
|
#define xSemaphoreCreateMutex() xQueueCreateMutex( queueQUEUE_TYPE_MUTEX )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* semphr. h
|
|
||||||
* @code{c}
|
|
||||||
* SemaphoreHandle_t xSemaphoreCreateMutexStatic( StaticSemaphore_t *pxMutexBuffer );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Creates a new mutex type semaphore instance, and returns a handle by which
|
* Creates a new mutex type semaphore instance, and returns a handle by which
|
||||||
* the new mutex can be referenced.
|
* the new mutex can be referenced.
|
||||||
@ -795,19 +730,14 @@ typedef QueueHandle_t SemaphoreHandle_t;
|
|||||||
* // so there is no need to check it.
|
* // so there is no need to check it.
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xSemaphoreCreateMutexStatic xSemaphoreCreateMutexStatic
|
|
||||||
* \ingroup Semaphores
|
* \ingroup Semaphores
|
||||||
*/
|
*/
|
||||||
#if ( ( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configUSE_MUTEXES == 1 ) )
|
#if __DOXYGEN__ || ( ( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configUSE_MUTEXES == 1 ) )
|
||||||
#define xSemaphoreCreateMutexStatic( pxMutexBuffer ) xQueueCreateMutexStatic( queueQUEUE_TYPE_MUTEX, ( pxMutexBuffer ) )
|
#define xSemaphoreCreateMutexStatic( pxMutexBuffer ) xQueueCreateMutexStatic( queueQUEUE_TYPE_MUTEX, ( pxMutexBuffer ) )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* semphr. h
|
|
||||||
* @code{c}
|
|
||||||
* SemaphoreHandle_t xSemaphoreCreateRecursiveMutex( void );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Creates a new recursive mutex type semaphore instance, and returns a handle
|
* Creates a new recursive mutex type semaphore instance, and returns a handle
|
||||||
* by which the new recursive mutex can be referenced.
|
* by which the new recursive mutex can be referenced.
|
||||||
@ -865,18 +795,13 @@ typedef QueueHandle_t SemaphoreHandle_t;
|
|||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xSemaphoreCreateRecursiveMutex xSemaphoreCreateRecursiveMutex
|
|
||||||
* \ingroup Semaphores
|
* \ingroup Semaphores
|
||||||
*/
|
*/
|
||||||
#if ( ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) && ( configUSE_RECURSIVE_MUTEXES == 1 ) )
|
#if __DOXYGEN__ || ( ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) && ( configUSE_RECURSIVE_MUTEXES == 1 ) )
|
||||||
#define xSemaphoreCreateRecursiveMutex() xQueueCreateMutex( queueQUEUE_TYPE_RECURSIVE_MUTEX )
|
#define xSemaphoreCreateRecursiveMutex() xQueueCreateMutex( queueQUEUE_TYPE_RECURSIVE_MUTEX )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* semphr. h
|
|
||||||
* @code{c}
|
|
||||||
* SemaphoreHandle_t xSemaphoreCreateRecursiveMutexStatic( StaticSemaphore_t *pxMutexBuffer );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Creates a new recursive mutex type semaphore instance, and returns a handle
|
* Creates a new recursive mutex type semaphore instance, and returns a handle
|
||||||
* by which the new recursive mutex can be referenced.
|
* by which the new recursive mutex can be referenced.
|
||||||
@ -914,13 +839,13 @@ typedef QueueHandle_t SemaphoreHandle_t;
|
|||||||
* semaphore and another always 'takes' the semaphore) and from within interrupt
|
* semaphore and another always 'takes' the semaphore) and from within interrupt
|
||||||
* service routines.
|
* service routines.
|
||||||
*
|
*
|
||||||
* @param pxMutexBuffer Must point to a variable of type StaticSemaphore_t,
|
* @param pxStaticSemaphore Must point to a variable of type StaticSemaphore_t,
|
||||||
* which will then be used to hold the recursive mutex's data structure,
|
* which will then be used to hold the recursive mutex's data structure,
|
||||||
* removing the need for the memory to be allocated dynamically.
|
* removing the need for the memory to be allocated dynamically.
|
||||||
*
|
*
|
||||||
* @return If the recursive mutex was successfully created then a handle to the
|
* @return If the recursive mutex was successfully created then a handle to the
|
||||||
* created recursive mutex is returned. If pxMutexBuffer was NULL then NULL is
|
* created recursive mutex is returned. If pxStaticSemaphore was NULL then NULL
|
||||||
* returned.
|
* is returned.
|
||||||
*
|
*
|
||||||
* Example usage:
|
* Example usage:
|
||||||
* @code{c}
|
* @code{c}
|
||||||
@ -940,18 +865,13 @@ typedef QueueHandle_t SemaphoreHandle_t;
|
|||||||
* // so there is no need to check it.
|
* // so there is no need to check it.
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xSemaphoreCreateRecursiveMutexStatic xSemaphoreCreateRecursiveMutexStatic
|
|
||||||
* \ingroup Semaphores
|
* \ingroup Semaphores
|
||||||
*/
|
*/
|
||||||
#if ( ( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configUSE_RECURSIVE_MUTEXES == 1 ) )
|
#if __DOXYGEN__ || ( ( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configUSE_RECURSIVE_MUTEXES == 1 ) )
|
||||||
#define xSemaphoreCreateRecursiveMutexStatic( pxStaticSemaphore ) xQueueCreateMutexStatic( queueQUEUE_TYPE_RECURSIVE_MUTEX, ( pxStaticSemaphore ) )
|
#define xSemaphoreCreateRecursiveMutexStatic( pxStaticSemaphore ) xQueueCreateMutexStatic( queueQUEUE_TYPE_RECURSIVE_MUTEX, ( pxStaticSemaphore ) )
|
||||||
#endif /* configSUPPORT_STATIC_ALLOCATION */
|
#endif /* configSUPPORT_STATIC_ALLOCATION */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* semphr. h
|
|
||||||
* @code{c}
|
|
||||||
* SemaphoreHandle_t xSemaphoreCreateCounting( UBaseType_t uxMaxCount, UBaseType_t uxInitialCount );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Creates a new counting semaphore instance, and returns a handle by which the
|
* Creates a new counting semaphore instance, and returns a handle by which the
|
||||||
* new counting semaphore can be referenced.
|
* new counting semaphore can be referenced.
|
||||||
@ -1022,7 +942,6 @@ typedef QueueHandle_t SemaphoreHandle_t;
|
|||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xSemaphoreCreateCounting xSemaphoreCreateCounting
|
|
||||||
* \ingroup Semaphores
|
* \ingroup Semaphores
|
||||||
*/
|
*/
|
||||||
#if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
|
#if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
|
||||||
@ -1030,10 +949,6 @@ typedef QueueHandle_t SemaphoreHandle_t;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* semphr. h
|
|
||||||
* @code{c}
|
|
||||||
* SemaphoreHandle_t xSemaphoreCreateCountingStatic( UBaseType_t uxMaxCount, UBaseType_t uxInitialCount, StaticSemaphore_t *pxSemaphoreBuffer );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Creates a new counting semaphore instance, and returns a handle by which the
|
* Creates a new counting semaphore instance, and returns a handle by which the
|
||||||
* new counting semaphore can be referenced.
|
* new counting semaphore can be referenced.
|
||||||
@ -1109,7 +1024,6 @@ typedef QueueHandle_t SemaphoreHandle_t;
|
|||||||
* // is no need to check its value.
|
* // is no need to check its value.
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xSemaphoreCreateCountingStatic xSemaphoreCreateCountingStatic
|
|
||||||
* \ingroup Semaphores
|
* \ingroup Semaphores
|
||||||
*/
|
*/
|
||||||
#if ( configSUPPORT_STATIC_ALLOCATION == 1 )
|
#if ( configSUPPORT_STATIC_ALLOCATION == 1 )
|
||||||
@ -1117,26 +1031,17 @@ typedef QueueHandle_t SemaphoreHandle_t;
|
|||||||
#endif /* configSUPPORT_STATIC_ALLOCATION */
|
#endif /* configSUPPORT_STATIC_ALLOCATION */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* semphr. h
|
|
||||||
* @code{c}
|
|
||||||
* void vSemaphoreDelete( SemaphoreHandle_t xSemaphore );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Delete a semaphore. This function must be used with care. For example,
|
* Delete a semaphore. This function must be used with care. For example,
|
||||||
* do not delete a mutex type semaphore if the mutex is held by a task.
|
* do not delete a mutex type semaphore if the mutex is held by a task.
|
||||||
*
|
*
|
||||||
* @param xSemaphore A handle to the semaphore to be deleted.
|
* @param xSemaphore A handle to the semaphore to be deleted.
|
||||||
*
|
*
|
||||||
* \defgroup vSemaphoreDelete vSemaphoreDelete
|
|
||||||
* \ingroup Semaphores
|
* \ingroup Semaphores
|
||||||
*/
|
*/
|
||||||
#define vSemaphoreDelete( xSemaphore ) vQueueDelete( ( QueueHandle_t ) ( xSemaphore ) )
|
#define vSemaphoreDelete( xSemaphore ) vQueueDelete( ( QueueHandle_t ) ( xSemaphore ) )
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* semphr.h
|
|
||||||
* @code{c}
|
|
||||||
* TaskHandle_t xSemaphoreGetMutexHolder( SemaphoreHandle_t xMutex );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* If xMutex is indeed a mutex type semaphore, return the current mutex holder.
|
* If xMutex is indeed a mutex type semaphore, return the current mutex holder.
|
||||||
* If xMutex is not a mutex type semaphore, or the mutex is available (not held
|
* If xMutex is not a mutex type semaphore, or the mutex is available (not held
|
||||||
@ -1147,30 +1052,22 @@ typedef QueueHandle_t SemaphoreHandle_t;
|
|||||||
* the holder may change between the function exiting and the returned value
|
* the holder may change between the function exiting and the returned value
|
||||||
* being tested.
|
* being tested.
|
||||||
*/
|
*/
|
||||||
#if ( ( configUSE_MUTEXES == 1 ) && ( INCLUDE_xSemaphoreGetMutexHolder == 1 ) )
|
#if __DOXYGEN__ || ( ( configUSE_MUTEXES == 1 ) && ( INCLUDE_xSemaphoreGetMutexHolder == 1 ) )
|
||||||
#define xSemaphoreGetMutexHolder( xSemaphore ) xQueueGetMutexHolder( ( xSemaphore ) )
|
#define xSemaphoreGetMutexHolder( xSemaphore ) xQueueGetMutexHolder( ( xSemaphore ) )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* semphr.h
|
|
||||||
* @code{c}
|
|
||||||
* TaskHandle_t xSemaphoreGetMutexHolderFromISR( SemaphoreHandle_t xMutex );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* If xMutex is indeed a mutex type semaphore, return the current mutex holder.
|
* If xMutex is indeed a mutex type semaphore, return the current mutex holder.
|
||||||
* If xMutex is not a mutex type semaphore, or the mutex is available (not held
|
* If xMutex is not a mutex type semaphore, or the mutex is available (not held
|
||||||
* by a task), return NULL.
|
* by a task), return NULL.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#if ( ( configUSE_MUTEXES == 1 ) && ( INCLUDE_xSemaphoreGetMutexHolder == 1 ) )
|
#if __DOXYGEN__ || ( ( configUSE_MUTEXES == 1 ) && ( INCLUDE_xSemaphoreGetMutexHolder == 1 ) )
|
||||||
#define xSemaphoreGetMutexHolderFromISR( xSemaphore ) xQueueGetMutexHolderFromISR( ( xSemaphore ) )
|
#define xSemaphoreGetMutexHolderFromISR( xSemaphore ) xQueueGetMutexHolderFromISR( ( xSemaphore ) )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* semphr.h
|
|
||||||
* @code{c}
|
|
||||||
* UBaseType_t uxSemaphoreGetCount( SemaphoreHandle_t xSemaphore );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* If the semaphore is a counting semaphore then uxSemaphoreGetCount() returns
|
* If the semaphore is a counting semaphore then uxSemaphoreGetCount() returns
|
||||||
* its current count value. If the semaphore is a binary semaphore then
|
* its current count value. If the semaphore is a binary semaphore then
|
||||||
@ -1195,10 +1092,6 @@ typedef QueueHandle_t SemaphoreHandle_t;
|
|||||||
#define uxSemaphoreGetCountFromISR( xSemaphore ) uxQueueMessagesWaitingFromISR( ( QueueHandle_t ) ( xSemaphore ) )
|
#define uxSemaphoreGetCountFromISR( xSemaphore ) uxQueueMessagesWaitingFromISR( ( QueueHandle_t ) ( xSemaphore ) )
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* semphr.h
|
|
||||||
* @code{c}
|
|
||||||
* BaseType_t xSemaphoreGetStaticBuffer( SemaphoreHandle_t xSemaphore );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Retrieve pointer to a statically created binary semaphore, counting semaphore,
|
* Retrieve pointer to a statically created binary semaphore, counting semaphore,
|
||||||
* or mutex semaphore's data structure buffer. This is the same buffer that is
|
* or mutex semaphore's data structure buffer. This is the same buffer that is
|
||||||
|
@ -83,11 +83,6 @@ typedef void (* StreamBufferCallbackFunction_t)( StreamBufferHandle_t xStreamBuf
|
|||||||
BaseType_t * const pxHigherPriorityTaskWoken );
|
BaseType_t * const pxHigherPriorityTaskWoken );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* stream_buffer.h
|
|
||||||
*
|
|
||||||
* @code{c}
|
|
||||||
* StreamBufferHandle_t xStreamBufferCreate( size_t xBufferSizeBytes, size_t xTriggerLevelBytes );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Creates a new stream buffer using dynamically allocated memory. See
|
* Creates a new stream buffer using dynamically allocated memory. See
|
||||||
* xStreamBufferCreateStatic() for a version that uses statically allocated
|
* xStreamBufferCreateStatic() for a version that uses statically allocated
|
||||||
@ -154,12 +149,13 @@ typedef void (* StreamBufferCallbackFunction_t)( StreamBufferHandle_t xStreamBuf
|
|||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xStreamBufferCreate xStreamBufferCreate
|
|
||||||
* \ingroup StreamBufferManagement
|
* \ingroup StreamBufferManagement
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** @cond !DOC_EXCLUDE_HEADER_SECTION */
|
||||||
#define xStreamBufferCreate( xBufferSizeBytes, xTriggerLevelBytes ) \
|
#define xStreamBufferCreate( xBufferSizeBytes, xTriggerLevelBytes ) \
|
||||||
xStreamBufferGenericCreate( ( xBufferSizeBytes ), ( xTriggerLevelBytes ), pdFALSE, NULL, NULL )
|
xStreamBufferGenericCreate( ( xBufferSizeBytes ), ( xTriggerLevelBytes ), pdFALSE, NULL, NULL )
|
||||||
|
/** @endcond */
|
||||||
|
|
||||||
#if ( configUSE_SB_COMPLETED_CALLBACK == 1 )
|
#if ( configUSE_SB_COMPLETED_CALLBACK == 1 )
|
||||||
#define xStreamBufferCreateWithCallback( xBufferSizeBytes, xTriggerLevelBytes, pxSendCompletedCallback, pxReceiveCompletedCallback ) \
|
#define xStreamBufferCreateWithCallback( xBufferSizeBytes, xTriggerLevelBytes, pxSendCompletedCallback, pxReceiveCompletedCallback ) \
|
||||||
@ -167,14 +163,6 @@ typedef void (* StreamBufferCallbackFunction_t)( StreamBufferHandle_t xStreamBuf
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* stream_buffer.h
|
|
||||||
*
|
|
||||||
* @code{c}
|
|
||||||
* StreamBufferHandle_t xStreamBufferCreateStatic( size_t xBufferSizeBytes,
|
|
||||||
* size_t xTriggerLevelBytes,
|
|
||||||
* uint8_t *pucStreamBufferStorageArea,
|
|
||||||
* StaticStreamBuffer_t *pxStaticStreamBuffer );
|
|
||||||
* @endcode
|
|
||||||
* Creates a new stream buffer using statically allocated memory. See
|
* Creates a new stream buffer using statically allocated memory. See
|
||||||
* xStreamBufferCreate() for a version that uses dynamically allocated memory.
|
* xStreamBufferCreate() for a version that uses dynamically allocated memory.
|
||||||
*
|
*
|
||||||
@ -252,12 +240,13 @@ typedef void (* StreamBufferCallbackFunction_t)( StreamBufferHandle_t xStreamBuf
|
|||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xStreamBufferCreateStatic xStreamBufferCreateStatic
|
|
||||||
* \ingroup StreamBufferManagement
|
* \ingroup StreamBufferManagement
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** @cond !DOC_EXCLUDE_HEADER_SECTION */
|
||||||
#define xStreamBufferCreateStatic( xBufferSizeBytes, xTriggerLevelBytes, pucStreamBufferStorageArea, pxStaticStreamBuffer ) \
|
#define xStreamBufferCreateStatic( xBufferSizeBytes, xTriggerLevelBytes, pucStreamBufferStorageArea, pxStaticStreamBuffer ) \
|
||||||
xStreamBufferGenericCreateStatic( ( xBufferSizeBytes ), ( xTriggerLevelBytes ), pdFALSE, ( pucStreamBufferStorageArea ), ( pxStaticStreamBuffer ), NULL, NULL )
|
xStreamBufferGenericCreateStatic( ( xBufferSizeBytes ), ( xTriggerLevelBytes ), pdFALSE, ( pucStreamBufferStorageArea ), ( pxStaticStreamBuffer ), NULL, NULL )
|
||||||
|
/** @endcond */
|
||||||
|
|
||||||
#if ( configUSE_SB_COMPLETED_CALLBACK == 1 )
|
#if ( configUSE_SB_COMPLETED_CALLBACK == 1 )
|
||||||
#define xStreamBufferCreateStaticWithCallback( xBufferSizeBytes, xTriggerLevelBytes, pucStreamBufferStorageArea, pxStaticStreamBuffer, pxSendCompletedCallback, pxReceiveCompletedCallback ) \
|
#define xStreamBufferCreateStaticWithCallback( xBufferSizeBytes, xTriggerLevelBytes, pucStreamBufferStorageArea, pxStaticStreamBuffer, pxSendCompletedCallback, pxReceiveCompletedCallback ) \
|
||||||
@ -265,13 +254,6 @@ typedef void (* StreamBufferCallbackFunction_t)( StreamBufferHandle_t xStreamBuf
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* stream_buffer.h
|
|
||||||
*
|
|
||||||
* @code{c}
|
|
||||||
* BaseType_t xStreamBufferGetStaticBuffers( StreamBufferHandle_t xStreamBuffer,
|
|
||||||
* uint8_t ** ppucStreamBufferStorageArea,
|
|
||||||
* StaticStreamBuffer_t ** ppxStaticStreamBuffer );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Retrieve pointers to a statically created stream buffer's data structure
|
* Retrieve pointers to a statically created stream buffer's data structure
|
||||||
* buffer and storage area buffer. These are the same buffers that are supplied
|
* buffer and storage area buffer. These are the same buffers that are supplied
|
||||||
@ -287,7 +269,6 @@ typedef void (* StreamBufferCallbackFunction_t)( StreamBufferHandle_t xStreamBuf
|
|||||||
*
|
*
|
||||||
* @return pdTRUE if buffers were retrieved, pdFALSE otherwise.
|
* @return pdTRUE if buffers were retrieved, pdFALSE otherwise.
|
||||||
*
|
*
|
||||||
* \defgroup xStreamBufferGetStaticBuffers xStreamBufferGetStaticBuffers
|
|
||||||
* \ingroup StreamBufferManagement
|
* \ingroup StreamBufferManagement
|
||||||
*/
|
*/
|
||||||
#if ( configSUPPORT_STATIC_ALLOCATION == 1 )
|
#if ( configSUPPORT_STATIC_ALLOCATION == 1 )
|
||||||
@ -297,14 +278,6 @@ typedef void (* StreamBufferCallbackFunction_t)( StreamBufferHandle_t xStreamBuf
|
|||||||
#endif /* configSUPPORT_STATIC_ALLOCATION */
|
#endif /* configSUPPORT_STATIC_ALLOCATION */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* stream_buffer.h
|
|
||||||
*
|
|
||||||
* @code{c}
|
|
||||||
* size_t xStreamBufferSend( StreamBufferHandle_t xStreamBuffer,
|
|
||||||
* const void *pvTxData,
|
|
||||||
* size_t xDataLengthBytes,
|
|
||||||
* TickType_t xTicksToWait );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Sends bytes to a stream buffer. The bytes are copied into the stream buffer.
|
* Sends bytes to a stream buffer. The bytes are copied into the stream buffer.
|
||||||
*
|
*
|
||||||
@ -385,7 +358,6 @@ typedef void (* StreamBufferCallbackFunction_t)( StreamBufferHandle_t xStreamBuf
|
|||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xStreamBufferSend xStreamBufferSend
|
|
||||||
* \ingroup StreamBufferManagement
|
* \ingroup StreamBufferManagement
|
||||||
*/
|
*/
|
||||||
size_t xStreamBufferSend( StreamBufferHandle_t xStreamBuffer,
|
size_t xStreamBufferSend( StreamBufferHandle_t xStreamBuffer,
|
||||||
@ -394,14 +366,6 @@ size_t xStreamBufferSend( StreamBufferHandle_t xStreamBuffer,
|
|||||||
TickType_t xTicksToWait ) PRIVILEGED_FUNCTION;
|
TickType_t xTicksToWait ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* stream_buffer.h
|
|
||||||
*
|
|
||||||
* @code{c}
|
|
||||||
* size_t xStreamBufferSendFromISR( StreamBufferHandle_t xStreamBuffer,
|
|
||||||
* const void *pvTxData,
|
|
||||||
* size_t xDataLengthBytes,
|
|
||||||
* BaseType_t *pxHigherPriorityTaskWoken );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Interrupt safe version of the API function that sends a stream of bytes to
|
* Interrupt safe version of the API function that sends a stream of bytes to
|
||||||
* the stream buffer.
|
* the stream buffer.
|
||||||
@ -486,7 +450,6 @@ size_t xStreamBufferSend( StreamBufferHandle_t xStreamBuffer,
|
|||||||
* portYIELD_FROM_ISR( xHigherPriorityTaskWoken );
|
* portYIELD_FROM_ISR( xHigherPriorityTaskWoken );
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xStreamBufferSendFromISR xStreamBufferSendFromISR
|
|
||||||
* \ingroup StreamBufferManagement
|
* \ingroup StreamBufferManagement
|
||||||
*/
|
*/
|
||||||
size_t xStreamBufferSendFromISR( StreamBufferHandle_t xStreamBuffer,
|
size_t xStreamBufferSendFromISR( StreamBufferHandle_t xStreamBuffer,
|
||||||
@ -495,14 +458,6 @@ size_t xStreamBufferSendFromISR( StreamBufferHandle_t xStreamBuffer,
|
|||||||
BaseType_t * const pxHigherPriorityTaskWoken ) PRIVILEGED_FUNCTION;
|
BaseType_t * const pxHigherPriorityTaskWoken ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* stream_buffer.h
|
|
||||||
*
|
|
||||||
* @code{c}
|
|
||||||
* size_t xStreamBufferReceive( StreamBufferHandle_t xStreamBuffer,
|
|
||||||
* void *pvRxData,
|
|
||||||
* size_t xBufferLengthBytes,
|
|
||||||
* TickType_t xTicksToWait );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Receives bytes from a stream buffer.
|
* Receives bytes from a stream buffer.
|
||||||
*
|
*
|
||||||
@ -575,7 +530,6 @@ size_t xStreamBufferSendFromISR( StreamBufferHandle_t xStreamBuffer,
|
|||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xStreamBufferReceive xStreamBufferReceive
|
|
||||||
* \ingroup StreamBufferManagement
|
* \ingroup StreamBufferManagement
|
||||||
*/
|
*/
|
||||||
size_t xStreamBufferReceive( StreamBufferHandle_t xStreamBuffer,
|
size_t xStreamBufferReceive( StreamBufferHandle_t xStreamBuffer,
|
||||||
@ -584,14 +538,6 @@ size_t xStreamBufferReceive( StreamBufferHandle_t xStreamBuffer,
|
|||||||
TickType_t xTicksToWait ) PRIVILEGED_FUNCTION;
|
TickType_t xTicksToWait ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* stream_buffer.h
|
|
||||||
*
|
|
||||||
* @code{c}
|
|
||||||
* size_t xStreamBufferReceiveFromISR( StreamBufferHandle_t xStreamBuffer,
|
|
||||||
* void *pvRxData,
|
|
||||||
* size_t xBufferLengthBytes,
|
|
||||||
* BaseType_t *pxHigherPriorityTaskWoken );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* An interrupt safe version of the API function that receives bytes from a
|
* An interrupt safe version of the API function that receives bytes from a
|
||||||
* stream buffer.
|
* stream buffer.
|
||||||
@ -661,7 +607,6 @@ size_t xStreamBufferReceive( StreamBufferHandle_t xStreamBuffer,
|
|||||||
* portYIELD_FROM_ISR( xHigherPriorityTaskWoken );
|
* portYIELD_FROM_ISR( xHigherPriorityTaskWoken );
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
* \defgroup xStreamBufferReceiveFromISR xStreamBufferReceiveFromISR
|
|
||||||
* \ingroup StreamBufferManagement
|
* \ingroup StreamBufferManagement
|
||||||
*/
|
*/
|
||||||
size_t xStreamBufferReceiveFromISR( StreamBufferHandle_t xStreamBuffer,
|
size_t xStreamBufferReceiveFromISR( StreamBufferHandle_t xStreamBuffer,
|
||||||
@ -670,11 +615,6 @@ size_t xStreamBufferReceiveFromISR( StreamBufferHandle_t xStreamBuffer,
|
|||||||
BaseType_t * const pxHigherPriorityTaskWoken ) PRIVILEGED_FUNCTION;
|
BaseType_t * const pxHigherPriorityTaskWoken ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* stream_buffer.h
|
|
||||||
*
|
|
||||||
* @code{c}
|
|
||||||
* void vStreamBufferDelete( StreamBufferHandle_t xStreamBuffer );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Deletes a stream buffer that was previously created using a call to
|
* Deletes a stream buffer that was previously created using a call to
|
||||||
* xStreamBufferCreate() or xStreamBufferCreateStatic(). If the stream
|
* xStreamBufferCreate() or xStreamBufferCreateStatic(). If the stream
|
||||||
@ -686,17 +626,11 @@ size_t xStreamBufferReceiveFromISR( StreamBufferHandle_t xStreamBuffer,
|
|||||||
*
|
*
|
||||||
* @param xStreamBuffer The handle of the stream buffer to be deleted.
|
* @param xStreamBuffer The handle of the stream buffer to be deleted.
|
||||||
*
|
*
|
||||||
* \defgroup vStreamBufferDelete vStreamBufferDelete
|
|
||||||
* \ingroup StreamBufferManagement
|
* \ingroup StreamBufferManagement
|
||||||
*/
|
*/
|
||||||
void vStreamBufferDelete( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_FUNCTION;
|
void vStreamBufferDelete( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* stream_buffer.h
|
|
||||||
*
|
|
||||||
* @code{c}
|
|
||||||
* BaseType_t xStreamBufferIsFull( StreamBufferHandle_t xStreamBuffer );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Queries a stream buffer to see if it is full. A stream buffer is full if it
|
* Queries a stream buffer to see if it is full. A stream buffer is full if it
|
||||||
* does not have any free space, and therefore cannot accept any more data.
|
* does not have any free space, and therefore cannot accept any more data.
|
||||||
@ -706,17 +640,11 @@ void vStreamBufferDelete( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_FUNCTI
|
|||||||
* @return If the stream buffer is full then pdTRUE is returned. Otherwise
|
* @return If the stream buffer is full then pdTRUE is returned. Otherwise
|
||||||
* pdFALSE is returned.
|
* pdFALSE is returned.
|
||||||
*
|
*
|
||||||
* \defgroup xStreamBufferIsFull xStreamBufferIsFull
|
|
||||||
* \ingroup StreamBufferManagement
|
* \ingroup StreamBufferManagement
|
||||||
*/
|
*/
|
||||||
BaseType_t xStreamBufferIsFull( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_FUNCTION;
|
BaseType_t xStreamBufferIsFull( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* stream_buffer.h
|
|
||||||
*
|
|
||||||
* @code{c}
|
|
||||||
* BaseType_t xStreamBufferIsEmpty( StreamBufferHandle_t xStreamBuffer );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Queries a stream buffer to see if it is empty. A stream buffer is empty if
|
* Queries a stream buffer to see if it is empty. A stream buffer is empty if
|
||||||
* it does not contain any data.
|
* it does not contain any data.
|
||||||
@ -726,17 +654,11 @@ BaseType_t xStreamBufferIsFull( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_
|
|||||||
* @return If the stream buffer is empty then pdTRUE is returned. Otherwise
|
* @return If the stream buffer is empty then pdTRUE is returned. Otherwise
|
||||||
* pdFALSE is returned.
|
* pdFALSE is returned.
|
||||||
*
|
*
|
||||||
* \defgroup xStreamBufferIsEmpty xStreamBufferIsEmpty
|
|
||||||
* \ingroup StreamBufferManagement
|
* \ingroup StreamBufferManagement
|
||||||
*/
|
*/
|
||||||
BaseType_t xStreamBufferIsEmpty( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_FUNCTION;
|
BaseType_t xStreamBufferIsEmpty( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* stream_buffer.h
|
|
||||||
*
|
|
||||||
* @code{c}
|
|
||||||
* BaseType_t xStreamBufferReset( StreamBufferHandle_t xStreamBuffer );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Resets a stream buffer to its initial, empty, state. Any data that was in
|
* Resets a stream buffer to its initial, empty, state. Any data that was in
|
||||||
* the stream buffer is discarded. A stream buffer can only be reset if there
|
* the stream buffer is discarded. A stream buffer can only be reset if there
|
||||||
@ -749,17 +671,11 @@ BaseType_t xStreamBufferIsEmpty( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED
|
|||||||
* a task blocked waiting to send to or read from the stream buffer then the
|
* a task blocked waiting to send to or read from the stream buffer then the
|
||||||
* stream buffer is not reset and pdFAIL is returned.
|
* stream buffer is not reset and pdFAIL is returned.
|
||||||
*
|
*
|
||||||
* \defgroup xStreamBufferReset xStreamBufferReset
|
|
||||||
* \ingroup StreamBufferManagement
|
* \ingroup StreamBufferManagement
|
||||||
*/
|
*/
|
||||||
BaseType_t xStreamBufferReset( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_FUNCTION;
|
BaseType_t xStreamBufferReset( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* stream_buffer.h
|
|
||||||
*
|
|
||||||
* @code{c}
|
|
||||||
* size_t xStreamBufferSpacesAvailable( StreamBufferHandle_t xStreamBuffer );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Queries a stream buffer to see how much free space it contains, which is
|
* Queries a stream buffer to see how much free space it contains, which is
|
||||||
* equal to the amount of data that can be sent to the stream buffer before it
|
* equal to the amount of data that can be sent to the stream buffer before it
|
||||||
@ -770,17 +686,11 @@ BaseType_t xStreamBufferReset( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_F
|
|||||||
* @return The number of bytes that can be written to the stream buffer before
|
* @return The number of bytes that can be written to the stream buffer before
|
||||||
* the stream buffer would be full.
|
* the stream buffer would be full.
|
||||||
*
|
*
|
||||||
* \defgroup xStreamBufferSpacesAvailable xStreamBufferSpacesAvailable
|
|
||||||
* \ingroup StreamBufferManagement
|
* \ingroup StreamBufferManagement
|
||||||
*/
|
*/
|
||||||
size_t xStreamBufferSpacesAvailable( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_FUNCTION;
|
size_t xStreamBufferSpacesAvailable( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* stream_buffer.h
|
|
||||||
*
|
|
||||||
* @code{c}
|
|
||||||
* size_t xStreamBufferBytesAvailable( StreamBufferHandle_t xStreamBuffer );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* Queries a stream buffer to see how much data it contains, which is equal to
|
* Queries a stream buffer to see how much data it contains, which is equal to
|
||||||
* the number of bytes that can be read from the stream buffer before the stream
|
* the number of bytes that can be read from the stream buffer before the stream
|
||||||
@ -791,17 +701,11 @@ size_t xStreamBufferSpacesAvailable( StreamBufferHandle_t xStreamBuffer ) PRIVIL
|
|||||||
* @return The number of bytes that can be read from the stream buffer before
|
* @return The number of bytes that can be read from the stream buffer before
|
||||||
* the stream buffer would be empty.
|
* the stream buffer would be empty.
|
||||||
*
|
*
|
||||||
* \defgroup xStreamBufferBytesAvailable xStreamBufferBytesAvailable
|
|
||||||
* \ingroup StreamBufferManagement
|
* \ingroup StreamBufferManagement
|
||||||
*/
|
*/
|
||||||
size_t xStreamBufferBytesAvailable( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_FUNCTION;
|
size_t xStreamBufferBytesAvailable( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* stream_buffer.h
|
|
||||||
*
|
|
||||||
* @code{c}
|
|
||||||
* BaseType_t xStreamBufferSetTriggerLevel( StreamBufferHandle_t xStreamBuffer, size_t xTriggerLevel );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* A stream buffer's trigger level is the number of bytes that must be in the
|
* A stream buffer's trigger level is the number of bytes that must be in the
|
||||||
* stream buffer before a task that is blocked on the stream buffer to
|
* stream buffer before a task that is blocked on the stream buffer to
|
||||||
@ -828,18 +732,12 @@ size_t xStreamBufferBytesAvailable( StreamBufferHandle_t xStreamBuffer ) PRIVILE
|
|||||||
* then the trigger level will be updated and pdTRUE is returned. Otherwise
|
* then the trigger level will be updated and pdTRUE is returned. Otherwise
|
||||||
* pdFALSE is returned.
|
* pdFALSE is returned.
|
||||||
*
|
*
|
||||||
* \defgroup xStreamBufferSetTriggerLevel xStreamBufferSetTriggerLevel
|
|
||||||
* \ingroup StreamBufferManagement
|
* \ingroup StreamBufferManagement
|
||||||
*/
|
*/
|
||||||
BaseType_t xStreamBufferSetTriggerLevel( StreamBufferHandle_t xStreamBuffer,
|
BaseType_t xStreamBufferSetTriggerLevel( StreamBufferHandle_t xStreamBuffer,
|
||||||
size_t xTriggerLevel ) PRIVILEGED_FUNCTION;
|
size_t xTriggerLevel ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* stream_buffer.h
|
|
||||||
*
|
|
||||||
* @code{c}
|
|
||||||
* BaseType_t xStreamBufferSendCompletedFromISR( StreamBufferHandle_t xStreamBuffer, BaseType_t *pxHigherPriorityTaskWoken );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* For advanced users only.
|
* For advanced users only.
|
||||||
*
|
*
|
||||||
@ -868,18 +766,12 @@ BaseType_t xStreamBufferSetTriggerLevel( StreamBufferHandle_t xStreamBuffer,
|
|||||||
* @return If a task was removed from the Blocked state then pdTRUE is returned.
|
* @return If a task was removed from the Blocked state then pdTRUE is returned.
|
||||||
* Otherwise pdFALSE is returned.
|
* Otherwise pdFALSE is returned.
|
||||||
*
|
*
|
||||||
* \defgroup xStreamBufferSendCompletedFromISR xStreamBufferSendCompletedFromISR
|
|
||||||
* \ingroup StreamBufferManagement
|
* \ingroup StreamBufferManagement
|
||||||
*/
|
*/
|
||||||
BaseType_t xStreamBufferSendCompletedFromISR( StreamBufferHandle_t xStreamBuffer,
|
BaseType_t xStreamBufferSendCompletedFromISR( StreamBufferHandle_t xStreamBuffer,
|
||||||
BaseType_t * pxHigherPriorityTaskWoken ) PRIVILEGED_FUNCTION;
|
BaseType_t * pxHigherPriorityTaskWoken ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* stream_buffer.h
|
|
||||||
*
|
|
||||||
* @code{c}
|
|
||||||
* BaseType_t xStreamBufferReceiveCompletedFromISR( StreamBufferHandle_t xStreamBuffer, BaseType_t *pxHigherPriorityTaskWoken );
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* For advanced users only.
|
* For advanced users only.
|
||||||
*
|
*
|
||||||
@ -909,12 +801,13 @@ BaseType_t xStreamBufferSendCompletedFromISR( StreamBufferHandle_t xStreamBuffer
|
|||||||
* @return If a task was removed from the Blocked state then pdTRUE is returned.
|
* @return If a task was removed from the Blocked state then pdTRUE is returned.
|
||||||
* Otherwise pdFALSE is returned.
|
* Otherwise pdFALSE is returned.
|
||||||
*
|
*
|
||||||
* \defgroup xStreamBufferReceiveCompletedFromISR xStreamBufferReceiveCompletedFromISR
|
|
||||||
* \ingroup StreamBufferManagement
|
* \ingroup StreamBufferManagement
|
||||||
*/
|
*/
|
||||||
BaseType_t xStreamBufferReceiveCompletedFromISR( StreamBufferHandle_t xStreamBuffer,
|
BaseType_t xStreamBufferReceiveCompletedFromISR( StreamBufferHandle_t xStreamBuffer,
|
||||||
BaseType_t * pxHigherPriorityTaskWoken ) PRIVILEGED_FUNCTION;
|
BaseType_t * pxHigherPriorityTaskWoken ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
|
/** @cond !DOC_EXCLUDE_HEADER_SECTION */
|
||||||
|
|
||||||
/* Functions below here are not part of the public API. */
|
/* Functions below here are not part of the public API. */
|
||||||
StreamBufferHandle_t xStreamBufferGenericCreate( size_t xBufferSizeBytes,
|
StreamBufferHandle_t xStreamBufferGenericCreate( size_t xBufferSizeBytes,
|
||||||
size_t xTriggerLevelBytes,
|
size_t xTriggerLevelBytes,
|
||||||
@ -940,6 +833,8 @@ size_t xStreamBufferNextMessageLengthBytes( StreamBufferHandle_t xStreamBuffer )
|
|||||||
uint8_t ucStreamBufferGetStreamBufferType( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_FUNCTION;
|
uint8_t ucStreamBufferGetStreamBufferType( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_FUNCTION;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/** @endcond */
|
||||||
|
|
||||||
/* *INDENT-OFF* */
|
/* *INDENT-OFF* */
|
||||||
#if defined( __cplusplus )
|
#if defined( __cplusplus )
|
||||||
}
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -53,6 +53,8 @@
|
|||||||
* MACROS AND DEFINITIONS
|
* MACROS AND DEFINITIONS
|
||||||
*----------------------------------------------------------*/
|
*----------------------------------------------------------*/
|
||||||
|
|
||||||
|
/** @cond !DOC_EXCLUDE_HEADER_SECTION */
|
||||||
|
|
||||||
/* IDs for commands that can be sent/received on the timer queue. These are to
|
/* IDs for commands that can be sent/received on the timer queue. These are to
|
||||||
* be used solely through the macros that make up the public software timer API,
|
* be used solely through the macros that make up the public software timer API,
|
||||||
* as defined below. The commands that are sent from interrupts must use the
|
* as defined below. The commands that are sent from interrupts must use the
|
||||||
@ -73,6 +75,7 @@
|
|||||||
#define tmrCOMMAND_STOP_FROM_ISR ( ( BaseType_t ) 8 )
|
#define tmrCOMMAND_STOP_FROM_ISR ( ( BaseType_t ) 8 )
|
||||||
#define tmrCOMMAND_CHANGE_PERIOD_FROM_ISR ( ( BaseType_t ) 9 )
|
#define tmrCOMMAND_CHANGE_PERIOD_FROM_ISR ( ( BaseType_t ) 9 )
|
||||||
|
|
||||||
|
/** @endcond */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Type by which software timers are referenced. For example, a call to
|
* Type by which software timers are referenced. For example, a call to
|
||||||
@ -83,12 +86,12 @@
|
|||||||
struct tmrTimerControl; /* The old naming convention is used to prevent breaking kernel aware debuggers. */
|
struct tmrTimerControl; /* The old naming convention is used to prevent breaking kernel aware debuggers. */
|
||||||
typedef struct tmrTimerControl * TimerHandle_t;
|
typedef struct tmrTimerControl * TimerHandle_t;
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Defines the prototype to which timer callback functions must conform.
|
* Defines the prototype to which timer callback functions must conform.
|
||||||
*/
|
*/
|
||||||
typedef void (* TimerCallbackFunction_t)( TimerHandle_t xTimer );
|
typedef void (* TimerCallbackFunction_t)( TimerHandle_t xTimer );
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Defines the prototype to which functions used with the
|
* Defines the prototype to which functions used with the
|
||||||
* xTimerPendFunctionCallFromISR() function must conform.
|
* xTimerPendFunctionCallFromISR() function must conform.
|
||||||
*/
|
*/
|
||||||
@ -96,11 +99,6 @@ typedef void (* PendedFunction_t)( void *,
|
|||||||
uint32_t );
|
uint32_t );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TimerHandle_t xTimerCreate( const char * const pcTimerName,
|
|
||||||
* TickType_t xTimerPeriodInTicks,
|
|
||||||
* BaseType_t xAutoReload,
|
|
||||||
* void * pvTimerID,
|
|
||||||
* TimerCallbackFunction_t pxCallbackFunction );
|
|
||||||
*
|
*
|
||||||
* Creates a new software timer instance, and returns a handle by which the
|
* Creates a new software timer instance, and returns a handle by which the
|
||||||
* created software timer can be referenced.
|
* created software timer can be referenced.
|
||||||
@ -241,12 +239,6 @@ typedef void (* PendedFunction_t)( void *,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TimerHandle_t xTimerCreateStatic(const char * const pcTimerName,
|
|
||||||
* TickType_t xTimerPeriodInTicks,
|
|
||||||
* BaseType_t xAutoReload,
|
|
||||||
* void * pvTimerID,
|
|
||||||
* TimerCallbackFunction_t pxCallbackFunction,
|
|
||||||
* StaticTimer_t *pxTimerBuffer );
|
|
||||||
*
|
*
|
||||||
* Creates a new software timer instance, and returns a handle by which the
|
* Creates a new software timer instance, and returns a handle by which the
|
||||||
* created software timer can be referenced.
|
* created software timer can be referenced.
|
||||||
@ -372,7 +364,6 @@ typedef void (* PendedFunction_t)( void *,
|
|||||||
#endif /* configSUPPORT_STATIC_ALLOCATION */
|
#endif /* configSUPPORT_STATIC_ALLOCATION */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* void *pvTimerGetTimerID( TimerHandle_t xTimer );
|
|
||||||
*
|
*
|
||||||
* Returns the ID assigned to the timer.
|
* Returns the ID assigned to the timer.
|
||||||
*
|
*
|
||||||
@ -394,7 +385,6 @@ typedef void (* PendedFunction_t)( void *,
|
|||||||
void * pvTimerGetTimerID( const TimerHandle_t xTimer ) PRIVILEGED_FUNCTION;
|
void * pvTimerGetTimerID( const TimerHandle_t xTimer ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* void vTimerSetTimerID( TimerHandle_t xTimer, void *pvNewID );
|
|
||||||
*
|
*
|
||||||
* Sets the ID assigned to the timer.
|
* Sets the ID assigned to the timer.
|
||||||
*
|
*
|
||||||
@ -416,7 +406,6 @@ void vTimerSetTimerID( TimerHandle_t xTimer,
|
|||||||
void * pvNewID ) PRIVILEGED_FUNCTION;
|
void * pvNewID ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BaseType_t xTimerIsTimerActive( TimerHandle_t xTimer );
|
|
||||||
*
|
*
|
||||||
* Queries a timer to see if it is active or dormant.
|
* Queries a timer to see if it is active or dormant.
|
||||||
*
|
*
|
||||||
@ -453,7 +442,6 @@ void vTimerSetTimerID( TimerHandle_t xTimer,
|
|||||||
BaseType_t xTimerIsTimerActive( TimerHandle_t xTimer ) PRIVILEGED_FUNCTION;
|
BaseType_t xTimerIsTimerActive( TimerHandle_t xTimer ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TaskHandle_t xTimerGetTimerDaemonTaskHandle( void );
|
|
||||||
*
|
*
|
||||||
* Simply returns the handle of the timer service/daemon task. It it not valid
|
* Simply returns the handle of the timer service/daemon task. It it not valid
|
||||||
* to call xTimerGetTimerDaemonTaskHandle() before the scheduler has been started.
|
* to call xTimerGetTimerDaemonTaskHandle() before the scheduler has been started.
|
||||||
@ -461,7 +449,6 @@ BaseType_t xTimerIsTimerActive( TimerHandle_t xTimer ) PRIVILEGED_FUNCTION;
|
|||||||
TaskHandle_t xTimerGetTimerDaemonTaskHandle( void ) PRIVILEGED_FUNCTION;
|
TaskHandle_t xTimerGetTimerDaemonTaskHandle( void ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BaseType_t xTimerStart( TimerHandle_t xTimer, TickType_t xTicksToWait );
|
|
||||||
*
|
*
|
||||||
* Timer functionality is provided by a timer service/daemon task. Many of the
|
* Timer functionality is provided by a timer service/daemon task. Many of the
|
||||||
* public FreeRTOS timer API functions send commands to the timer service task
|
* public FreeRTOS timer API functions send commands to the timer service task
|
||||||
@ -514,7 +501,6 @@ TaskHandle_t xTimerGetTimerDaemonTaskHandle( void ) PRIVILEGED_FUNCTION;
|
|||||||
xTimerGenericCommand( ( xTimer ), tmrCOMMAND_START, ( xTaskGetTickCount() ), NULL, ( xTicksToWait ) )
|
xTimerGenericCommand( ( xTimer ), tmrCOMMAND_START, ( xTaskGetTickCount() ), NULL, ( xTicksToWait ) )
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BaseType_t xTimerStop( TimerHandle_t xTimer, TickType_t xTicksToWait );
|
|
||||||
*
|
*
|
||||||
* Timer functionality is provided by a timer service/daemon task. Many of the
|
* Timer functionality is provided by a timer service/daemon task. Many of the
|
||||||
* public FreeRTOS timer API functions send commands to the timer service task
|
* public FreeRTOS timer API functions send commands to the timer service task
|
||||||
@ -557,9 +543,6 @@ TaskHandle_t xTimerGetTimerDaemonTaskHandle( void ) PRIVILEGED_FUNCTION;
|
|||||||
xTimerGenericCommand( ( xTimer ), tmrCOMMAND_STOP, 0U, NULL, ( xTicksToWait ) )
|
xTimerGenericCommand( ( xTimer ), tmrCOMMAND_STOP, 0U, NULL, ( xTicksToWait ) )
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BaseType_t xTimerChangePeriod( TimerHandle_t xTimer,
|
|
||||||
* TickType_t xNewPeriod,
|
|
||||||
* TickType_t xTicksToWait );
|
|
||||||
*
|
*
|
||||||
* Timer functionality is provided by a timer service/daemon task. Many of the
|
* Timer functionality is provided by a timer service/daemon task. Many of the
|
||||||
* public FreeRTOS timer API functions send commands to the timer service task
|
* public FreeRTOS timer API functions send commands to the timer service task
|
||||||
@ -638,7 +621,6 @@ TaskHandle_t xTimerGetTimerDaemonTaskHandle( void ) PRIVILEGED_FUNCTION;
|
|||||||
xTimerGenericCommand( ( xTimer ), tmrCOMMAND_CHANGE_PERIOD, ( xNewPeriod ), NULL, ( xTicksToWait ) )
|
xTimerGenericCommand( ( xTimer ), tmrCOMMAND_CHANGE_PERIOD, ( xNewPeriod ), NULL, ( xTicksToWait ) )
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BaseType_t xTimerDelete( TimerHandle_t xTimer, TickType_t xTicksToWait );
|
|
||||||
*
|
*
|
||||||
* Timer functionality is provided by a timer service/daemon task. Many of the
|
* Timer functionality is provided by a timer service/daemon task. Many of the
|
||||||
* public FreeRTOS timer API functions send commands to the timer service task
|
* public FreeRTOS timer API functions send commands to the timer service task
|
||||||
@ -677,7 +659,6 @@ TaskHandle_t xTimerGetTimerDaemonTaskHandle( void ) PRIVILEGED_FUNCTION;
|
|||||||
xTimerGenericCommand( ( xTimer ), tmrCOMMAND_DELETE, 0U, NULL, ( xTicksToWait ) )
|
xTimerGenericCommand( ( xTimer ), tmrCOMMAND_DELETE, 0U, NULL, ( xTicksToWait ) )
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BaseType_t xTimerReset( TimerHandle_t xTimer, TickType_t xTicksToWait );
|
|
||||||
*
|
*
|
||||||
* Timer functionality is provided by a timer service/daemon task. Many of the
|
* Timer functionality is provided by a timer service/daemon task. Many of the
|
||||||
* public FreeRTOS timer API functions send commands to the timer service task
|
* public FreeRTOS timer API functions send commands to the timer service task
|
||||||
@ -802,8 +783,6 @@ TaskHandle_t xTimerGetTimerDaemonTaskHandle( void ) PRIVILEGED_FUNCTION;
|
|||||||
xTimerGenericCommand( ( xTimer ), tmrCOMMAND_RESET, ( xTaskGetTickCount() ), NULL, ( xTicksToWait ) )
|
xTimerGenericCommand( ( xTimer ), tmrCOMMAND_RESET, ( xTaskGetTickCount() ), NULL, ( xTicksToWait ) )
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BaseType_t xTimerStartFromISR( TimerHandle_t xTimer,
|
|
||||||
* BaseType_t *pxHigherPriorityTaskWoken );
|
|
||||||
*
|
*
|
||||||
* A version of xTimerStart() that can be called from an interrupt service
|
* A version of xTimerStart() that can be called from an interrupt service
|
||||||
* routine.
|
* routine.
|
||||||
@ -889,8 +868,6 @@ TaskHandle_t xTimerGetTimerDaemonTaskHandle( void ) PRIVILEGED_FUNCTION;
|
|||||||
xTimerGenericCommand( ( xTimer ), tmrCOMMAND_START_FROM_ISR, ( xTaskGetTickCountFromISR() ), ( pxHigherPriorityTaskWoken ), 0U )
|
xTimerGenericCommand( ( xTimer ), tmrCOMMAND_START_FROM_ISR, ( xTaskGetTickCountFromISR() ), ( pxHigherPriorityTaskWoken ), 0U )
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BaseType_t xTimerStopFromISR( TimerHandle_t xTimer,
|
|
||||||
* BaseType_t *pxHigherPriorityTaskWoken );
|
|
||||||
*
|
*
|
||||||
* A version of xTimerStop() that can be called from an interrupt service
|
* A version of xTimerStop() that can be called from an interrupt service
|
||||||
* routine.
|
* routine.
|
||||||
@ -953,9 +930,6 @@ TaskHandle_t xTimerGetTimerDaemonTaskHandle( void ) PRIVILEGED_FUNCTION;
|
|||||||
xTimerGenericCommand( ( xTimer ), tmrCOMMAND_STOP_FROM_ISR, 0, ( pxHigherPriorityTaskWoken ), 0U )
|
xTimerGenericCommand( ( xTimer ), tmrCOMMAND_STOP_FROM_ISR, 0, ( pxHigherPriorityTaskWoken ), 0U )
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BaseType_t xTimerChangePeriodFromISR( TimerHandle_t xTimer,
|
|
||||||
* TickType_t xNewPeriod,
|
|
||||||
* BaseType_t *pxHigherPriorityTaskWoken );
|
|
||||||
*
|
*
|
||||||
* A version of xTimerChangePeriod() that can be called from an interrupt
|
* A version of xTimerChangePeriod() that can be called from an interrupt
|
||||||
* service routine.
|
* service routine.
|
||||||
@ -1027,8 +1001,6 @@ TaskHandle_t xTimerGetTimerDaemonTaskHandle( void ) PRIVILEGED_FUNCTION;
|
|||||||
xTimerGenericCommand( ( xTimer ), tmrCOMMAND_CHANGE_PERIOD_FROM_ISR, ( xNewPeriod ), ( pxHigherPriorityTaskWoken ), 0U )
|
xTimerGenericCommand( ( xTimer ), tmrCOMMAND_CHANGE_PERIOD_FROM_ISR, ( xNewPeriod ), ( pxHigherPriorityTaskWoken ), 0U )
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BaseType_t xTimerResetFromISR( TimerHandle_t xTimer,
|
|
||||||
* BaseType_t *pxHigherPriorityTaskWoken );
|
|
||||||
*
|
*
|
||||||
* A version of xTimerReset() that can be called from an interrupt service
|
* A version of xTimerReset() that can be called from an interrupt service
|
||||||
* routine.
|
* routine.
|
||||||
@ -1115,10 +1087,6 @@ TaskHandle_t xTimerGetTimerDaemonTaskHandle( void ) PRIVILEGED_FUNCTION;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BaseType_t xTimerPendFunctionCallFromISR( PendedFunction_t xFunctionToPend,
|
|
||||||
* void *pvParameter1,
|
|
||||||
* uint32_t ulParameter2,
|
|
||||||
* BaseType_t *pxHigherPriorityTaskWoken );
|
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* Used from application interrupt service routines to defer the execution of a
|
* Used from application interrupt service routines to defer the execution of a
|
||||||
@ -1208,10 +1176,6 @@ BaseType_t xTimerPendFunctionCallFromISR( PendedFunction_t xFunctionToPend,
|
|||||||
BaseType_t * pxHigherPriorityTaskWoken ) PRIVILEGED_FUNCTION;
|
BaseType_t * pxHigherPriorityTaskWoken ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BaseType_t xTimerPendFunctionCall( PendedFunction_t xFunctionToPend,
|
|
||||||
* void *pvParameter1,
|
|
||||||
* uint32_t ulParameter2,
|
|
||||||
* TickType_t xTicksToWait );
|
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* Used to defer the execution of a function to the RTOS daemon task (the timer
|
* Used to defer the execution of a function to the RTOS daemon task (the timer
|
||||||
@ -1245,7 +1209,6 @@ BaseType_t xTimerPendFunctionCall( PendedFunction_t xFunctionToPend,
|
|||||||
TickType_t xTicksToWait ) PRIVILEGED_FUNCTION;
|
TickType_t xTicksToWait ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* const char * const pcTimerGetName( TimerHandle_t xTimer );
|
|
||||||
*
|
*
|
||||||
* Returns the name that was assigned to a timer when the timer was created.
|
* Returns the name that was assigned to a timer when the timer was created.
|
||||||
*
|
*
|
||||||
@ -1256,7 +1219,6 @@ BaseType_t xTimerPendFunctionCall( PendedFunction_t xFunctionToPend,
|
|||||||
const char * pcTimerGetName( TimerHandle_t xTimer ) PRIVILEGED_FUNCTION; /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
|
const char * pcTimerGetName( TimerHandle_t xTimer ) PRIVILEGED_FUNCTION; /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* void vTimerSetReloadMode( TimerHandle_t xTimer, const BaseType_t xAutoReload );
|
|
||||||
*
|
*
|
||||||
* Updates a timer to be either an auto-reload timer, in which case the timer
|
* Updates a timer to be either an auto-reload timer, in which case the timer
|
||||||
* automatically resets itself each time it expires, or a one-shot timer, in
|
* automatically resets itself each time it expires, or a one-shot timer, in
|
||||||
@ -1274,7 +1236,6 @@ void vTimerSetReloadMode( TimerHandle_t xTimer,
|
|||||||
const BaseType_t xAutoReload ) PRIVILEGED_FUNCTION;
|
const BaseType_t xAutoReload ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BaseType_t xTimerGetReloadMode( TimerHandle_t xTimer );
|
|
||||||
*
|
*
|
||||||
* Queries a timer to determine if it is an auto-reload timer, in which case the timer
|
* Queries a timer to determine if it is an auto-reload timer, in which case the timer
|
||||||
* automatically resets itself each time it expires, or a one-shot timer, in
|
* automatically resets itself each time it expires, or a one-shot timer, in
|
||||||
@ -1288,7 +1249,6 @@ void vTimerSetReloadMode( TimerHandle_t xTimer,
|
|||||||
BaseType_t xTimerGetReloadMode( TimerHandle_t xTimer ) PRIVILEGED_FUNCTION;
|
BaseType_t xTimerGetReloadMode( TimerHandle_t xTimer ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* UBaseType_t uxTimerGetReloadMode( TimerHandle_t xTimer );
|
|
||||||
*
|
*
|
||||||
* Queries a timer to determine if it is an auto-reload timer, in which case the timer
|
* Queries a timer to determine if it is an auto-reload timer, in which case the timer
|
||||||
* automatically resets itself each time it expires, or a one-shot timer, in
|
* automatically resets itself each time it expires, or a one-shot timer, in
|
||||||
@ -1302,7 +1262,6 @@ BaseType_t xTimerGetReloadMode( TimerHandle_t xTimer ) PRIVILEGED_FUNCTION;
|
|||||||
UBaseType_t uxTimerGetReloadMode( TimerHandle_t xTimer ) PRIVILEGED_FUNCTION;
|
UBaseType_t uxTimerGetReloadMode( TimerHandle_t xTimer ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TickType_t xTimerGetPeriod( TimerHandle_t xTimer );
|
|
||||||
*
|
*
|
||||||
* Returns the period of a timer.
|
* Returns the period of a timer.
|
||||||
*
|
*
|
||||||
@ -1313,7 +1272,6 @@ UBaseType_t uxTimerGetReloadMode( TimerHandle_t xTimer ) PRIVILEGED_FUNCTION;
|
|||||||
TickType_t xTimerGetPeriod( TimerHandle_t xTimer ) PRIVILEGED_FUNCTION;
|
TickType_t xTimerGetPeriod( TimerHandle_t xTimer ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TickType_t xTimerGetExpiryTime( TimerHandle_t xTimer );
|
|
||||||
*
|
*
|
||||||
* Returns the time in ticks at which the timer will expire. If this is less
|
* Returns the time in ticks at which the timer will expire. If this is less
|
||||||
* than the current tick count then the expiry time has overflowed from the
|
* than the current tick count then the expiry time has overflowed from the
|
||||||
@ -1328,8 +1286,6 @@ TickType_t xTimerGetPeriod( TimerHandle_t xTimer ) PRIVILEGED_FUNCTION;
|
|||||||
TickType_t xTimerGetExpiryTime( TimerHandle_t xTimer ) PRIVILEGED_FUNCTION;
|
TickType_t xTimerGetExpiryTime( TimerHandle_t xTimer ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BaseType_t xTimerGetStaticBuffer( TimerHandle_t xTimer,
|
|
||||||
* StaticTimer_t ** ppxTimerBuffer );
|
|
||||||
*
|
*
|
||||||
* Retrieve pointer to a statically created timer's data structure
|
* Retrieve pointer to a statically created timer's data structure
|
||||||
* buffer. This is the same buffer that is supplied at the time of
|
* buffer. This is the same buffer that is supplied at the time of
|
||||||
@ -1337,7 +1293,7 @@ TickType_t xTimerGetExpiryTime( TimerHandle_t xTimer ) PRIVILEGED_FUNCTION;
|
|||||||
*
|
*
|
||||||
* @param xTimer The timer for which to retrieve the buffer.
|
* @param xTimer The timer for which to retrieve the buffer.
|
||||||
*
|
*
|
||||||
* @param ppxTaskBuffer Used to return a pointer to the timers's data
|
* @param ppxTimerBuffer Used to return a pointer to the timers's data
|
||||||
* structure buffer.
|
* structure buffer.
|
||||||
*
|
*
|
||||||
* @return pdTRUE if the buffer was retrieved, pdFALSE otherwise.
|
* @return pdTRUE if the buffer was retrieved, pdFALSE otherwise.
|
||||||
@ -1347,6 +1303,8 @@ TickType_t xTimerGetExpiryTime( TimerHandle_t xTimer ) PRIVILEGED_FUNCTION;
|
|||||||
StaticTimer_t ** ppxTimerBuffer ) PRIVILEGED_FUNCTION;
|
StaticTimer_t ** ppxTimerBuffer ) PRIVILEGED_FUNCTION;
|
||||||
#endif /* configSUPPORT_STATIC_ALLOCATION */
|
#endif /* configSUPPORT_STATIC_ALLOCATION */
|
||||||
|
|
||||||
|
/** @cond !DOC_EXCLUDE_HEADER_SECTION */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Functions beyond this part are not part of the public API and are intended
|
* Functions beyond this part are not part of the public API and are intended
|
||||||
* for use by the kernel only.
|
* for use by the kernel only.
|
||||||
@ -1364,13 +1322,11 @@ BaseType_t xTimerGenericCommand( TimerHandle_t xTimer,
|
|||||||
UBaseType_t uxTimerGetTimerNumber( TimerHandle_t xTimer ) PRIVILEGED_FUNCTION;
|
UBaseType_t uxTimerGetTimerNumber( TimerHandle_t xTimer ) PRIVILEGED_FUNCTION;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/** @endcond */
|
||||||
|
|
||||||
#if ( configSUPPORT_STATIC_ALLOCATION == 1 )
|
#if ( configSUPPORT_STATIC_ALLOCATION == 1 )
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* task.h
|
|
||||||
* @code{c}
|
|
||||||
* void vApplicationGetTimerTaskMemory( StaticTask_t ** ppxTimerTaskTCBBuffer, StackType_t ** ppxTimerTaskStackBuffer, uint32_t *pulTimerTaskStackSize )
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* This function is used to provide a statically allocated block of memory to FreeRTOS to hold the Timer Task TCB. This function is required when
|
* This function is used to provide a statically allocated block of memory to FreeRTOS to hold the Timer Task TCB. This function is required when
|
||||||
* configSUPPORT_STATIC_ALLOCATION is set. For more information see this URI: https://www.FreeRTOS.org/a00110.html#configSUPPORT_STATIC_ALLOCATION
|
* configSUPPORT_STATIC_ALLOCATION is set. For more information see this URI: https://www.FreeRTOS.org/a00110.html#configSUPPORT_STATIC_ALLOCATION
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
semphr.h:line: warning: argument 'pxStaticSemaphore' of command @param is not found in the argument list of xSemaphoreCreateCounting(uxMaxCount, uxInitialCount)
|
|
||||||
task.h:line: warning: argument 'pxTaskDefinition' of command @param is not found in the argument list of vTaskAllocateMPURegions(TaskHandle_t xTask, const MemoryRegion_t *const pxRegions)
|
|
||||||
task.h:line: warning: argument 'pxCreatedTask' of command @param is not found in the argument list of vTaskAllocateMPURegions(TaskHandle_t xTask, const MemoryRegion_t *const pxRegions)
|
|
||||||
task.h:line: warning: argument 'pxTaskDefinition' of command @param is not found in the argument list of vTaskAllocateMPURegions(TaskHandle_t xTask, const MemoryRegion_t *const pxRegions)
|
|
||||||
task.h:line: warning: argument 'pxCreatedTask' of command @param is not found in the argument list of vTaskAllocateMPURegions(TaskHandle_t xTask, const MemoryRegion_t *const pxRegions)
|
|
@ -319,11 +319,13 @@ PREDEFINED = \
|
|||||||
configSUPPORT_DYNAMIC_ALLOCATION=1 \
|
configSUPPORT_DYNAMIC_ALLOCATION=1 \
|
||||||
configSUPPORT_STATIC_ALLOCATION=1 \
|
configSUPPORT_STATIC_ALLOCATION=1 \
|
||||||
configQUEUE_REGISTRY_SIZE=1 \
|
configQUEUE_REGISTRY_SIZE=1 \
|
||||||
|
configUSE_MUTEXES=1 \
|
||||||
configUSE_RECURSIVE_MUTEXES=1 \
|
configUSE_RECURSIVE_MUTEXES=1 \
|
||||||
configTHREAD_LOCAL_STORAGE_DELETE_CALLBACKS=1 \
|
configTHREAD_LOCAL_STORAGE_DELETE_CALLBACKS=1 \
|
||||||
configNUM_THREAD_LOCAL_STORAGE_POINTERS=1 \
|
configNUM_THREAD_LOCAL_STORAGE_POINTERS=1 \
|
||||||
configUSE_APPLICATION_TASK_TAG=1 \
|
configUSE_APPLICATION_TASK_TAG=1 \
|
||||||
configTASKLIST_INCLUDE_COREID=1 \
|
configTASKLIST_INCLUDE_COREID=1 \
|
||||||
|
configUSE_SB_COMPLETED_CALLBACK=1 \
|
||||||
PRIVILEGED_FUNCTION= \
|
PRIVILEGED_FUNCTION= \
|
||||||
"ESP_EVENT_DECLARE_BASE(x)=extern esp_event_base_t x"
|
"ESP_EVENT_DECLARE_BASE(x)=extern esp_event_base_t x"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user