mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-19 03:23:49 +01:00
52 lines
981 B
C
52 lines
981 B
C
/*
|
|
* SPDX-FileCopyrightText: 2019 Inria
|
|
* SPDX-FileCopyrightText: 2019 Freie Universität Berlin
|
|
* SPDX-FileCopyrightText: 2019 Kaspar Schleiser <kaspar@schleiser.de>
|
|
* SPDX-License-Identifier: LGPL-2.1-only
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
/**
|
|
* @ingroup boards_pyboard
|
|
* @{
|
|
*
|
|
* @file
|
|
* @brief Board specific definitions for the pyboard board
|
|
*
|
|
* @author Kaspar Schleiser <kaspar@schleiser.de>
|
|
*/
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "cpu.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* @name LED pin definitions and handlers
|
|
* @{
|
|
*/
|
|
#define LED0_PIN_NUM 4
|
|
#define LED0_PORT GPIO_PORT_B /**< GPIO port of LED 0 */
|
|
#define LED0_PORT_NUM PORT_B
|
|
/** @} */
|
|
|
|
/**
|
|
* @name User button pin configuration
|
|
* @{
|
|
*/
|
|
#define BTN0_PIN GPIO_PIN(PORT_B, 3) /**< User button pin */
|
|
#define BTN0_MODE GPIO_IN_PU /**< User button pin mode */
|
|
/** @} */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#include "stm32_leds.h"
|
|
|
|
/** @} */
|