gpio_direction_output
The interface has the following parameters.
- Synopsis:
int gpio_direction_output(unsigned gpio, int value)
- Description: The function is used to set a GPIO interface as output.
- Parameter:
- gpio: The GPIO index number.
- value: The expected level, 0 as low level, 1 as high level
- Return:
- Success: 0.
- Failure: Error code.