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

Function cliFunc_help

Debug/cli/cli.c:587–620  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

585#endif
586
587void cliFunc_help( char* args )
588{
589#if Output_HIDIOEnabled_define == 1
590 HIDIO_print_flush();
591 HIDIO_print_mode( HIDIO_PRINT_BUFFER_BULK );
592#endif
593 // Scan array of dictionaries and print every description
594 // (no alphabetical here, too much processing/memory to sort...)
595 for ( uint8_t dict = 0; dict < CLIDictionariesUsed; dict++ )
596 {
597 // Print the name of each dictionary as a title
598 print( NL "\033[1;32m" );
599 _print( CLIDictNames[dict] ); // This print is requride by AVR (flash)
600 print( "\033[0m" NL );
601
602 // Parse each cmd/description until a null command entry is found
603 for ( uint8_t cmd = 0; CLIDict[dict][cmd].name != 0; cmd++ )
604 {
605 dPrintStrs(" \033[35m", CLIDict[dict][cmd].name, "\033[0m");
606
607 // Determine number of spaces to tab by the length of the command and TabAlign
608 uint8_t padLength = CLIEntryTabAlign - lenStr( (char*)CLIDict[dict][cmd].name );
609 while ( padLength-- > 0 )
610 print(" ");
611
612 _print( CLIDict[dict][cmd].description ); // This print is required by AVR (flash)
613 print( NL );
614 }
615 }
616#if Output_HIDIOEnabled_define == 1
617 HIDIO_print_flush();
618 HIDIO_print_mode( HIDIO_PRINT_BUFFER_LINE );
619#endif
620}
621
622void printLatency( uint8_t resource )
623{

Callers

nothing calls this directly

Calls 4

HIDIO_print_flushFunction · 0.85
HIDIO_print_modeFunction · 0.85
_printFunction · 0.85
lenStrFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…