boards/samr21: add SAUL led parameters

cc430
Kaspar Schleiser 7 years ago committed by Hauke Petersen
parent 02f502429d
commit 28e800d2d2

@ -68,6 +68,7 @@ extern "C" {
*/
#define LED_PORT PORT->Group[0]
#define LED_PIN (19)
#define LED_GPIO GPIO_PIN(0, 19)
/** @} */
/**

@ -0,0 +1,48 @@
/*
* 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>
*/
#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)",
.pin = LED_GPIO,
.dir = GPIO_DIR_OUT,
},
};
#ifdef __cplusplus
}
#endif
#endif /* GPIO_PARAMS_H */
/** @} */
Loading…
Cancel
Save