Newbie question LPC2138
Hi,
I’m testing freeRTOS on an olimex LPC-MT-2138 evaluation board and it runs well. I’m trying to change the button interrupt from P0_14 to PO_15 (where my button is), but P0_14 seems to be defined as bit 28 on P0 where I would have expected it to be bit 14?
#define mainP0_14__EINT_1 ( 2 << 28 )
I would normally use the bitmask 0x00004000 for P0.14 which isn’t (2<<28)
What am I missing?
Thanks in advance.
Ben
Newbie question LPC2138
It’s OK, I found the solution. I didn’t realise that the first 16 pins are on PINSEL0 and the next 16 on PINSEL1.