--- a/LPCBus/MC9_OnBoard_decl.c Thu May 05 13:36:49 2016 +0200
+++ b/LPCBus/MC9_OnBoard_decl.c Fri May 13 08:17:29 2016 +0200
@@ -148,16 +148,16 @@
#define REG_DISCRETE_START 0 /**< Input discrete start address */
-#define REG_DISCRETE_NREGS 511 /**< 512 bits (type: single bit, Read only) */
+#define REG_DISCRETE_NREGS 512 /**< 512 bits (type: single bit, Read only) */ #define REG_COILS_START 0 /**< Coils start address */
-#define REG_COILS_NREGS 511 /**< 512 bits (type: single bit, Read/Write) */
+#define REG_COILS_NREGS 512 /**< 512 bits (type: single bit, Read/Write) */ #define REG_INPUT_START 0 /**< Input registers start address */
-#define REG_INPUT_NREGS 511 /**< 512 words (type: 16-bit word, Read only) */
+#define REG_INPUT_NREGS 512 /**< 512 words (type: 16-bit word, Read only) */ #define REG_HOLDING_START 0 /**< Holding registers start address */
-#define REG_HOLDING_NREGS 511 /**< 512 words (type: 16-bit word, Read/Write) */
+#define REG_HOLDING_NREGS 512 /**< 512 words (type: 16-bit word, Read/Write) */ #define MAX_MOD_RTU_DEVICES 16
--- a/LPCBus/MC9_OnBoard_init.c Thu May 05 13:36:49 2016 +0200
+++ b/LPCBus/MC9_OnBoard_init.c Fri May 13 08:17:29 2016 +0200
@@ -10,10 +10,6 @@
-/* XXX TODO: remove after initialization is done from Smarteh IDE: */
RTU_GPIO_dev = gpio_open(111);
fprintf(stderr, "Error while initializing RTU GPIO.\n");