Skip to content
Snippets Groups Projects
Select Git revision
  • e5cbb70328239e58c820938eccd51f3c735fc312
  • wip-bootstrap default
  • dualcore
  • ch3/leds
  • ch3/time
  • master
6 results

irq.c

  • Damien George's avatar
    e5cbb703
    stmhal: Make enable_irq and disable_irq inline functions. · e5cbb703
    Damien George authored
    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.
    e5cbb703
    History
    stmhal: Make enable_irq and disable_irq inline functions.
    Damien George authored
    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.