event-groups: Fix multiple definitions #1307
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR does the following:
Remove
xEventGroupClearBitsFromISR
andxEventGroupSetBitsFromISR
functions direct mapping toxTimerPendFunctionCallFromISR
in case the trace facility is feature not set. This should match the current implementation in which the application callingxEventGroupClearBitsFromISR
without defining the trace macros (i.e.traceENTER_xEventGroupClearBitsFromISR
is a blank function in this case) will end up callingxTimerPendFunctionCallFromISR
function directly. This enhances the readability of the code by not guarding thexEventGroup<Set/Clear>BitsFromISR
functions' declaration and definition based on the trace facility macro (i.e.configUSE_TRACE_FACILITY
).Refactor the guarding macros for
MPU_xEventGroupClearBitsFromISR
andMPU_xEventGroupSetBitsFromISR
functions to match the change above.The current implementation leads to redefinition warnings as
event_groups.h
redefinesxEventGroupClearBitsFromISR
andxEventGroupSetBitsFromISR
based onconfigUSE_TRACE_FACILITY
after they have been defined based onconfigUSE_MPU_WRAPPERS_V1
inmpu_wrappers.h
. The implemented changes should resolve these warnings.Test Steps
Checklist:
Related Issue
This PR should address the FreeRTOS-Kernel-Bug!1296.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.