Add main loop cycle counter for debugging

This commit is contained in:
Mario Hüttel 2021-04-04 19:32:44 +02:00
parent 5deac33949
commit 74defd5384

View File

@ -218,6 +218,7 @@ int main(void)
shellmatta_handle_t shell_handle; shellmatta_handle_t shell_handle;
int menu_wait_request; int menu_wait_request;
uint64_t quarter_sec_timestamp = 0ULL; uint64_t quarter_sec_timestamp = 0ULL;
static uint64_t IN_SECTION(.ccm.bss) main_loop_iter_count;
setup_system(); setup_system();
@ -267,6 +268,7 @@ int main(void)
__WFI(); __WFI();
else else
__NOP(); __NOP();
main_loop_iter_count++;
} }
return 0; return 0;