Content originally posted in LPCWare by Deepak Bansal on Fri Sep 28 22:08:26 MST 2012
I have checked its disassembly,
LPC_GPIO->SET[tft_rst_port] = tft_rst_pin;
0x00000DAE F44F4180 MOV r1,#0x4000
0x00000DB2 4895 LDR r0,[pc,#596] ; @0x00001008
0x00000DB4 3080 ADDS r0,r0,#0x80
0x00000DB6 6041 STR r1,[r0,#0x04]
Single instruction SET, has 4 cycle.
Any single cycle inst to set & clr pin, in C.
Or
How could I add assembly in C.
I am using Keil V 4.54.0.0