Programming mbed

17 Mar 2012

I want to program the mbed using the online compiler, but without using mbed library, I want to access registers direct, like in the example:

PINSEL3 =0x00000000; FIO2DIR2 =0x00; ..........

To understand what I want. I included the LPC17xx.h file but it gives error that PINSEL3 is not declared. How in the name of god can I do it. Give me some instructions....pleeeaaseee.

Thanks.

18 Mar 2012

here's an example

LPC_SC->PCONP |= 1<<2;
LPC_SC->PCLKSEL0 |= 3<<4;

look at the lpc17xx.h file for the names of other registers