MCPcopy Create free account
hub / github.com/kiibohd/controller / cliFunc_periodic

Function cliFunc_periodic

Debug/cli/cli.c:677–697  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

675}
676
677void cliFunc_periodic( char* args )
678{
679 // Parse number from argument
680 // NOTE: Only first argument is used
681 char* arg1Ptr;
682 char* arg2Ptr;
683 CLI_argumentIsolation( args, &arg1Ptr, &arg2Ptr );
684 print( NL );
685
686 // Set clock cycles if an argument is given
687 if ( arg1Ptr[0] != '\0' )
688 {
689 uint32_t cycles = (uint32_t)numToInt( arg1Ptr );
690
691 Periodic_init( cycles );
692 }
693
694 // Show number of clock cycles between periods
695 info_print("Period Clock Cycles: ");
696 printInt32( Periodic_cycles() );
697}
698
699void cliFunc_rand( char* args )
700{

Callers

nothing calls this directly

Calls 5

CLI_argumentIsolationFunction · 0.85
numToIntFunction · 0.85
Periodic_initFunction · 0.85
printInt32Function · 0.85
Periodic_cyclesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…