From 37c71434dda729b2c632487a63d7af9c8a2087cc Mon Sep 17 00:00:00 2001 From: Devan Lai Date: Fri, 7 Aug 2015 22:32:57 -0700 Subject: [PATCH] [LPC15XX] Fix GPIO port word pin registers offset Adjust offset for GPIO port word pin registers from 0x100 to 0x1000 --- .../mbed/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/LPC15xx.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/LPC15xx.h b/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/LPC15xx.h index 60469c47e2..f190c1e496 100644 --- a/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/LPC15xx.h +++ b/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/LPC15xx.h @@ -159,9 +159,9 @@ typedef enum { typedef struct { /*!< GPIO_PORT Structure */ __IO uint8_t B[76]; /*!< Byte pin registers */ - __I uint32_t RESERVED0[45]; + __I uint32_t RESERVED0[1005]; __IO uint32_t W[76]; /*!< Word pin registers */ - __I uint32_t RESERVED1[1908]; + __I uint32_t RESERVED1[948]; __IO uint32_t DIR[3]; /*!< Port Direction registers */ __I uint32_t RESERVED2[29]; __IO uint32_t MASK[3]; /*!< Port Mask register */