From b289c698b81fcfbf2ff8ac0065ce26b47f0f3162 Mon Sep 17 00:00:00 2001 From: Jean Pierre Dudey Date: Tue, 9 Feb 2021 13:29:07 +0100 Subject: [PATCH] cpu/cc26xx_cc13xx: define GPIO_PIN macro This allows using the macro inside the periph_conf.h board files since the periph/gpio.h header can't be included on the peripheral configuration. Signed-off-by: Jean Pierre Dudey --- cpu/cc26xx_cc13xx/include/periph_cpu_common.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cpu/cc26xx_cc13xx/include/periph_cpu_common.h b/cpu/cc26xx_cc13xx/include/periph_cpu_common.h index b22f4db6b9..71e9f2d046 100644 --- a/cpu/cc26xx_cc13xx/include/periph_cpu_common.h +++ b/cpu/cc26xx_cc13xx/include/periph_cpu_common.h @@ -65,6 +65,11 @@ typedef enum { GPIO_BOTH = IOCFG_EDGEDET_BOTH } gpio_flank_t; +/** + * @brief CPU specific GPIO pin generator macro + */ +#define GPIO_PIN(x, y) (((x) & 0) | (y)) + /* * @brief Invalid UART mode mask *