From the user point of view the the main change is the addition of function
ldx_gpio_request_by_controller() which selects the gpio to use using following
arguments:
- controller: The controller name or alias of the GPIO to request.
- line: The line number of the GPIO to request.
- request_mode argument has been removed since that argument only has
sense for sysfs related functions as it controls the way the line is
exported and unexported.
The configuration file entries change to following format:
- USER_LED = mca-gpio,12
- USER_BUTTON = mca-gpio,10
Also improved argument parsing and help
https://jira.digi.com/browse/DEL-6425
Signed-off-by: Hector Bujanda hector.bujanda@digi.com
In previous implementation, if alias wanted to be used, it had to be passed twice.
https://jira.digi.com/browse/DEL-6425
Signed-off-by: Hector Bujanda <hector.bujanda@digi.com>
The first time that the example is run there was an error
related with an invalid value for the duty cycle.
With this fix we set the duty cycle to 0 when we close the example.
Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>