-
- Downloads
stmhal: Make enable_irq and disable_irq inline functions.
These functions are generally 1 machine instruction, and are used in critical code, so makes sense to have them inline. Also leave these functions uninverted (ie 0 means enable, 1 means disable) and provide macro constants if you really need to distinguish the states. This makes for smaller code as well (combined with inlining). Applied to teensy port as well.
Showing
- py/objexcept.c 2 additions, 2 deletionspy/objexcept.c
- stmhal/irq.c 10 additions, 18 deletionsstmhal/irq.c
- stmhal/irq.h 4 additions, 5 deletionsstmhal/irq.h
- stmhal/mpconfigport.h 27 additions, 4 deletionsstmhal/mpconfigport.h
- teensy/mpconfigport.h 33 additions, 4 deletionsteensy/mpconfigport.h
- teensy/teensy_hal.h 0 additions, 13 deletionsteensy/teensy_hal.h
Loading
Please register or sign in to comment