From 90ad11e62316fbf609fcf7b4ddc1aea392c6249b Mon Sep 17 00:00:00 2001 From: Eugene Crosser Date: Thu, 28 Jan 2016 22:10:56 +0300 Subject: [PATCH] fix 16bit vs. 32bit error --- msp430/Hal/Hal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]; -- 2.43.0