saul: add user button for samr21-xpro
This commit is contained in:
parent
84b44f03dd
commit
0d1a8393ca
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user