Merge pull request #5983 from smlng/pr/boards/remote-gpio_saul

boards/remote: add gpio and saul definitions
pr/spi.typo
Martine Lenders 7 years ago committed by GitHub
commit 03867a0009

@ -4,3 +4,6 @@ ifneq (,$(filter gnrc_netdev_default,$(USEMODULE)))
USEMODULE += gnrc_netdev2
USEMODULE += netdev2_ieee802154
endif
ifneq (,$(filter saul_default,$(USEMODULE)))
USEMODULE += saul_gpio
endif

@ -56,6 +56,13 @@
#define LED2_TOGGLE (GPIO_C->DATA ^= LED2_MASK)
/** @} */
/**
* @name User button pin definition
* @{
*/
#define BUTTON_GPIO GPIO_9_PIN
/** @} */
/**
* @name 2.4GHz RF switch controlled by SW
* @{

@ -0,0 +1,61 @@
/*
* Copyright (C) 2016 HAW Hamburg
*
* 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_remote-pa
* @{
*
* @file
* @brief Board specific configuration of direct mapped GPIOs
*
* @author smlng <s@mlng.net>
*/
#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(red)",
.pin = LED0_PIN,
.mode = GPIO_OUT
},
{
.name = "LED(green)",
.pin = LED1_PIN,
.mode = GPIO_OUT
},
{
.name = "LED(blue)",
.pin = LED2_PIN,
.mode = GPIO_OUT
},
{
.name = "Button(User)",
.pin = BUTTON_GPIO,
.mode = GPIO_IN_PU
},
};
#ifdef __cplusplus
}
#endif
#endif /* GPIO_PARAMS_H */
/** @} */

@ -56,6 +56,12 @@
#define LED2_TOGGLE (GPIO_D->DATA ^= LED2_MASK)
/** @} */
/**
* @name User button pin definition
* @{
*/
#define BUTTON_GPIO GPIO_3_PIN
/** @} */
/**
* @name RF switch controlled by SW
* @brief Controls which RF interface goes to the RP-SMA external antenna

@ -0,0 +1,61 @@
/*
* Copyright (C) 2016 HAW Hamburg
*
* 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_remote-reva
* @{
*
* @file
* @brief Board specific configuration of direct mapped GPIOs
*
* @author smlng <s@mlng.net>
*/
#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(red)",
.pin = LED0_PIN,
.mode = GPIO_OUT
},
{
.name = "LED(green)",
.pin = LED1_PIN,
.mode = GPIO_OUT
},
{
.name = "LED(blue)",
.pin = LED2_PIN,
.mode = GPIO_OUT
},
{
.name = "Button(User)",
.pin = BUTTON_GPIO,
.mode = GPIO_IN_PU
},
};
#ifdef __cplusplus
}
#endif
#endif /* GPIO_PARAMS_H */
/** @} */

@ -56,6 +56,13 @@
#define LED2_TOGGLE (GPIO_B->DATA ^= LED2_MASK)
/** @} */
/**
* @name User button pin definition
* @{
*/
#define BUTTON_GPIO GPIO_3_PIN
/** @} */
/**
* @name RF switch controlled by SW
* @brief Controls which RF interface goes to the RP-SMA external antenna

@ -0,0 +1,61 @@
/*
* Copyright (C) 2016 HAW Hamburg
*
* 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_remote-revb
* @{
*
* @file
* @brief Board specific configuration of direct mapped GPIOs
*
* @author smlng <s@mlng.net>
*/
#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(red)",
.pin = LED0_PIN,
.mode = GPIO_OUT
},
{
.name = "LED(green)",
.pin = LED1_PIN,
.mode = GPIO_OUT
},
{
.name = "LED(blue)",
.pin = LED2_PIN,
.mode = GPIO_OUT
},
{
.name = "Button(User)",
.pin = BUTTON_GPIO,
.mode = GPIO_IN_PU
},
};
#ifdef __cplusplus
}
#endif
#endif /* GPIO_PARAMS_H */
/** @} */
Loading…
Cancel
Save