--- a/LPCBus/SOM_Devices_decl.c Tue Nov 08 11:06:14 2022 +0100
+++ b/LPCBus/SOM_Devices_decl.c Tue Feb 14 12:06:23 2023 +0100
@@ -5,9 +5,7 @@
-#include <alchemy/task.h>
-#include <alchemy/mutex.h>
-#include <alchemy/timer.h>
@@ -141,7 +139,9 @@
static uint64_t lastCommTime=0;
struct sched_param param = { .sched_priority = 10 };
pthread_setname_np(pthread_self(), "UART_task");
pthread_setschedparam(pthread_self(), SCHED_FIFO, ¶m);
--- a/LPCBus/SOM_OnBoard_decl.c Tue Nov 08 11:06:14 2022 +0100
+++ b/LPCBus/SOM_OnBoard_decl.c Tue Feb 14 12:06:23 2023 +0100
@@ -1,6 +1,5 @@
/*------------------------- GPIO -------------------------------------*/
--- a/LPCExtension.py Tue Nov 08 11:06:14 2022 +0100
+++ b/LPCExtension.py Tue Feb 14 12:06:23 2023 +0100
@@ -8,7 +8,7 @@
from POULibrary import SimplePOULibraryFactory
-from LPCArch import GetLPCProduct, GetLPCSOM, MC9_modules, WX_GOT_modules, SVG_GOT_modules, GetLPCArch
+from LPCArch import GetLPCProduct, GetLPCSOM, WX_GOT_modules, SOM28_modules, SOM6_modules, SVG_GOT_modules, GetLPCArch # _lpcmanager_path, arch, etc are defined here because
# globals() of LPCManager.py are passed to extentions
@@ -20,12 +20,12 @@
return os.path.join(_lpcmanager_path, 'Pous', "pous"+name+".xml")
product = GetLPCProduct()
-if product in MC9_modules + WX_GOT_modules + SVG_GOT_modules:
+if product in SOM28_modules + SOM6_modules: features.libraries += [('Python', 'py_ext.PythonLibrary', True),
('RTC', SimplePOULibraryFactory(_poulibpath("RTC")), True)]
if product in WX_GOT_modules + SVG_GOT_modules:
features.libraries += [('GOT', SimplePOULibraryFactory(_poulibpath("GOT")), True)]
- if product in SVG_GOT_modules:
+ if product in SOM6_modules: features.libraries += [('SVGHMI', 'LPCSVGHMI.SVGHMILibrary', True)]
features.libraries += [('LPC', SimplePOULibraryFactory(_poulibpath("LPC")), True)]
@@ -48,7 +48,7 @@
('LPCBus', _('LPC bus'), _('Support for Smarteh modules'), 'LPCBus.LPCBus'),
('CanOpen', _('CANOpen'), _('Support for CANopen'), 'LPCCanFestival.LPCCanOpen')]
-if product in SVG_GOT_modules:
+if product in SOM6_modules: features.catalog += [ catalog_index['svghmi'][:3]+('LPCSVGHMI.SVGHMI',) ]
# --------- Connectors Extension ------------
@@ -77,10 +77,17 @@
+ # added for MM1 dev, TODO merge with SOM6 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"],
+ "xsd": os.path.join(_lpcmanager_path, som+"target", XSDname), + "class": targets.targets[rtosname]["class"], + "code": {"plc_"+som+"_main.c": targets.targets[rtosname]["code"]["plc_"+rtosname+"_main.c"], "plc_"+som+"_main_retain.c": os.path.join(_lpcmanager_path,
"plc_"+som+"_main_retain.c")}}}
--- a/LPCProjectController.py Tue Nov 08 11:06:14 2022 +0100
+++ b/LPCProjectController.py Tue Feb 14 12:06:23 2023 +0100
@@ -155,11 +155,12 @@
ProjectController.LoadProject(self, ProjectPath, BuildPath)
- canopen_child = self.GetChildByName("CanOpen")
- if canopen_child is None:
- canopen = self.CTNAddChild("CanOpen", "CanOpen", 0)
- canopen.CTNRequestSave()
+ if GetLPCProduct() != "MM1": + canopen_child = self.GetChildByName("CanOpen") + if canopen_child is None: + canopen = self.CTNAddChild("CanOpen", "CanOpen", 0) + canopen.CTNRequestSave() self.SetParamsAttribute('BeremizRoot.TargetType', self.arch)
--- a/SOM6Target/plc_SOM6_main_retain.c Tue Nov 08 11:06:14 2022 +0100
+++ b/SOM6Target/plc_SOM6_main_retain.c Tue Feb 14 12:06:23 2023 +0100
@@ -1,3 +1,7 @@
#define NVRAM_SIZE 0x10000