mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-01 20:03:50 -04:00
Add config option for event groups and stream buffers (#994)
* Add configUSE_EVENT_GROUPS in source files * Add configUSE_EVENT_GROUPS macro in MPU wrapper files * Add configUSE_EVENT_GROUPS macro in MPU port files for GCC and RVDS compilers * Fix Formatting * Add configUSE_STREAM_BUFFERS in source files * Add configUSE_STREAM_BUFFERS macro in MPU wrapper files * Add configUSE_STREAM_BUFFERS macro in MPU port files for GCC and RVDS compilers * Update FreeRTOS.h post latest commit * Update the ARM_CRx_MPU Port to account for the new configuration changes * Formatting suggestions Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com> * Code review suggestions --------- Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com> Co-authored-by: joshzarr <joshzarr@amazon.com> Co-authored-by: Gaurav Aggarwal <aggarg@amazon.com> Co-authored-by: Soren Ptak <ptaksoren@gmail.com> Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
This commit is contained in:
parent
39dbff7204
commit
e8289dfee6
26 changed files with 7266 additions and 6113 deletions
|
@ -201,111 +201,119 @@ MPU_xQueueSemaphoreTake:
|
|||
|
||||
/* ----------------------------------------------------------------------------------- */
|
||||
|
||||
.extern MPU_xEventGroupWaitBitsImpl
|
||||
.align 4
|
||||
.global MPU_xEventGroupWaitBitsEntry
|
||||
.type MPU_xEventGroupWaitBitsEntry, function
|
||||
MPU_xEventGroupWaitBitsEntry:
|
||||
INVOKE_SYSTEM_CALL #SYSTEM_CALL_xEventGroupWaitBits, MPU_xEventGroupWaitBitsImpl
|
||||
#if ( configUSE_EVENT_GROUPS == 1 )
|
||||
|
||||
.extern MPU_xEventGroupWaitBitsImpl
|
||||
.align 4
|
||||
.global MPU_xEventGroupWaitBitsEntry
|
||||
.type MPU_xEventGroupWaitBitsEntry, function
|
||||
MPU_xEventGroupWaitBitsEntry:
|
||||
INVOKE_SYSTEM_CALL #SYSTEM_CALL_xEventGroupWaitBits, MPU_xEventGroupWaitBitsImpl
|
||||
|
||||
/* ----------------------------------------------------------------------------------- */
|
||||
|
||||
.extern MPU_xEventGroupClearBitsImpl
|
||||
.align 4
|
||||
.global MPU_xEventGroupClearBits
|
||||
.type MPU_xEventGroupClearBits, function
|
||||
MPU_xEventGroupClearBits:
|
||||
INVOKE_SYSTEM_CALL #SYSTEM_CALL_xEventGroupClearBits, MPU_xEventGroupClearBitsImpl
|
||||
|
||||
/* ----------------------------------------------------------------------------------- */
|
||||
|
||||
.extern MPU_xEventGroupSetBitsImpl
|
||||
.align 4
|
||||
.global MPU_xEventGroupSetBits
|
||||
.type MPU_xEventGroupSetBits, function
|
||||
MPU_xEventGroupSetBits:
|
||||
INVOKE_SYSTEM_CALL #SYSTEM_CALL_xEventGroupSetBits, MPU_xEventGroupSetBitsImpl
|
||||
|
||||
/* ----------------------------------------------------------------------------------- */
|
||||
|
||||
.extern MPU_xEventGroupSyncImpl
|
||||
.align 4
|
||||
.global MPU_xEventGroupSync
|
||||
.type MPU_xEventGroupSync, function
|
||||
MPU_xEventGroupSync:
|
||||
INVOKE_SYSTEM_CALL #SYSTEM_CALL_xEventGroupSync, MPU_xEventGroupSyncImpl
|
||||
|
||||
#endif /* if ( configUSE_EVENT_GROUPS == 1 ) */
|
||||
|
||||
/* ----------------------------------------------------------------------------------- */
|
||||
|
||||
.extern MPU_xEventGroupClearBitsImpl
|
||||
.align 4
|
||||
.global MPU_xEventGroupClearBits
|
||||
.type MPU_xEventGroupClearBits, function
|
||||
MPU_xEventGroupClearBits:
|
||||
INVOKE_SYSTEM_CALL #SYSTEM_CALL_xEventGroupClearBits, MPU_xEventGroupClearBitsImpl
|
||||
#if ( configUSE_STREAM_BUFFERS == 1 )
|
||||
|
||||
/* ----------------------------------------------------------------------------------- */
|
||||
.extern MPU_xStreamBufferSendImpl
|
||||
.align 4
|
||||
.global MPU_xStreamBufferSend
|
||||
.type MPU_xStreamBufferSend, function
|
||||
MPU_xStreamBufferSend:
|
||||
INVOKE_SYSTEM_CALL #SYSTEM_CALL_xStreamBufferSend, MPU_xStreamBufferSendImpl
|
||||
|
||||
.extern MPU_xEventGroupSetBitsImpl
|
||||
.align 4
|
||||
.global MPU_xEventGroupSetBits
|
||||
.type MPU_xEventGroupSetBits, function
|
||||
MPU_xEventGroupSetBits:
|
||||
INVOKE_SYSTEM_CALL #SYSTEM_CALL_xEventGroupSetBits, MPU_xEventGroupSetBitsImpl
|
||||
/* ----------------------------------------------------------------------------------- */
|
||||
|
||||
/* ----------------------------------------------------------------------------------- */
|
||||
.extern MPU_xStreamBufferReceiveImpl
|
||||
.align 4
|
||||
.global MPU_xStreamBufferReceive
|
||||
.type MPU_xStreamBufferReceive, function
|
||||
MPU_xStreamBufferReceive:
|
||||
INVOKE_SYSTEM_CALL #SYSTEM_CALL_xStreamBufferReceive, MPU_xStreamBufferReceiveImpl
|
||||
|
||||
.extern MPU_xEventGroupSyncImpl
|
||||
.align 4
|
||||
.global MPU_xEventGroupSync
|
||||
.type MPU_xEventGroupSync, function
|
||||
MPU_xEventGroupSync:
|
||||
INVOKE_SYSTEM_CALL #SYSTEM_CALL_xEventGroupSync, MPU_xEventGroupSyncImpl
|
||||
/* ----------------------------------------------------------------------------------- */
|
||||
|
||||
/* ----------------------------------------------------------------------------------- */
|
||||
.extern MPU_xStreamBufferIsFullImpl
|
||||
.align 4
|
||||
.global MPU_xStreamBufferIsFull
|
||||
.type MPU_xStreamBufferIsFull, function
|
||||
MPU_xStreamBufferIsFull:
|
||||
INVOKE_SYSTEM_CALL #SYSTEM_CALL_xStreamBufferIsFull, MPU_xStreamBufferIsFullImpl
|
||||
|
||||
.extern MPU_xStreamBufferSendImpl
|
||||
.align 4
|
||||
.global MPU_xStreamBufferSend
|
||||
.type MPU_xStreamBufferSend, function
|
||||
MPU_xStreamBufferSend:
|
||||
INVOKE_SYSTEM_CALL #SYSTEM_CALL_xStreamBufferSend, MPU_xStreamBufferSendImpl
|
||||
/* ----------------------------------------------------------------------------------- */
|
||||
|
||||
/* ----------------------------------------------------------------------------------- */
|
||||
.extern MPU_xStreamBufferIsEmptyImpl
|
||||
.align 4
|
||||
.global MPU_xStreamBufferIsEmpty
|
||||
.type MPU_xStreamBufferIsEmpty, function
|
||||
MPU_xStreamBufferIsEmpty:
|
||||
INVOKE_SYSTEM_CALL #SYSTEM_CALL_xStreamBufferIsEmpty, MPU_xStreamBufferIsEmptyImpl
|
||||
|
||||
.extern MPU_xStreamBufferReceiveImpl
|
||||
.align 4
|
||||
.global MPU_xStreamBufferReceive
|
||||
.type MPU_xStreamBufferReceive, function
|
||||
MPU_xStreamBufferReceive:
|
||||
INVOKE_SYSTEM_CALL #SYSTEM_CALL_xStreamBufferReceive, MPU_xStreamBufferReceiveImpl
|
||||
/* ----------------------------------------------------------------------------------- */
|
||||
|
||||
/* ----------------------------------------------------------------------------------- */
|
||||
.extern MPU_xStreamBufferSpacesAvailableImpl
|
||||
.align 4
|
||||
.global MPU_xStreamBufferSpacesAvailable
|
||||
.type MPU_xStreamBufferSpacesAvailable, function
|
||||
MPU_xStreamBufferSpacesAvailable:
|
||||
INVOKE_SYSTEM_CALL #SYSTEM_CALL_xStreamBufferSpacesAvailable, MPU_xStreamBufferSpacesAvailableImpl
|
||||
|
||||
.extern MPU_xStreamBufferIsFullImpl
|
||||
.align 4
|
||||
.global MPU_xStreamBufferIsFull
|
||||
.type MPU_xStreamBufferIsFull, function
|
||||
MPU_xStreamBufferIsFull:
|
||||
INVOKE_SYSTEM_CALL #SYSTEM_CALL_xStreamBufferIsFull, MPU_xStreamBufferIsFullImpl
|
||||
/* ----------------------------------------------------------------------------------- */
|
||||
|
||||
/* ----------------------------------------------------------------------------------- */
|
||||
.extern MPU_xStreamBufferBytesAvailableImpl
|
||||
.align 4
|
||||
.global MPU_xStreamBufferBytesAvailable
|
||||
.type MPU_xStreamBufferBytesAvailable, function
|
||||
MPU_xStreamBufferBytesAvailable:
|
||||
INVOKE_SYSTEM_CALL #SYSTEM_CALL_xStreamBufferBytesAvailable, MPU_xStreamBufferBytesAvailableImpl
|
||||
|
||||
.extern MPU_xStreamBufferIsEmptyImpl
|
||||
.align 4
|
||||
.global MPU_xStreamBufferIsEmpty
|
||||
.type MPU_xStreamBufferIsEmpty, function
|
||||
MPU_xStreamBufferIsEmpty:
|
||||
INVOKE_SYSTEM_CALL #SYSTEM_CALL_xStreamBufferIsEmpty, MPU_xStreamBufferIsEmptyImpl
|
||||
/* ----------------------------------------------------------------------------------- */
|
||||
|
||||
/* ----------------------------------------------------------------------------------- */
|
||||
.extern MPU_xStreamBufferSetTriggerLevelImpl
|
||||
.align 4
|
||||
.global MPU_xStreamBufferSetTriggerLevel
|
||||
.type MPU_xStreamBufferSetTriggerLevel, function
|
||||
MPU_xStreamBufferSetTriggerLevel:
|
||||
INVOKE_SYSTEM_CALL #SYSTEM_CALL_xStreamBufferSetTriggerLevel, MPU_xStreamBufferSetTriggerLevelImpl
|
||||
|
||||
.extern MPU_xStreamBufferSpacesAvailableImpl
|
||||
.align 4
|
||||
.global MPU_xStreamBufferSpacesAvailable
|
||||
.type MPU_xStreamBufferSpacesAvailable, function
|
||||
MPU_xStreamBufferSpacesAvailable:
|
||||
INVOKE_SYSTEM_CALL #SYSTEM_CALL_xStreamBufferSpacesAvailable, MPU_xStreamBufferSpacesAvailableImpl
|
||||
/* ----------------------------------------------------------------------------------- */
|
||||
|
||||
/* ----------------------------------------------------------------------------------- */
|
||||
.extern MPU_xStreamBufferNextMessageLengthBytesImpl
|
||||
.align 4
|
||||
.global MPU_xStreamBufferNextMessageLengthBytes
|
||||
.type MPU_xStreamBufferNextMessageLengthBytes, function
|
||||
MPU_xStreamBufferNextMessageLengthBytes:
|
||||
INVOKE_SYSTEM_CALL #SYSTEM_CALL_xStreamBufferNextMessageLengthBytes, MPU_xStreamBufferNextMessageLengthBytesImpl
|
||||
|
||||
.extern MPU_xStreamBufferBytesAvailableImpl
|
||||
.align 4
|
||||
.global MPU_xStreamBufferBytesAvailable
|
||||
.type MPU_xStreamBufferBytesAvailable, function
|
||||
MPU_xStreamBufferBytesAvailable:
|
||||
INVOKE_SYSTEM_CALL #SYSTEM_CALL_xStreamBufferBytesAvailable, MPU_xStreamBufferBytesAvailableImpl
|
||||
|
||||
/* ----------------------------------------------------------------------------------- */
|
||||
|
||||
.extern MPU_xStreamBufferSetTriggerLevelImpl
|
||||
.align 4
|
||||
.global MPU_xStreamBufferSetTriggerLevel
|
||||
.type MPU_xStreamBufferSetTriggerLevel, function
|
||||
MPU_xStreamBufferSetTriggerLevel:
|
||||
INVOKE_SYSTEM_CALL #SYSTEM_CALL_xStreamBufferSetTriggerLevel, MPU_xStreamBufferSetTriggerLevelImpl
|
||||
|
||||
/* ----------------------------------------------------------------------------------- */
|
||||
|
||||
.extern MPU_xStreamBufferNextMessageLengthBytesImpl
|
||||
.align 4
|
||||
.global MPU_xStreamBufferNextMessageLengthBytes
|
||||
.type MPU_xStreamBufferNextMessageLengthBytes, function
|
||||
MPU_xStreamBufferNextMessageLengthBytes:
|
||||
INVOKE_SYSTEM_CALL #SYSTEM_CALL_xStreamBufferNextMessageLengthBytes, MPU_xStreamBufferNextMessageLengthBytesImpl
|
||||
#endif /* if ( configUSE_STREAM_BUFFERS == 1 ) */
|
||||
|
||||
/* ----------------------------------------------------------------------------------- */
|
||||
|
||||
|
@ -392,8 +400,11 @@ MPU_xStreamBufferNextMessageLengthBytes:
|
|||
MPU_uxTaskGetSystemState:
|
||||
INVOKE_SYSTEM_CALL #SYSTEM_CALL_uxTaskGetSystemState, MPU_uxTaskGetSystemStateImpl
|
||||
|
||||
/* ------------------------------------------------------------------------------- */
|
||||
#endif /* if ( configUSE_TRACE_FACILITY == 1 ) */
|
||||
|
||||
/* ------------------------------------------------------------------------------- */
|
||||
|
||||
#if ( ( configUSE_EVENT_GROUPS == 1 ) && ( configUSE_TRACE_FACILITY == 1 ) )
|
||||
.extern MPU_uxEventGroupGetNumberImpl
|
||||
.align 4
|
||||
.global MPU_uxEventGroupGetNumber
|
||||
|
@ -403,6 +414,8 @@ MPU_xStreamBufferNextMessageLengthBytes:
|
|||
|
||||
/* ------------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
|
||||
.extern MPU_vEventGroupSetNumberImpl
|
||||
.align 4
|
||||
.global MPU_vEventGroupSetNumber
|
||||
|
@ -412,7 +425,7 @@ MPU_xStreamBufferNextMessageLengthBytes:
|
|||
|
||||
/* ------------------------------------------------------------------------------- */
|
||||
|
||||
#endif /* if ( configUSE_TRACE_FACILITY == 1 ) */
|
||||
#endif /* if ( ( configUSE_EVENT_GROUPS == 1 ) && ( configUSE_TRACE_FACILITY == 1 ) ) */
|
||||
|
||||
/* ------------------------------------------------------------------------------- */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue