This repository was archived by the owner on Aug 19, 2021. It is now read-only.
Commit 1657868
committed
Fixed compilation error on Cortex A platforms
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.1 parent c55658f commit 1657868
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
| 55 | + | |
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
60 | | - | |
| 59 | + | |
61 | 60 | | |
62 | 61 | | |
63 | 62 | | |
| |||
0 commit comments