Content originally posted in LPCWare by LessThanZero on Mon Apr 18 13:58:26 MST 2016
This is not the approach I would use. LPCOpen offers board and chip projects for each LPC part. The board libraries are a porting layer (of sorts), and the chip libraries support the peripheral features found on the part. If you copy the initialization code from each example, you're going to find they all mostly use the same calls found in the board/chip libraries (e.g. SystemCoreClockUpdate, Board_Init, etc.). Board_Init is typically where you setup your GPIO, peripherals, etc.. Calls to specific board/chip initialization could be done from main code, depending on how you want to do it.
Regards,
LessThanZero