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.

How to use GPIO pins on dm365evm?

Hi all:

        I met some problems about GPIO usage on dm365evm. I didn't find any nods in /dev  or /proc directory. In dvsdk, there's no example about GPIO.

        And I found some codes and description in kernel files. Seems just got following steps to use GPIO:

1.

    /* set as input or output, returning 0 or negative errno */
    int gpio_direction_input(unsigned gpio);
    int gpio_direction_output(unsigned gpio, int value);

2.

    /* GPIO INPUT:  return zero or nonzero */
    int gpio_get_value(unsigned gpio);
    /* GPIO OUTPUT */
    void gpio_set_value(unsigned gpio, int value);

 

     Is that enough to configure and use the corresponding GPIOs? Thanks to all

Best regards;

Btw: Merry  X'mas~