ARMmbed / mbed-events

DEPRECATED! This project has moved to mbed-os
https://github.com/ARMmbed/mbed-os/tree/master/events
Apache License 2.0
11 stars 6 forks source link

Fixed compilation error on Cortex A platforms #12

Closed geky closed 8 years ago

geky commented 8 years ago

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

geky commented 8 years ago

Tested locally on the RZ_A1H, it looks like this works