summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bsps/arm/lpc24xx/include/bsp/io.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/bsps/arm/lpc24xx/include/bsp/io.h b/bsps/arm/lpc24xx/include/bsp/io.h
index 07c5d51afd..97700d58bc 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)