diff --git a/apps/codecs.c b/apps/codecs.c index a093c2b601..3af5158fbb 100644 --- a/apps/codecs.c +++ b/apps/codecs.c @@ -131,8 +131,12 @@ struct codec_api ci = { system_memory_guard, &cpu_frequency, #ifdef HAVE_ADJUSTABLE_CPU_FREQ +#ifdef CPU_BOOST_LOGGING + cpu_boost_, +#else cpu_boost, #endif +#endif #endif /* strings and memory */ diff --git a/apps/codecs.h b/apps/codecs.h index dff219c058..cef14c3971 100644 --- a/apps/codecs.h +++ b/apps/codecs.h @@ -209,8 +209,12 @@ struct codec_api { int (*system_memory_guard)(int newmode); long *cpu_frequency; #ifdef HAVE_ADJUSTABLE_CPU_FREQ +#ifdef CPU_BOOST_LOGGING + void (*cpu_boost_)(bool on_off,char*location,int line); +#else void (*cpu_boost)(bool on_off); #endif +#endif #endif /* strings and memory */ diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 081bf2f63e..22db43d272 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -2237,7 +2237,55 @@ static bool dbg_write_eeprom(void) return false; } #endif /* defined(HAVE_EEPROM) && !defined(HAVE_EEPROM_SETTINGS) */ - +#ifdef CPU_BOOST_LOGGING +static bool cpu_boost_log(void) +{ + int i = 0,j=0; + int count = cpu_boost_log_getcount(); + int lines = LCD_HEIGHT/SYSFONT_HEIGHT; + char *str; + bool done; + lcd_setmargins(0, 0); + lcd_setfont(FONT_SYSFIXED); + str = cpu_boost_log_getlog_first(); + while (i < count) + { + lcd_clear_display(); + for(j=0; j