--- a/LPCBus/MC9_Devices_decl.c Mon Nov 14 08:57:37 2016 +0100
+++ b/LPCBus/MC9_Devices_decl.c Mon Nov 14 08:57:55 2016 +0100
@@ -225,8 +225,8 @@
#define UART_BUFSIZE_LONG 48 /* UART bus read & write buffer size - long buffer for LHC-2 */
#define UART_RETRY_NUM 10
-char uartBufSize = UART_BUFSIZE_LONG; /* Smarteh uart bus: buffer size */
-unsigned long uartBaudrate = 115200; /* Smarteh uart bus: baudrate */
+char uartBufSize = UART_BUFSIZE_SHORT; /* Smarteh uart bus: buffer size */ +unsigned long uartBaudrate = 19200; /* Smarteh uart bus: baudrate */ /* Tables containing information about connected devices on UART port
(initialized by Composer) */
@@ -626,12 +626,16 @@
+ case(178): /* AQ1, SM1, SM5, SM6, SM7 */ uartPortDevices[i] = &UARTDevice;
- uartPortTim[i].toValue = 20; /* 20 x10ms = 200ms */
+ uartPortTim[i].toValue = msTOns(250); /* 250ms */ uartPortTim[i].status = TIM_EN_RUNNING;
@@ -639,17 +643,13 @@
uartPortDevices[i] = &UARTDevice;
- uartPortTim[i].toValue = 60; /* 60 x10ms = 600ms */
+ uartPortTim[i].toValue = msTOns(650); /* 650ms */ uartPortTim[i].status = TIM_EN_RUNNING;
case(170): /* ID1, ID2, ID3 */
- uartPortDevices[i] = &UARTDevice;
- uartPortTim[i].toValue = 40; /* 40 x10ms = 400ms */
- uartPortTim[i].status = TIM_EN_RUNNING;
@@ -666,11 +666,22 @@
uartPortDevices[i] = &UARTDevice;
- uartPortTim[i].toValue = 40; /* 40 x10ms = 400ms */
+ uartPortTim[i].toValue = msTOns(450); /* 450ms */ uartPortTim[i].status = TIM_EN_RUNNING;
uartPortDevices[i] = NULL; /* "Empty" or unknown module */
uartPortTim[i].status = TIM_DISABLED;