-
- Downloads
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.
Showing
- stmhal/dma.c 16 additions, 16 deletionsstmhal/dma.c
- stmhal/irq.c 12 additions, 0 deletionsstmhal/irq.c
- stmhal/irq.h 14 additions, 0 deletionsstmhal/irq.h
- stmhal/modpyb.c 3 additions, 0 deletionsstmhal/modpyb.c
- stmhal/qstrdefsport.h 1 addition, 0 deletionsstmhal/qstrdefsport.h
- stmhal/sdcard.c 2 additions, 0 deletionsstmhal/sdcard.c
- stmhal/stm32_it.c 79 additions, 0 deletionsstmhal/stm32_it.c
Loading
Please register or sign in to comment