Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 5 months ago.
LPC1768 GPIO code fails to compile on LPC4088 unless register names are changed for 32 bit access.
Hello,
Re: https://developer.mbed.org/handbook/mbed-library-internals
Why are FIO0MASK, FIO0PIN, FIO0MASKL, FIO0PINL and FIO0PIN1 etc... not defined in LPC408x.h?
They are defined in LPC176x.h and are used in NXP's manual for the LPC4088 UM10562.pdf.
LPC1768 low level GPIO programs fail to compile on LPC4088 unless register names are changed for full word access. Byte level access is not possible. Template definitions for fastOUT do not compile: inline LPC_GPIO_TypeDef* portdef() { return (LPC_GPIO_TypeDef*)(LPC_GPIO_BASE + ((pin - P0_0)/32)*0x20); }; inline uint32_t mask() { return 1UL<<((pin - LPC_GPIO0_BASE) % 32); }; etc...
Will an updated mbed library containing these definitions for the LPC4088 be released?
Thanks.