Closed geky closed 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
Tested locally on the RZ_A1H, it looks like this works
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