Commit dd7d2e08 authored by Damien George's avatar Damien George
Browse files

stmhal: Only use BASEPRI irq stuff if Cortex is M3 or higher.

parent f7697ff3
......@@ -34,6 +34,8 @@ static inline mp_uint_t query_irq(void) {
// enable_irq and disable_irq are defined inline in mpconfigport.h
#if __CORTEX_M >= 0x03
// irqs with a priority value greater or equal to "pri" will be disabled
// "pri" should be between 1 and 15 inclusive
static inline uint32_t raise_irq_pri(uint32_t pri) {
......@@ -53,6 +55,8 @@ static inline void restore_irq_pri(uint32_t basepri) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment