comparison Discovery/Src/t7.c @ 896:f29369fff71e Evo_2_23

Development Feature Runtime in Debugview: Added a compile switch which allows to show the deco, grafix and main loop runtimes in the T7 debug view.
author ideenmodellierer
date Thu, 26 Sep 2024 18:32:36 +0200
parents 0e084e5554a8
children 2225c467f1e9
comparison
equal deleted inserted replaced
895:94535e672583 896:f29369fff71e
3953 3953
3954 t7cY0free.WindowLineSpacing = 28 + 48 + 14; 3954 t7cY0free.WindowLineSpacing = 28 + 48 + 14;
3955 t7cY0free.WindowY0 = t7cH.WindowY0 - 5 - 2 * t7cY0free.WindowLineSpacing; 3955 t7cY0free.WindowY0 = t7cH.WindowY0 - 5 - 2 * t7cY0free.WindowLineSpacing;
3956 t7cY0free.WindowNumberOfTextLines = 3; 3956 t7cY0free.WindowNumberOfTextLines = 3;
3957 3957
3958 #ifdef T7_DEBUG_RUNTIME
3959 textpointer += snprintf(&text[textpointer],50,"Main loop %ld\n\r",getMainLoopTime());
3960 textpointer += snprintf(&text[textpointer],50,"Grafic loop %ld\n\r",getGfxLoopTime());
3961 textpointer += snprintf(&text[textpointer],50,"Decoloop %ld\n\r",getDecoLoopTime());
3962 GFX_write_string(&FontT24, &t7cY0free, text, 1);
3963 #else
3958 textpointer += snprintf(&text[textpointer],50,"Ambient [bar]\n\r"); 3964 textpointer += snprintf(&text[textpointer],50,"Ambient [bar]\n\r");
3959 textpointer += snprintf(&text[textpointer],50,"Surface [bar] + salt\n\r"); 3965 textpointer += snprintf(&text[textpointer],50,"Surface [bar] + salt\n\r");
3960 // textpointer += snprintf(&text[textpointer],50,"Difference [mbar]\n\r"); 3966 // textpointer += snprintf(&text[textpointer],50,"Difference [mbar]\n\r");
3961 textpointer += snprintf(&text[textpointer],50,"ShallowCounter [s]\n\r"); 3967 textpointer += snprintf(&text[textpointer],50,"ShallowCounter [s]\n\r");
3962 GFX_write_string(&FontT24, &t7cY0free, text, 1); 3968 GFX_write_string(&FontT24, &t7cY0free, text, 1);
3970 ,stateUsed->lifeData.pressure_ambient_bar 3976 ,stateUsed->lifeData.pressure_ambient_bar
3971 ,stateUsed->lifeData.pressure_surface_bar 3977 ,stateUsed->lifeData.pressure_surface_bar
3972 ,settingsGetPointer()->salinity 3978 ,settingsGetPointer()->salinity
3973 ,stateUsed->lifeData.counterSecondsShallowDepth); 3979 ,stateUsed->lifeData.counterSecondsShallowDepth);
3974 GFX_write_string(&FontT42, &t7cY0free, text, 1); 3980 GFX_write_string(&FontT42, &t7cY0free, text, 1);
3981 #endif
3975 } 3982 }
3976 3983
3977 3984
3978 void t7_SummaryOfLeftCorner(void) 3985 void t7_SummaryOfLeftCorner(void)
3979 { 3986 {