Skip to content

Commit

Permalink
show slow clock in hw status
Browse files Browse the repository at this point in the history
  • Loading branch information
doegox committed Aug 6, 2019
1 parent 8b3159c commit c74028f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions armsrc/appmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,9 @@ void SendStatus(void) {
Dbprintf(" ToSendMax...............%d", ToSendMax);
Dbprintf(" ToSendBit...............%d", ToSendBit);
Dbprintf(" ToSend BUFFERSIZE.......%d", TOSEND_BUFFER_SIZE);
while ((AT91C_BASE_PMC->PMC_MCFR & AT91C_CKGR_MAINRDY) == 0); // Wait for MAINF value to become available...
uint16_t mainf = AT91C_BASE_PMC->PMC_MCFR & AT91C_CKGR_MAINF; // Get # main clocks within 16 slow clocks
Dbprintf(" Slow clock..............%d Hz", (16*MAINCK) / mainf);
DbpString(_BLUE_("Installed StandAlone Mode"));
ModInfo();

Expand Down

0 comments on commit c74028f

Please sign in to comment.