2015-11-30 12:39:15 +01:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2015 Freie Universität Berlin
|
|
|
|
* 2015 Kaspar Schleiser <kaspar@schleiser.de>
|
|
|
|
*
|
|
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
* directory for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @ingroup boards_samr21-xpro
|
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @file
|
|
|
|
* @brief Board specific configuration of direct mapped GPIOs
|
|
|
|
*
|
|
|
|
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
|
|
|
* @author Kaspar Schleiser <kaspar@schleiser.de>
|
2017-06-20 21:11:34 +02:00
|
|
|
* @author Sebastian Meiling <s@mlng.net>
|
2015-11-30 12:39:15 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GPIO_PARAMS_H
|
|
|
|
#define GPIO_PARAMS_H
|
|
|
|
|
|
|
|
#include "board.h"
|
|
|
|
#include "saul/periph.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief GPIO pin configuration
|
|
|
|
*/
|
|
|
|
static const saul_gpio_params_t saul_gpio_params[] =
|
|
|
|
{
|
|
|
|
{
|
|
|
|
.name = "LED(orange)",
|
2016-03-11 18:04:26 +01:00
|
|
|
.pin = LED0_PIN,
|
2017-09-08 13:35:19 +02:00
|
|
|
.mode = GPIO_OUT,
|
|
|
|
.flags = SAUL_GPIO_INVERTED,
|
2015-11-30 12:39:15 +01:00
|
|
|
},
|
2016-02-04 14:05:31 +01:00
|
|
|
{
|
|
|
|
.name = "Button(SW0)",
|
2017-06-20 21:11:34 +02:00
|
|
|
.pin = BTN0_PIN,
|
2017-09-08 13:35:19 +02:00
|
|
|
.mode = BTN0_MODE,
|
|
|
|
.flags = SAUL_GPIO_INVERTED,
|
2016-02-04 14:05:31 +01:00
|
|
|
},
|
2015-11-30 12:39:15 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* GPIO_PARAMS_H */
|
|
|
|
/** @} */
|