--- a/LPCBus.py Thu Nov 17 11:06:53 2016 +0100
+++ b/LPCBus.py Thu Nov 17 14:19:31 2016 +0100
@@ -19,6 +19,7 @@
# to be overloaded at import
from plcopen.structures import LOCATIONDATATYPES
@@ -209,7 +210,26 @@
+ bus_code = { "MC9:%s"%bus : + (GetLocalCode("%s.h"%("MC9"))) + GetLocalCode("%s_%s_%s.c"%("MC9",''.join(bus.split()),section)) if section=="decl" else GetLocalCode("%s_%s_%s.c"%("MC9",''.join(bus.split()),section)) + for section in ["decl", "init", "retrieve", "publish", "cleanup"]} + bus_code = { "MC9:%s"%bus : + GetLocalCode("%s_%s_%s.c"%("MC9",''.join(bus.split()),section)) + for section in ["decl", "init", "retrieve", "publish", "cleanup"]} + bus_code = { "MC9:%s"%bus : + GetLocalCode("%s_%s_%s.c"%("MC9",''.join(bus.split()),section)) + for section in ["decl", "init", "retrieve", "publish", "cleanup"]} for module in GetModuleChildren(self):
code_str["init_code"] += " %s\n" % module["init"]
--- a/LPCManager.py Thu Nov 17 11:06:53 2016 +0100
+++ b/LPCManager.py Thu Nov 17 14:19:31 2016 +0100
@@ -179,8 +179,10 @@
LPCBus_mod.LPCarch = "MC9"
LPCBus_mod.LPCarch = arch