Added support for connecting LHC1-type devices on RS-485 bus when using LHC1_GOT_002.
--- a/LPCArch.py Mon Sep 15 13:14:29 2025 +0200
+++ b/LPCArch.py Thu Sep 25 15:02:21 2025 +0200
@@ -82,7 +82,7 @@
+ "header": "LHC1_GOT002", ("On Board", "SOM_OnBoard"),
("Devices", "SOM_Devices")]
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/LPCBus/LHC1_GOT002.h Thu Sep 25 15:02:21 2025 +0200
@@ -0,0 +1,4 @@
--- a/LPCBus/SOM_Devices_decl.c Mon Sep 15 13:14:29 2025 +0200
+++ b/LPCBus/SOM_Devices_decl.c Thu Sep 25 15:02:21 2025 +0200
@@ -486,6 +486,105 @@
+void InitUartPortDevices_shortBuffer(void) + uartTimeout.tv_sec = 0; + uartTimeout.tv_usec = 50000; /* 50 ms timeout */ + for(i=0;i<MAX_UART_DEVICES;i++) + /* **************************************************** */ + case(32): /* MU1 cache*/ + case(58): /* MU4 cache */ + case(60): /* MU5 cache */ + case(62): /* TH1 cache */ + /* ***************************************************** */ + /* ***************************************************** */ + /* ***************************************************** */ + /* ***************************************************** */ + case(132): /* VAV MU6 */ + case(134): /* GREASE1 */ + /* ***************************************************** */ + case(160): /* MU3 cache */ + case(162): /* MU2 cache */ + case(164): /* VAV Mu6 cache */ + case(166): /* GREASE1 cache */ + case(168): /* M3U cache */ + /* ***************************************************** */ + uartPortDevices[i] = &UARTDevice; + uartPortTim[i].toValue = msTOns(50); /* 50ms */ + uartPortTim[i].status = TIM_EN_RUNNING; + uartPortDevices[i] = NULL; /* "Empty" or unknown module */ + uartPortTim[i].status = TIM_DISABLED; void InitUartPortDevices_shortBuffer(void)
@@ -584,3 +683,4 @@
--- a/LPCBus/SOM_Devices_init.c Mon Sep 15 13:14:29 2025 +0200
+++ b/LPCBus/SOM_Devices_init.c Thu Sep 25 15:02:21 2025 +0200
@@ -30,6 +30,10 @@
+/* Clear connected devices array */ +for(int i=0;i<MAX_UART_DEVICES;i++) UART_fd = openserial(serialdev, uartBaudrate); /* uartBaudrate is initialized from Composer */