summaryrefslogtreecommitdiffstatshomepage
path: root/unix/main.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-06-10 14:25:54 +0100
committerDamien George <damien.p.george@gmail.com>2015-12-22 21:00:20 +0000
commit401af50dc081faa421e7caef18fde2beb15632e4 (patch)
tree3af529bf86743dddf182c632849edf2a9ecf5f6a /unix/main.c
parentabd0fcfc86c413d7de58f0c927ca6f598ee12950 (diff)
downloadmicropython-401af50dc081faa421e7caef18fde2beb15632e4.tar.gz
micropython-401af50dc081faa421e7caef18fde2beb15632e4.zip
stmhal: Add pyb.irq_stats() to get statistics about IRQ calls.
Adds a lot of code, makes IRQs a bit less efficient, but is very useful for debugging. Usage: pyb.irq_stats() returns a memory view that can be read and written, eg: list(pyb.irq_stats()) pyb.irq_stats()[0] pyb.irq_stats()[0] = 0 The patch provides general IRQ_ENTER() and IRQ_EXIT() macros that can be modified to provide further IRQ statistics if desired.
Diffstat (limited to 'unix/main.c')
0 files changed, 0 insertions, 0 deletions