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.

DM816x DVR RDK 00.07.00.02 run time read GPIO Input status

I need to read a GPIO input status in run time, anyone know how to do that?

i'm using DM816x DVR RDK board with version 00.07.00.02

I refer to the application source code "app_dio_if.c", i can only set a input sensor to detect falling edge or rising edge. and then wait for the interrupt.

How about if i need to read it in runtime? eg to get GPIO Input 1 is High or Low?

 

  • Hi Ken,

    By reading the GPIO sysfs entries we can know the status of the GPIO pins.

    Go through the GPIO user guide for more details for usage.

    http://processors.wiki.ti.com/index.php/Sitara_GPIO_Driver_User_Guide

    Regards

    AnilKumar

    Please mark this Forum post as answered via the Verify Answer button below if it helps answer your question.  Thanks!