Skip to content
This repository was archived by the owner on Aug 19, 2021. It is now read-only.

Fixed compilation error on Cortex A platforms #12

Merged
merged 1 commit into from
Aug 3, 2016
Merged

Conversation

geky
Copy link
Contributor

@geky geky commented Aug 3, 2016

Before, __get_PRIMASK/__set_PRIMASK were used directly to manipulate the state of interrupts. These are only available on Cortex M platforms.

Adopted core_util_critical_section_enter/exit from mbed critical.h, which provides this behaviour in a cross-platform manner.

This should fix #11

Before, __get_PRIMASK/__set_PRIMASK were used directly to manipulate
the state of interrupts. These are only available on Cortex M
platforms.

Adopted core_util_critical_section_enter/exit from mbed critical.h,
which provides this behaviour in a cross-platform manner.
@geky
Copy link
Contributor Author

geky commented Aug 3, 2016

Tested locally on the RZ_A1H, it looks like this works

@geky geky merged commit 021d7c0 into master Aug 3, 2016
@geky geky deleted the fix-cortex-a branch August 3, 2016 17:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[RC5 OoB] mbed-events doesn't compile with non Cortex-M platform
1 participant