[rtems commit] bsps: Fix redefine warning
Sebastian Huber
sebh at rtems.org
Mon Jan 15 06:26:59 UTC 2018
Module: rtems
Branch: master
Commit: 5b94266e6629d5d83563d460d8d1ed1dfb33d80d
Changeset: http://git.rtems.org/rtems/commit/?id=5b94266e6629d5d83563d460d8d1ed1dfb33d80d
Author: Chris Johns <chrisj at rtems.org>
Date: Fri Jan 12 10:02:37 2018 +0100
bsps: Fix redefine warning
---
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 7d8f67b..64a877a 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
More information about the vc
mailing list