|
|
|
@ -156,11 +156,11 @@ typedef StreamBufferHandle_t MessageBufferHandle_t;
|
|
|
|
|
* \ingroup MessageBufferManagement
|
|
|
|
|
*/
|
|
|
|
|
#define xMessageBufferCreate( xBufferSizeBytes ) \
|
|
|
|
|
xStreamBufferGenericCreate( xBufferSizeBytes, ( size_t ) 0, pdTRUE, NULL, NULL )
|
|
|
|
|
xStreamBufferGenericCreate( ( xBufferSizeBytes ), ( size_t ) 0, pdTRUE, NULL, NULL )
|
|
|
|
|
|
|
|
|
|
#if ( configUSE_SB_COMPLETED_CALLBACK == 1 )
|
|
|
|
|
#define xMessageBufferCreateWithCallback( xBufferSizeBytes, pxSendCompletedCallback, pxReceiveCompletedCallback ) \
|
|
|
|
|
xStreamBufferGenericCreate( xBufferSizeBytes, ( size_t ) 0, pdTRUE, pxSendCompletedCallback, pxReceiveCompletedCallback )
|
|
|
|
|
xStreamBufferGenericCreate( ( xBufferSizeBytes ), ( size_t ) 0, pdTRUE, ( pxSendCompletedCallback ), ( pxReceiveCompletedCallback ) )
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -238,11 +238,11 @@ typedef StreamBufferHandle_t MessageBufferHandle_t;
|
|
|
|
|
* \ingroup MessageBufferManagement
|
|
|
|
|
*/
|
|
|
|
|
#define xMessageBufferCreateStatic( xBufferSizeBytes, pucMessageBufferStorageArea, pxStaticMessageBuffer ) \
|
|
|
|
|
xStreamBufferGenericCreateStatic( xBufferSizeBytes, 0, pdTRUE, pucMessageBufferStorageArea, pxStaticMessageBuffer, NULL, NULL )
|
|
|
|
|
xStreamBufferGenericCreateStatic( ( xBufferSizeBytes ), 0, pdTRUE, ( pucMessageBufferStorageArea ), ( pxStaticMessageBuffer ), NULL, NULL )
|
|
|
|
|
|
|
|
|
|
#if ( configUSE_SB_COMPLETED_CALLBACK == 1 )
|
|
|
|
|
#define xMessageBufferCreateStaticWithCallback( xBufferSizeBytes, pucMessageBufferStorageArea, pxStaticMessageBuffer, pxSendCompletedCallback, pxReceiveCompletedCallback ) \
|
|
|
|
|
xStreamBufferGenericCreateStatic( xBufferSizeBytes, 0, pdTRUE, pucMessageBufferStorageArea, pxStaticMessageBuffer, pxSendCompletedCallback, pxReceiveCompletedCallback )
|
|
|
|
|
xStreamBufferGenericCreateStatic( ( xBufferSizeBytes ), 0, pdTRUE, ( pucMessageBufferStorageArea ), ( pxStaticMessageBuffer ), ( pxSendCompletedCallback ), ( pxReceiveCompletedCallback ) )
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -343,7 +343,7 @@ typedef StreamBufferHandle_t MessageBufferHandle_t;
|
|
|
|
|
* \ingroup MessageBufferManagement
|
|
|
|
|
*/
|
|
|
|
|
#define xMessageBufferSend( xMessageBuffer, pvTxData, xDataLengthBytes, xTicksToWait ) \
|
|
|
|
|
xStreamBufferSend( xMessageBuffer, pvTxData, xDataLengthBytes, xTicksToWait )
|
|
|
|
|
xStreamBufferSend( ( xMessageBuffer ), ( pvTxData ), ( xDataLengthBytes ), ( xTicksToWait ) )
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* message_buffer.h
|
|
|
|
@ -448,7 +448,7 @@ typedef StreamBufferHandle_t MessageBufferHandle_t;
|
|
|
|
|
* \ingroup MessageBufferManagement
|
|
|
|
|
*/
|
|
|
|
|
#define xMessageBufferSendFromISR( xMessageBuffer, pvTxData, xDataLengthBytes, pxHigherPriorityTaskWoken ) \
|
|
|
|
|
xStreamBufferSendFromISR( xMessageBuffer, pvTxData, xDataLengthBytes, pxHigherPriorityTaskWoken )
|
|
|
|
|
xStreamBufferSendFromISR( ( xMessageBuffer ), ( pvTxData ), ( xDataLengthBytes ), ( pxHigherPriorityTaskWoken ) )
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* message_buffer.h
|
|
|
|
@ -537,7 +537,7 @@ typedef StreamBufferHandle_t MessageBufferHandle_t;
|
|
|
|
|
* \ingroup MessageBufferManagement
|
|
|
|
|
*/
|
|
|
|
|
#define xMessageBufferReceive( xMessageBuffer, pvRxData, xBufferLengthBytes, xTicksToWait ) \
|
|
|
|
|
xStreamBufferReceive( xMessageBuffer, pvRxData, xBufferLengthBytes, xTicksToWait )
|
|
|
|
|
xStreamBufferReceive( ( xMessageBuffer ), ( pvRxData ), ( xBufferLengthBytes ), ( xTicksToWait ) )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -639,7 +639,7 @@ typedef StreamBufferHandle_t MessageBufferHandle_t;
|
|
|
|
|
* \ingroup MessageBufferManagement
|
|
|
|
|
*/
|
|
|
|
|
#define xMessageBufferReceiveFromISR( xMessageBuffer, pvRxData, xBufferLengthBytes, pxHigherPriorityTaskWoken ) \
|
|
|
|
|
xStreamBufferReceiveFromISR( xMessageBuffer, pvRxData, xBufferLengthBytes, pxHigherPriorityTaskWoken )
|
|
|
|
|
xStreamBufferReceiveFromISR( ( xMessageBuffer ), ( pvRxData ), ( xBufferLengthBytes ), ( pxHigherPriorityTaskWoken ) )
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* message_buffer.h
|
|
|
|
@ -804,7 +804,7 @@ typedef StreamBufferHandle_t MessageBufferHandle_t;
|
|
|
|
|
* \ingroup StreamBufferManagement
|
|
|
|
|
*/
|
|
|
|
|
#define xMessageBufferSendCompletedFromISR( xMessageBuffer, pxHigherPriorityTaskWoken ) \
|
|
|
|
|
xStreamBufferSendCompletedFromISR( xMessageBuffer, pxHigherPriorityTaskWoken )
|
|
|
|
|
xStreamBufferSendCompletedFromISR( ( xMessageBuffer ), ( pxHigherPriorityTaskWoken ) )
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* message_buffer.h
|
|
|
|
@ -845,7 +845,7 @@ typedef StreamBufferHandle_t MessageBufferHandle_t;
|
|
|
|
|
* \ingroup StreamBufferManagement
|
|
|
|
|
*/
|
|
|
|
|
#define xMessageBufferReceiveCompletedFromISR( xMessageBuffer, pxHigherPriorityTaskWoken ) \
|
|
|
|
|
xStreamBufferReceiveCompletedFromISR( xMessageBuffer, pxHigherPriorityTaskWoken )
|
|
|
|
|
xStreamBufferReceiveCompletedFromISR( ( xMessageBuffer ), ( pxHigherPriorityTaskWoken ) )
|
|
|
|
|
|
|
|
|
|
/* *INDENT-OFF* */
|
|
|
|
|
#if defined( __cplusplus )
|
|
|
|
|