From f7127fa2b7862ede155c0a1ec178b0e1ceca3b14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20H=C3=BC=C3=9Fler?= Date: Tue, 27 Jul 2021 11:21:51 +0200 Subject: [PATCH] cpu/rpx0xx: fix unused port warning due to GPIO_PIN macro --- cpu/rpx0xx/include/periph_cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/rpx0xx/include/periph_cpu.h b/cpu/rpx0xx/include/periph_cpu.h index 1f0ea78122..2330de3efd 100644 --- a/cpu/rpx0xx/include/periph_cpu.h +++ b/cpu/rpx0xx/include/periph_cpu.h @@ -235,7 +235,7 @@ extern "C" { * @note The RPX0XX MCU family only has a single GPIO port. Still the API requires a * port parameter, which is currently ignored. */ -#define GPIO_PIN(port, pin) (pin) +#define GPIO_PIN(port, pin) ((((port) & 0)) | (pin)) /** * @brief Overwrite the default gpio_t type definition