--- a/LPCArch.py Wed May 29 13:42:55 2019 +0200
+++ b/LPCArch.py Thu May 30 10:49:24 2019 +0200
@@ -16,12 +16,16 @@
+ if product in SOM28_modules: + if product in SOM6_modules: if product in SOM28_modules:
- bus_template_name = "MC9"
elif product in SOM6_modules:
- bus_template_name = "MC10"
- bus_template_name = "MC8"
- bus_template_name = None
--- a/LPCBus.py Wed May 29 13:42:55 2019 +0200
+++ b/LPCBus.py Thu May 30 10:49:24 2019 +0200
@@ -19,9 +19,9 @@
("Devices", "uC_Devices")],
"MC9" :[ ("Right", "SOM28_Right"),
("On Board", "SOM_OnBoard"),
- ("Devices", "SOM_Devices" ],
+ ("Devices", "SOM_Devices")], "MC10" :[("On Board", "SOM_OnBoard"),
- ("Devices", "SOM_Devices" ]}
+ ("Devices", "SOM_Devices")]} # This matches names of .h files in LPCBus with product from LPCArch
@@ -30,7 +30,7 @@
bus_template_code = { plc: GetLocalCode(
--- a/LPCExtension.py Wed May 29 13:42:55 2019 +0200
+++ b/LPCExtension.py Thu May 30 10:49:24 2019 +0200
@@ -8,7 +8,7 @@
from POULibrary import SimplePOULibraryFactory
-from LPCArch import GetLPCProduct, MC9_modules, WX_GOT_modules, SVG_GOT_modules
+from LPCArch import GetLPCProduct, GetLPCSOM, MC9_modules, WX_GOT_modules, SVG_GOT_modules # _lpcmanager_path, arch, etc are defined here because
# globals() of LPCManager.py are passed to extentions
@@ -66,21 +66,22 @@
from LPCtarget import LPC_target
+ targets.targets = {product : { + "xsd": os.path.join(_lpcmanager_path, som+"target", "XSD"), + "class": targets.targets["Xenomai"]["class"], + "code": {"plc_"+som+"_main.c": targets.targets["Xenomai"]["code"]["plc_Xenomai_main.c"], + "plc_"+som+"_main_retain.c": os.path.join(_lpcmanager_path, + "plc_"+som+"_main_retain.c")}}} # targets.targets["LPC"] = {"xsd": os.path.join(_lpcmanager_path, "LPCtarget", "XSD"),
# "class": lambda: LPC_target,
# "code": {os.path.join(_lpcmanager_path, "LPCtarget", "plc_LPC_main.c")}}
# targets.toolchains["makefile"] = os.path.join(_lpcmanager_path, "LPCtarget", "XSD_toolchain_makefile")
-# for arch in SOM28_modules:
-targets.targets = {arch : {
- "xsd": os.path.join(_lpcmanager_path, "SOM28target", "XSD"),
- "class": targets.targets["Xenomai"]["class"],
- "code": {"plc_SOM28_main.c": targets.targets["Xenomai"]["code"]["plc_Xenomai_main.c"],
- "plc_SOM28_main_retain.c": os.path.join(_lpcmanager_path,
- "plc_SOM28_main_retain.c")}}}
# --------- Custom columns function Extension ------------