Hi
I'm not too familiar with configuring pins for an LPC2129 and need to use one for an upcoming project. I've seen numerous ways of configuring the ports/pins etc. what is the easiest way to write these in C? is it possible to write PINSEL0|=(1<<28)(1<<29) to use GPIO port 0.14?
Your code misses a bit or.
Anyway, if you configure registers that has 2 bits/pin, it might be an idea to write:
PINSEL0 |= 3 << 28;
Then you can also write an enum that declares the values 0..3 that you can assign.