boards: samr21-xpro: add user button gpio

This commit is contained in:
Cenk Gündoğan 2016-02-04 13:58:03 +01:00
parent ca8dbbac20
commit b751d79bf5

View File

@ -77,6 +77,15 @@ extern "C" {
#define LED_RED_TOGGLE LED_TOGGLE
/** @} */
/**
* @name SW0 (Button) pin definitions
* @{
*/
#define BUTTON_PORT PORT->Group[0]
#define BUTTON_PIN (28)
#define BUTTON_GPIO GPIO_PIN(0, BUTTON_PIN)
/** @} */
/**
* @brief Initialize board specific hardware, including clock, LEDs and std-IO
*/