summaryrefslogtreecommitdiffstatshomepage
path: root/py/builtinevex.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-08-25 13:24:33 +0100
committerDamien George <damien.p.george@gmail.com>2014-08-25 13:24:33 +0100
commite5cbb70328239e58c820938eccd51f3c735fc312 (patch)
treec6f1f9d9f83327ab595e14276d4f4ab9f9a56c5d /py/builtinevex.c
parent9480138f0c917b2400991066e94636f7d8076a4c (diff)
downloadmicropython-e5cbb70328239e58c820938eccd51f3c735fc312.tar.gz
micropython-e5cbb70328239e58c820938eccd51f3c735fc312.zip
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.
Diffstat (limited to 'py/builtinevex.c')
0 files changed, 0 insertions, 0 deletions