mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 06:23:53 +01:00
87 lines
1.8 KiB
C
87 lines
1.8 KiB
C
/*
|
|
* SPDX-FileCopyrightText: 2024 Marian Buschsieweke
|
|
* SPDX-License-Identifier: LGPL-2.1-only
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
/**
|
|
* @ingroup boards_generic_cc2538_cc2592_dk
|
|
* @{
|
|
*
|
|
* @file
|
|
* @brief Definitions for the Generic CC2538-CC2592-DK Board
|
|
*
|
|
* @author Marian Buschsieweke <marian.buschsieweke@posteo.net>
|
|
*/
|
|
#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
|
|
|
|
/** @} */
|