]> git.donarmstrong.com Git - kiibohd-kll.git/commitdiff
Adding cabilities index to kll compiler
authorJacob Alexander <haata@kiibohd.com>
Fri, 18 Sep 2015 07:09:17 +0000 (00:09 -0700)
committerJacob Alexander <haata@kiibohd.com>
Fri, 18 Sep 2015 07:09:17 +0000 (00:09 -0700)
- Including remote reload example configuration

backends/kiibohd.py
layouts/remote_reload.kll [new file with mode: 0644]
templates/kiibohdDefs.h

index 4eb427f678299bd75a50c2bfb1a2276346bbc26f..70fd58c8e7c97dae0a121c36ed6223cf4fc974ca 100644 (file)
@@ -131,6 +131,7 @@ class Backend( BackendBase ):
                ## 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 @@ class Backend( BackendBase ):
                        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 --git a/layouts/remote_reload.kll b/layouts/remote_reload.kll
new file mode 100644 (file)
index 0000000..9ae9178
--- /dev/null
@@ -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;
+
index 93531b03faf3579f51cfd3a3ee48ecaa9fa29c1c..259de788223642343a48ab6d6999d4c383afa686 100644 (file)
 
 #pragma once
 
+// ----- Enums -----
+
+// Capability Indices
+<|CapabilitiesIndices|>
+
+
+
 // ----- KLL Variables -----
 <|VariableInformation|>