]> git.donarmstrong.com Git - kiibohd-controller.git/blobdiff - Output/uartOut/output_com.c
HUGE AVR RAM optimization (~28%).
[kiibohd-controller.git] / Output / uartOut / output_com.c
index 4942b5797ec4c6a3e365eb44c35e2a65e6ddd229..0b3de2f8edd48564d63a847b822d2c4e54bf32f2 100644 (file)
@@ -54,13 +54,18 @@ void cliFunc_setMod     ( char* args );
 // ----- Variables -----
 
 // Output Module command dictionary
-const char outputCLIDictName[] = "USB Module Commands";
-const CLIDictItem outputCLIDict[] = {
-       { "kbdProtocol", "Keyboard Protocol Mode: 0 - Boot, 1 - OS/NKRO Mode", cliFunc_kbdProtocol },
-       { "readLEDs",    "Read LED byte:" NL "\t\t1 NumLck, 2 CapsLck, 4 ScrlLck, 16 Kana, etc.", cliFunc_readLEDs },
-       { "sendKeys",    "Send the prepared list of USB codes and modifier byte.", cliFunc_sendKeys },
-       { "setKeys",     "Prepare a space separated list of USB codes (decimal). Waits until \033[35msendKeys\033[0m.", cliFunc_setKeys },
-       { "setMod",      "Set the modfier byte:" NL "\t\t1 LCtrl, 2 LShft, 4 LAlt, 8 LGUI, 16 RCtrl, 32 RShft, 64 RAlt, 128 RGUI", cliFunc_setMod },
+CLIDict_Entry( kbdProtocol, "Keyboard Protocol Mode: 0 - Boot, 1 - OS/NKRO Mode" );
+CLIDict_Entry( readLEDs,    "Read LED byte:" NL "\t\t1 NumLck, 2 CapsLck, 4 ScrlLck, 16 Kana, etc." );
+CLIDict_Entry( sendKeys,    "Send the prepared list of USB codes and modifier byte." );
+CLIDict_Entry( setKeys,     "Prepare a space separated list of USB codes (decimal). Waits until \033[35msendKeys\033[0m." );
+CLIDict_Entry( setMod,      "Set the modfier byte:" NL "\t\t1 LCtrl, 2 LShft, 4 LAlt, 8 LGUI, 16 RCtrl, 32 RShft, 64 RAlt, 128 RGUI" );
+
+CLIDict_Def( outputCLIDict, "USB Module Commands" ) = {
+       CLIDict_Item( kbdProtocol ),
+       CLIDict_Item( readLEDs ),
+       CLIDict_Item( sendKeys ),
+       CLIDict_Item( setKeys ),
+       CLIDict_Item( setMod ),
        { 0, 0, 0 } // Null entry for dictionary end
 };