Content originally posted in LPCWare by mp035 on Wed Sep 03 17:41:14 MST 2014
Thanks for the tips.
Can I ask one more question, I know where the peripheral register word names are defined, but I can not find any standard definitions for the bit positions, as there is in your code example. Can you point me to where they are?
To be clear, this is so that my code is more readable, ie:
<code>
LPC_SYSCTL->SYSAHBCLKCTRL |= (1 << SYSCTL_CLOCK_IOCON);
<code>
instead of:
<code>
LPC_SYSCTL->SYSAHBCLKCTRL |= (1 << 16);
<code>