I couldn't make sense of that line at first until I realised it used things that were defined in the ".h" file, Having read the header a bit it is clearer.
I'm curious as to what the preceding two #define directives actually do though as they appear to be "nested".
Also would I need to disable interrupts or does that happen automatically? I'm not certain they'll be enabled in the first place but MBED has some "timer tick" functions that must use a timer, so I'm fairly sure there'll be at least one interrupt by default.
I think I read somewhere that interrupts had to be disabled for IAP unless you could copy your interrupt handler to RAM, so presumably the entire flash memory becomes inaccessible during programming. I might have misunderstood that bit? Somewhere else I read that interrupts had to be disabled before calling any IAP function as the entry code wasn't safe for interrupts.
I'm used to using PIC series microcontrollers with a typically 256 byte NVRAM block, basically high-endurance EEPROM.
The LPC devices do not appear to have an equivalent, but NXP AN11008 seems to describe a way to do this. Has anyone else tried importing it, or coded their own system?
Otherwise I should probably just fit an I2C EEPROM for configuration.