lpcmanager

Parents ba069bb5bfd7
Children 207c82474300
Fixed timer initialization for uart devices with short buffer. Added selectors for the following uart devices: AQ1, SM1, SM5, SM6, SM7, WP1, WP2 and WT1.
--- a/LPCBus/MC9_Devices_decl.c Fri Nov 11 13:35:34 2016 +0100
+++ b/LPCBus/MC9_Devices_decl.c Fri Nov 11 14:54:31 2016 +0100
@@ -626,12 +626,16 @@
case(164):
case(166):
case(168):
+ case(178): /* AQ1, SM1, SM5, SM6, SM7 */
+ case(180):
+ case(182):
+ case(184):
case(186): /* TH1V */
case(188):
case(190):
case(192):
uartPortDevices[i] = &UARTDevice;
- uartPortTim[i].toValue = 20; /* 20 x10ms = 200ms */
+ uartPortTim[i].toValue = msTOns(250); /* 250ms */
uartPortTim[i].status = TIM_EN_RUNNING;
break;
case(146): /* CH1 */
@@ -639,17 +643,13 @@
case(150):
case(152):
uartPortDevices[i] = &UARTDevice;
- uartPortTim[i].toValue = 60; /* 60 x10ms = 600ms */
+ uartPortTim[i].toValue = msTOns(650); /* 650ms */
uartPortTim[i].status = TIM_EN_RUNNING;
break;
case(170): /* ID1, ID2, ID3 */
case(172):
case(174):
case(176):
- uartPortDevices[i] = &UARTDevice;
- uartPortTim[i].toValue = 40; /* 40 x10ms = 400ms */
- uartPortTim[i].status = TIM_EN_RUNNING;
- break;
case(194): /* DP1V */
case(196):
case(198):
@@ -666,11 +666,22 @@
case(220):
case(222):
case(224):
+ case(226): /* WP1 */
+ case(228):
+ case(230):
+ case(232):
+ case(234): /* WP2 */
+ case(236):
+ case(238):
+ case(240):
+ case(242): /* WT1 */
+ case(244):
+ case(246):
+ case(248):
uartPortDevices[i] = &UARTDevice;
- uartPortTim[i].toValue = 40; /* 40 x10ms = 400ms */
+ uartPortTim[i].toValue = msTOns(450); /* 450ms */
uartPortTim[i].status = TIM_EN_RUNNING;
break;
-
default:
uartPortDevices[i] = NULL; /* "Empty" or unknown module */
uartPortTim[i].status = TIM_DISABLED;