From: Antoni Adaszkiewicz Date: Thu, 12 Jan 2023 13:20:44 +0000 (+0100) Subject: Enable GPIO tests for rpi4 X-Git-Tag: accepted/tizen/unified/20230215.155624~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e2ee57ffff6e95069e5bca8236df2c6e2560656c;p=platform%2Fcore%2Fapi%2Fperipheral-io.git Enable GPIO tests for rpi4 Change-Id: Icd06acd96a4059da322431afd81af14d652a5a28 --- diff --git a/test/src/test_peripheral_gpio.c b/test/src/test_peripheral_gpio.c index ec855dd..b24c0d1 100644 --- a/test/src/test_peripheral_gpio.c +++ b/test/src/test_peripheral_gpio.c @@ -20,6 +20,7 @@ #include "test_peripheral_gpio.h" #define GPIO_PIN_RPI3 26 +#define GPIO_PIN_RPI4 26 // for both rpi3/4 we use GPIO26, refer to https://docs.tizen.org/iot/guides/peripheral-io-api-gpio/ #define GPIO_PIN_ARTIK530 128 #define GPIO_PIN_INVALID -99 @@ -32,6 +33,8 @@ int test_peripheral_io_gpio_initialize(char *model, bool feature) if (!strcmp(model, "rpi3")) pin = GPIO_PIN_RPI3; + else if (!strcmp(model, "rpi4")) + pin = GPIO_PIN_RPI4; else if (!strcmp(model, "artik")) pin = GPIO_PIN_ARTIK530; else