// Enable AHB clock for GPIO ports LPC_SYSCON->SYSAHBCLKCTRL |= _BV(AHB_GPIO1) | _BV(AHB_GPIO0);
LPC_SYSCON->SYSOSCCTRL = 0; LPC_SYSCON->PDRUNCFG &= ~(1 << 5); LPC_SYSCON->SYSOSCCTRL = 1;
NXP gets points for removing restrictions on the free version of their LPCXpresso IDE, namely C++ support is now included, and code size limitations eased or removed.
I've done quite a lot of programming on LPCs (great chips and environment BTW) ...
one letter makes all the difference