Commit 4394741
authored
event-groups: Fix multiple definitions (#1307)
This commit does the following:
* Remove xEventGroupClearBitsFromISR and
xEventGroupSetBitsFromISR functions direct mapping
to xTimerPendFunctionCallFromISR in case the trace
facility is feature not set. This should match the
current implementation in which the application calling
xEventGroupClearBitsFromISR
without defining the trace macros
(i.e. traceENTER_xEventGroupClearBitsFromISR is
a blank function in this case) will end up calling
xTimerPendFunctionCallFromISR function directly.
This enhances the readability of the code by not
guarding the xEventGroup<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
and MPU_xEventGroupSetBitsFromISR functions to match the
change above.
The current implementation leads to redefinition warnings
as `event_groups.h`redefines xEventGroupClearBitsFromISR
and xEventGroupSetBitsFromISR based on
`configUSE_TRACE_FACILITY' after they have been defined based
on configUSE_MPU_WRAPPERS_V1 in `mpu_wrappers.h`. The
implemented changes should resolve these warnings.
Signed-off-by: Ahmed Ismail <Ahmed.Ismail@arm.com>1 parent c91ee8d commit 4394741
File tree
4 files changed
+20
-23
lines changed- include
- portable/Common
4 files changed
+20
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
501 | 501 | | |
502 | 502 | | |
503 | 503 | | |
504 | | - | |
| 504 | + | |
505 | 505 | | |
506 | 506 | | |
507 | 507 | | |
| |||
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
521 | | - | |
| 521 | + | |
522 | 522 | | |
523 | 523 | | |
524 | 524 | | |
| |||
812 | 812 | | |
813 | 813 | | |
814 | 814 | | |
815 | | - | |
| 815 | + | |
816 | 816 | | |
817 | 817 | | |
818 | 818 | | |
| |||
830 | 830 | | |
831 | 831 | | |
832 | 832 | | |
833 | | - | |
| 833 | + | |
834 | 834 | | |
835 | 835 | | |
836 | 836 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
452 | 452 | | |
453 | 453 | | |
454 | 454 | | |
455 | | - | |
| 455 | + | |
456 | 456 | | |
457 | 457 | | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
| 458 | + | |
462 | 459 | | |
463 | 460 | | |
464 | 461 | | |
| |||
607 | 604 | | |
608 | 605 | | |
609 | 606 | | |
610 | | - | |
| 607 | + | |
611 | 608 | | |
612 | 609 | | |
613 | 610 | | |
614 | | - | |
615 | | - | |
616 | | - | |
617 | | - | |
| 611 | + | |
618 | 612 | | |
619 | 613 | | |
620 | 614 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
409 | 409 | | |
410 | 410 | | |
411 | 411 | | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | 412 | | |
418 | 413 | | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
419 | 422 | | |
420 | 423 | | |
421 | 424 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4282 | 4282 | | |
4283 | 4283 | | |
4284 | 4284 | | |
4285 | | - | |
| 4285 | + | |
4286 | 4286 | | |
4287 | 4287 | | |
4288 | 4288 | | |
| |||
4306 | 4306 | | |
4307 | 4307 | | |
4308 | 4308 | | |
4309 | | - | |
| 4309 | + | |
4310 | 4310 | | |
4311 | 4311 | | |
4312 | | - | |
| 4312 | + | |
4313 | 4313 | | |
4314 | 4314 | | |
4315 | 4315 | | |
| |||
4334 | 4334 | | |
4335 | 4335 | | |
4336 | 4336 | | |
4337 | | - | |
| 4337 | + | |
4338 | 4338 | | |
4339 | 4339 | | |
4340 | 4340 | | |
| |||
0 commit comments