Debug Timers: add 10ms period measurement, delete unused timer debugT… (#5319)
* Debug Timers: add 10ms period measurement, delete unused timer debugTimerPerMainPeriod * Typo in drawSplash() if MENUS_LOCK == 1
This commit is contained in:
committed by
Andre Bernet
parent
ff8f4a3a92
commit
6c7e4b5597
+1
-1
@@ -235,12 +235,12 @@ const char * const debugTimerNames[DEBUG_TIMERS_COUNT] = {
|
|||||||
"Pulses int." // debugTimerIntPulses,
|
"Pulses int." // debugTimerIntPulses,
|
||||||
,"Pulses dur." // debugTimerIntPulsesDuration,
|
,"Pulses dur." // debugTimerIntPulsesDuration,
|
||||||
,"10ms dur. " // debugTimerPer10ms,
|
,"10ms dur. " // debugTimerPer10ms,
|
||||||
|
,"10ms period" // debugTimerPer10msPeriod,
|
||||||
,"Rotary enc." // debugTimerRotEnc,
|
,"Rotary enc." // debugTimerRotEnc,
|
||||||
,"Haptic " // debugTimerHaptic,
|
,"Haptic " // debugTimerHaptic,
|
||||||
,"Mixer calc " // debugTimerMixer,
|
,"Mixer calc " // debugTimerMixer,
|
||||||
,"Tel. wakeup" // debugTimerTelemetryWakeup,
|
,"Tel. wakeup" // debugTimerTelemetryWakeup,
|
||||||
,"perMain dur" // debugTimerPerMain,
|
,"perMain dur" // debugTimerPerMain,
|
||||||
," period " // debugTimerPerMainPeriod,
|
|
||||||
," perMain s1" // debugTimerPerMain1,
|
," perMain s1" // debugTimerPerMain1,
|
||||||
," guiMain " // debugTimerGuiMain,
|
," guiMain " // debugTimerGuiMain,
|
||||||
," LUA bg " // debugTimerLuaBg,
|
," LUA bg " // debugTimerLuaBg,
|
||||||
|
|||||||
+1
-1
@@ -369,12 +369,12 @@ enum DebugTimers {
|
|||||||
debugTimerIntPulses,
|
debugTimerIntPulses,
|
||||||
debugTimerIntPulsesDuration,
|
debugTimerIntPulsesDuration,
|
||||||
debugTimerPer10ms,
|
debugTimerPer10ms,
|
||||||
|
debugTimerPer10msPeriod,
|
||||||
debugTimerRotEnc,
|
debugTimerRotEnc,
|
||||||
debugTimerHaptic,
|
debugTimerHaptic,
|
||||||
debugTimerMixer,
|
debugTimerMixer,
|
||||||
debugTimerTelemetryWakeup,
|
debugTimerTelemetryWakeup,
|
||||||
debugTimerPerMain,
|
debugTimerPerMain,
|
||||||
debugTimerPerMainPeriod,
|
|
||||||
debugTimerPerMain1,
|
debugTimerPerMain1,
|
||||||
debugTimerGuiMain,
|
debugTimerGuiMain,
|
||||||
debugTimerLuaBg,
|
debugTimerLuaBg,
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ void drawSplash()
|
|||||||
|
|
||||||
#if MENUS_LOCK == 1
|
#if MENUS_LOCK == 1
|
||||||
if (readonly == false) {
|
if (readonly == false) {
|
||||||
lcdDrawSolidFilledRect((LCD_W-(sizeof(TR_UNLOCKED)-1)*FW)/2 - 9, 50, (sizeof(TR_UNLOCKED)-1)*FW+16, 11, SOLID, ROUND);
|
lcdDrawSolidFilledRect((LCD_W-(sizeof(TR_UNLOCKED)-1)*FW)/2 - 9, 50, (sizeof(TR_UNLOCKED)-1)*FW+16, 11, SOLID|ROUND);
|
||||||
lcdDrawText((LCD_W-(sizeof(TR_UNLOCKED)-1)*FW)/2 , 53, STR_UNLOCKED);
|
lcdDrawText((LCD_W-(sizeof(TR_UNLOCKED)-1)*FW)/2 , 53, STR_UNLOCKED);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -80,6 +80,7 @@ void interrupt1ms()
|
|||||||
if (pre_scale == 10) {
|
if (pre_scale == 10) {
|
||||||
pre_scale = 0;
|
pre_scale = 0;
|
||||||
DEBUG_TIMER_START(debugTimerPer10ms);
|
DEBUG_TIMER_START(debugTimerPer10ms);
|
||||||
|
DEBUG_TIMER_SAMPLE(debugTimerPer10msPeriod);
|
||||||
per10ms();
|
per10ms();
|
||||||
DEBUG_TIMER_STOP(debugTimerPer10ms);
|
DEBUG_TIMER_STOP(debugTimerPer10ms);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -82,6 +82,7 @@ void interrupt5ms()
|
|||||||
if (++pre_scale >= 2) {
|
if (++pre_scale >= 2) {
|
||||||
pre_scale = 0 ;
|
pre_scale = 0 ;
|
||||||
DEBUG_TIMER_START(debugTimerPer10ms);
|
DEBUG_TIMER_START(debugTimerPer10ms);
|
||||||
|
DEBUG_TIMER_SAMPLE(debugTimerPer10msPeriod);
|
||||||
per10ms();
|
per10ms();
|
||||||
DEBUG_TIMER_STOP(debugTimerPer10ms);
|
DEBUG_TIMER_STOP(debugTimerPer10ms);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user