saul: add user button for samr21-xpro

This commit is contained in:
Cenk Gündoğan 2016-02-04 14:05:31 +01:00
parent 84b44f03dd
commit 0d1a8393ca

View File

@ -39,6 +39,12 @@ static const saul_gpio_params_t saul_gpio_params[] =
.dir = GPIO_DIR_OUT, .dir = GPIO_DIR_OUT,
.pull = GPIO_NOPULL, .pull = GPIO_NOPULL,
}, },
{
.name = "Button(SW0)",
.pin = BUTTON_GPIO,
.dir = GPIO_DIR_IN,
.pull = GPIO_PULLUP,
},
}; };
#ifdef __cplusplus #ifdef __cplusplus