[PATCH 5/7] bsps: Fix redefine warning

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Jan 12 09:14:50 UTC 2018


From: Chris Johns <chrisj at rtems.org>

---
 c/src/lib/libbsp/shared/include/gpio.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/c/src/lib/libbsp/shared/include/gpio.h b/c/src/lib/libbsp/shared/include/gpio.h
index 7d8f67b171..64a877ae7a 100644
--- a/c/src/lib/libbsp/shared/include/gpio.h
+++ b/c/src/lib/libbsp/shared/include/gpio.h
@@ -42,6 +42,7 @@ extern "C" {
   #define GPIO_BANK_COUNT (BSP_GPIO_PIN_COUNT / BSP_GPIO_PINS_PER_BANK) + 1
 #else
   #define GPIO_BANK_COUNT BSP_GPIO_PIN_COUNT / BSP_GPIO_PINS_PER_BANK
+  #undef GPIO_LAST_BANK_PINS
   #define GPIO_LAST_BANK_PINS BSP_GPIO_PINS_PER_BANK
 #endif
 
-- 
2.12.3




More information about the devel mailing list