| 585 | #endif |
| 586 | |
| 587 | void 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 | |
| 622 | void printLatency( uint8_t resource ) |
| 623 | { |
nothing calls this directly
no test coverage detected
searching dependent graphs…