gpio_direction_input
The interface has the following parameters.
- Synopsis:
int gpio_direction_input(unsigned gpio)
- Description: The function is used to set a GPIO interface as input.
- Parameter:
- gpio: The GPIO index number.
- Return:
- Success: 0.
- Failure: Error code.