Enable GPIO tests for rpi4 72/286772/4
authorAntoni Adaszkiewicz <a.adaszkiewi@samsung.com>
Thu, 12 Jan 2023 13:20:44 +0000 (14:20 +0100)
committerAntoni Adaszkiewicz <a.adaszkiewi@samsung.com>
Mon, 13 Feb 2023 13:33:11 +0000 (14:33 +0100)
Change-Id: Icd06acd96a4059da322431afd81af14d652a5a28

test/src/test_peripheral_gpio.c

index ec855dd02977c4b7687ad4baa8631bfcd63c37e0..b24c0d1928e4e75202b27138847f4748321a12bf 100644 (file)
@@ -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