Content originally posted in LPCWare by jcottier on Thu May 09 05:02:16 MST 2013
The code for GPIO blinky has incorrect comments on it which can lead to utter confusion of how the GPIO and pin configuration works! :-
scu_pinmux(0xE ,7 , MD_PDN, FUNC4); // P8.1 : USB0_IND1 LED
As per the Embset schematic, the LED is in fact connected to Pin PE.7, which is GPIO7.7 (GPIO = Function 4 on this pin).
Now, all the parameters make sense, and I still have some hair left.