From 98fc60145c723933c60d4e6faef66ad757092207 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 4 Jun 2019 12:04:55 +0200 Subject: bsp/lpc24xx: Fix LPC24XX_IO_PORT_COUNT --- bsps/arm/lpc24xx/include/bsp/io.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bsps/arm/lpc24xx/include/bsp') 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) -- cgit v1.2.3