gpio_request
The interface has the following parameters.
- Synopsis:
int gpio_request(unsigned gpio, const char * label)
- Description: The function is used to request access to a GPIO interface.
- Parameter:
- gpio: The GPIO index number.
- label: The GPIO name. Leave it as NULL if you have no idea.
- Return:
- Success: 0.
- Failure: Error code.