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

cpu/rpx0xx: fix unused port warning due to GPIO_PIN macro

This commit is contained in:
Fabian Hüßler 2021-07-27 11:21:51 +02:00
parent e3b52ff08d
commit f7127fa2b7

View File

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