[rtems commit] bsp/lpc24xx: Fix LPC24XX_IO_PORT_COUNT

Sebastian Huber sebh at rtems.org
Tue Jun 4 10:05:26 UTC 2019


Module:    rtems
Branch:    master
Commit:    98fc60145c723933c60d4e6faef66ad757092207
Changeset: http://git.rtems.org/rtems/commit/?id=98fc60145c723933c60d4e6faef66ad757092207

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Jun  4 12:04:55 2019 +0200

bsp/lpc24xx: Fix LPC24XX_IO_PORT_COUNT

---

 bsps/arm/lpc24xx/include/bsp/io.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/bsps/arm/lpc24xx/include/bsp/io.h b/bsps/arm/lpc24xx/include/bsp/io.h
index 07c5d51..97700d5 100644
--- a/bsps/arm/lpc24xx/include/bsp/io.h
+++ b/bsps/arm/lpc24xx/include/bsp/io.h
@@ -41,7 +41,11 @@ extern "C" {
  * @{
  */
 
-#define LPC24XX_IO_PORT_COUNT 5U
+#ifdef ARM_MULTILIB_ARCH_V7M
+  #define LPC24XX_IO_PORT_COUNT 6U
+#else
+  #define LPC24XX_IO_PORT_COUNT 5U
+#endif
 
 #define LPC24XX_IO_INDEX_MAX (LPC24XX_IO_PORT_COUNT * 32U)
 



More information about the vc mailing list