# HG changeset patch # User Jacob Alexander # Date 1442560157 25200 # Node ID 755909ff48d17983eb043f48b9261992f30118f1 # Parent 99812c8f735cc98ca351b5637958dffc770b8e45 Adding cabilities index to kll compiler - Including remote reload example configuration diff -r 99812c8f735c -r 755909ff48d1 backends/kiibohd.py --- a/backends/kiibohd.py Fri Aug 21 20:43:04 2015 -0700 +++ b/backends/kiibohd.py Fri Sep 18 00:09:17 2015 -0700 @@ -131,6 +131,7 @@ ## Capabilities ## self.fill_dict['CapabilitiesFuncDecl'] = "" self.fill_dict['CapabilitiesList'] = "const Capability CapabilitiesList[] = {\n" + self.fill_dict['CapabilitiesIndices'] = "typedef enum CapabilityIndex {\n" # Keys are pre-sorted for key in capabilities.keys(): @@ -138,8 +139,10 @@ argByteWidth = capabilities.totalArgBytes( key ) self.fill_dict['CapabilitiesList'] += "\t{{ {0}, {1} }},\n".format( funcName, argByteWidth ) self.fill_dict['CapabilitiesFuncDecl'] += "void {0}( uint8_t state, uint8_t stateType, uint8_t *args );\n".format( funcName ) + self.fill_dict['CapabilitiesIndices'] += "\t{0}_index,\n".format( funcName ) self.fill_dict['CapabilitiesList'] += "};" + self.fill_dict['CapabilitiesIndices'] += "} CapabilityIndex;" ## Results Macros ## diff -r 99812c8f735c -r 755909ff48d1 layouts/remote_reload.kll --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/layouts/remote_reload.kll Fri Sep 18 00:09:17 2015 -0700 @@ -0,0 +1,12 @@ +Name = RemoteReload; +Version = 0.1; +Author = "HaaTa (Jacob Alexander) 2015"; +KLL = 0.3c; + +# Modified Date +Date = 2015-09-01; + + +# Bootloader Remote Reload Enable +flashModeEnabled = 1; + diff -r 99812c8f735c -r 755909ff48d1 templates/kiibohdDefs.h --- a/templates/kiibohdDefs.h Fri Aug 21 20:43:04 2015 -0700 +++ b/templates/kiibohdDefs.h Fri Sep 18 00:09:17 2015 -0700 @@ -19,6 +19,13 @@ #pragma once +// ----- Enums ----- + +// Capability Indices +<|CapabilitiesIndices|> + + + // ----- KLL Variables ----- <|VariableInformation|>