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

Commit

Permalink
Merge pull request #12 from ARMmbed/fix-cortex-a
Browse files Browse the repository at this point in the history
Fixed compilation error on Cortex A platforms
  • Loading branch information
geky authored Aug 3, 2016
2 parents c55658f + 1657868 commit 021d7c0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions events-c/events_mbed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,11 @@ int events_mutex_create(events_mutex_t *m) { return 0; }
void events_mutex_destroy(events_mutex_t *m) { }

void events_mutex_lock(events_mutex_t *m) {
*m = __get_PRIMASK();
__disable_irq();
core_util_critical_section_enter();
}

void events_mutex_unlock(events_mutex_t *m) {
__set_PRIMASK(*m);
core_util_critical_section_exit();
}


Expand Down

0 comments on commit 021d7c0

Please sign in to comment.