imx233: don't print disabled IRQs in debug screen
There are lot IRQ and most are unused most of the time, this is annoying on devices with small screens. Change-Id: I7f3453f2768b8e35a5a367fbcf1e4cf3cf73bcd7
This commit is contained in:
parent
17277fa1bf
commit
ac0fc74d56
1 changed files with 7 additions and 3 deletions
|
@ -631,13 +631,17 @@ bool dbg_hw_info_icoll(void)
|
|||
}
|
||||
|
||||
lcd_clear_display();
|
||||
for(int i = first_irq, j = 0; i < dbg_irqs_count && j < line_count; i++, j++)
|
||||
int line = 0;
|
||||
for(int i = first_irq; i < dbg_irqs_count && line < line_count; i++)
|
||||
{
|
||||
struct imx233_icoll_irq_info_t info = imx233_icoll_get_irq_info(dbg_irqs[i].src);
|
||||
static char prio[4] = {'-', '+', '^', '!'};
|
||||
lcd_putsf(0, j, "%c%s", prio[info.priority & 3], dbg_irqs[i].name);
|
||||
if(info.enabled || info.freq > 0)
|
||||
lcd_putsf(11, j, "%d %d %d", info.freq, info.max_time, info.total_time);
|
||||
{
|
||||
lcd_putsf(0, line, "%c%s", prio[info.priority & 3], dbg_irqs[i].name);
|
||||
lcd_putsf(11, line, "%d %d %d", info.freq, info.max_time, info.total_time);
|
||||
line++;
|
||||
}
|
||||
}
|
||||
lcd_update();
|
||||
yield();
|
||||
|
|
Loading…
Reference in a new issue