1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/boards/generic-cc2538-cc2592-dk/include/gpio_params.h
Marian Buschsieweke 947d05ed77
boards/generic-cc2538-cc2592-dk: add board support
The CC2538-CC2592-DK is one of the few readily available and
affordable boards featuring a legacy CC2538 MCU. This should make
maintaining RIOT support for that legacy MCU more affordable :-)
2024-01-05 00:00:48 +01:00

92 lines
2.0 KiB
C

/*
* Copyright (C) 2024 Marian Buschsieweke
*
* 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_generic_cc2538_cc2592_dk
* @{
*
* @file
* @brief Definitions for the Generic CC2538-CC2592-DK Board
*
* @author Marian Buschsieweke <marian.buschsieweke@posteo.net>
*/
#ifndef GPIO_PARAMS_H
#define GPIO_PARAMS_H
#include "board.h"
#include "saul/periph.h"
#ifdef __cplusplus
extern "C"
{
#endif
/**
* @brief Expose LEDs and buttons via SAUL
*/
static const saul_gpio_params_t saul_gpio_params[] =
{
{
.name = "LED Green",
.pin = LED_GREEN_PIN,
.mode = GPIO_OUT,
},
{
.name = "LED Red",
.pin = LED_RED_PIN,
.mode = GPIO_OUT,
},
{
.name = "LED Yellow",
.pin = LED_YELLOW_PIN,
.mode = GPIO_OUT,
},
{
.name = "LED Blue",
.pin = LED_BLUE_PIN,
.mode = GPIO_OUT,
},
{
.name = "BTN Left",
.pin = BTN_LEFT_PIN,
.mode = BTN_LEFT_MODE,
.flags = SAUL_GPIO_INVERTED,
},
{
.name = "BTN Right",
.pin = BTN_RIGHT_PIN,
.mode = BTN_RIGHT_MODE,
.flags = SAUL_GPIO_INVERTED,
},
{
.name = "BTN Up",
.pin = BTN_UP_PIN,
.mode = BTN_UP_MODE,
.flags = SAUL_GPIO_INVERTED,
},
{
.name = "BTN Down",
.pin = BTN_DOWN_PIN,
.mode = BTN_DOWN_MODE,
.flags = SAUL_GPIO_INVERTED,
},
{
.name = "BTN Select",
.pin = BTN_SELECT_PIN,
.mode = BTN_DOWN_MODE,
.flags = SAUL_GPIO_INVERTED,
},
};
#ifdef __cplusplus
}
#endif
#endif /* GPIO_PARAMS_H */
/** @} */