This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3358 : GPIO read latency

Part Number: AM3358

Hello,

I'm using the AM3358 CPU to control my GPIO.

To improve speed, the driver has the following control:

pGPIO3 = (volatile unsigned char *)ioremap(0x481AE000, 0x1000);
pGPIO3_DIR = (volatile unsigned int *)(pGPIO3 + 0x134);
pGPIO3_IN = (volatile unsigned int *)(pGPIO3 + 0x138);
pGPIO3_OUT = (volatile unsigned int *)(pGPIO3 + 0x13C);

//write

*pGPIO3_OUT = val;

//read

val = *pGPIO3_IN;

However, GPIO Read time is much longer than write as shown below.

Is there any way to control faster without using a PRU?

Thank you.

Best regards.

gyosun.