From e2ee57ffff6e95069e5bca8236df2c6e2560656c Mon Sep 17 00:00:00 2001 From: Antoni Adaszkiewicz Date: Thu, 12 Jan 2023 14:20:44 +0100 Subject: [PATCH] Enable GPIO tests for rpi4 Change-Id: Icd06acd96a4059da322431afd81af14d652a5a28 --- test/src/test_peripheral_gpio.c | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.34.1