From: Eugene Crosser Date: Thu, 28 Jan 2016 19:10:56 +0000 (+0300) Subject: fix 16bit vs. 32bit error X-Git-Url: http://www.average.org/gitweb/?p=pulsecounter.git;a=commitdiff_plain;h=90ad11e62316fbf609fcf7b4ddc1aea392c6249b fix 16bit vs. 32bit error --- diff --git a/msp430/Hal/Hal.c b/msp430/Hal/Hal.c index ad8576a..d72597d 100644 --- a/msp430/Hal/Hal.c +++ b/msp430/Hal/Hal.c @@ -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];