--- a/LPCBus/MC9_OnBoard_decl.c Thu Nov 03 10:53:38 2016 +0100
+++ b/LPCBus/MC9_OnBoard_decl.c Fri Nov 04 11:16:39 2016 +0100
@@ -151,16 +151,16 @@
#define REG_DISCRETE_START 0 /**< Input discrete start address */
-#define REG_DISCRETE_NREGS 512 /**< 512 bits (type: single bit, Read only) */
+#define REG_DISCRETE_NREGS 1024 /**< 1024 bits (type: single bit, Read only) */ #define REG_COILS_START 0 /**< Coils start address */
-#define REG_COILS_NREGS 512 /**< 512 bits (type: single bit, Read/Write) */
+#define REG_COILS_NREGS 1024 /**< 1024 bits (type: single bit, Read/Write) */ #define REG_INPUT_START 0 /**< Input registers start address */
-#define REG_INPUT_NREGS 512 /**< 512 words (type: 16-bit word, Read only) */
+#define REG_INPUT_NREGS 1024 /**< 1024 words (type: 16-bit word, Read only) */ #define REG_HOLDING_START 0 /**< Holding registers start address */
-#define REG_HOLDING_NREGS 512 /**< 512 words (type: 16-bit word, Read/Write) */
+#define REG_HOLDING_NREGS 1024 /**< 1024 words (type: 16-bit word, Read/Write) */ #define MAX_MOD_RTU_DEVICES 16
@@ -308,7 +308,7 @@
if(mbRtuDevTim[i].status != TIM_DISABLED)
- actTime = (uint64_t)nsTOus(rt_timer_read());
+ actTime = (uint64_t)nsTOms(rt_timer_read()); mbRtuDevTim[i].actValue += actTime - mbRtuDevTim[i].oldTime;
mbRtuDevTim[i].oldTime = actTime;