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
1 changed files with 2 additions and 0 deletions

View File

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