]> www.average.org Git - pulsecounter.git/commitdiff
fix 16bit vs. 32bit error
authorEugene Crosser <crosser@average.org>
Thu, 28 Jan 2016 19:10:56 +0000 (22:10 +0300)
committerEugene Crosser <crosser@average.org>
Thu, 28 Jan 2016 19:10:56 +0000 (22:10 +0300)
msp430/Hal/Hal.c

index ad8576a259feb749e1045137256083e5fecbe288..d72597d7d36a70538182e56a3a46e6f07f236f11 100644 (file)
@@ -91,11 +91,11 @@ static void gpioHandler(uint8_t id);
 static void postEvent(uint8_t handlerId);
 
 static Hal_Handler appSettleHandler;
-static void (*appJitterHandler)(uint8_t id, uint16_t count);
+static void (*appJitterHandler)(uint8_t id, uint32_t count);
 static volatile uint16_t handlerEvents = 0;
 static uint16_t clockTick = 0;
 static Hal_Handler handlerTab[NUM_HANDLERS];
-static uint32_t gpioCount[3];
+static volatile uint32_t gpioCount[3] = {0};
 static bool timerActive[3] = {false, false, false};
 static uint16_t timerPoint[3];