1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

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 <me@jeandudey.tech>
This commit is contained in:
Jean Pierre Dudey 2021-02-09 13:29:07 +01:00
parent 64779b6f98
commit b289c698b8

View File

@ -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
*