GPIO code update

Adds capability to define GPIO by label and by chip
for Linux systems
This commit is contained in:
2021-09-23 17:58:44 +02:00
parent 599ff6b45a
commit f40f783cb4
4 changed files with 139 additions and 65 deletions

View File

@ -12,7 +12,7 @@ ReturnValue_t gpio::createRpiGpioConfig(GpioCookie* cookie, gpioId_t gpioId, int
return HasReturnvaluesIF::RETURN_FAILED;
}
GpiodRegular* config = new GpiodRegular();
auto config = new GpiodRegularByChip();
/* Default chipname for Raspberry Pi. There is still gpiochip1 for expansion, but most users
will not need this */
config->chipname = "gpiochip0";