Fix for #2876
Stavros Passas
stavros.passas at movidius.com
Thu May 18 22:21:31 UTC 2017
Hello all,
I noticed there are some bugs in trac with the "need funding" tag (which I
guess means they are unassigned). Thus I said to try helping knocking them
down, so here is a fix for ticket #2876:
>From f40a4325568e36749e5a762504cc27863fadbfd2 Mon Sep 17 00:00:00 2001
From: Stavros Passas <stavros.passas at movidius.com>
Date: Thu, 18 May 2017 23:09:21 +0100
Subject: [PATCH] Fix gpio warning/error checking. Fixes #2876
---
c/src/lib/libbsp/shared/gpio.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/c/src/lib/libbsp/shared/gpio.c b/c/src/lib/libbsp/shared/gpio.c
index 9ceeb407..ffbedbc 100644
--- a/c/src/lib/libbsp/shared/gpio.c
+++ b/c/src/lib/libbsp/shared/gpio.c
@@ -159,7 +159,7 @@ static rtems_chain_control gpio_group;
#define BANK_NUMBER(pin_number) pin_number / BSP_GPIO_PINS_PER_BANK
#define PIN_NUMBER(pin_number) pin_number % BSP_GPIO_PINS_PER_BANK
-static int debounce_switch(gpio_pin_interrupt_state *interrupt_state)
+static int32_t debounce_switch(gpio_pin_interrupt_state *interrupt_state)
{
rtems_interval time;
@@ -204,7 +204,7 @@ static void generic_bank_isr(void *arg)
uint32_t bank_number;
uint32_t bank_start_pin;
uint8_t handled_count;
- uint8_t rv;
+ int32_t rv;
uint8_t i;
bank_number = *((uint32_t*) arg);
--
2.7.4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20170518/2537bc2f/attachment.html>
More information about the devel
mailing list