1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/boards/calliope-mini/include/board.h

65 lines
1.9 KiB
C

/*
* Copyright (C) 2016 Freie Universität Berlin
*
* 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_calliope-mini
*
* This board is for calliope-mini revision 1.0.
* @{
*
* @file
* @brief Board specific configuration for the Calliope mini
*
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
* @author Sebastian Meiling <s@mlng.net>
*/
#ifndef BOARD_H
#define BOARD_H
#include "board_common.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name LED matrix pin configuration
* @{
*/
#define MICROBIT_LED_COL1 GPIO_PIN(0, 4) /**< LED Column 1 */
#define MICROBIT_LED_COL2 GPIO_PIN(0, 5) /**< LED Column 2 */
#define MICROBIT_LED_COL3 GPIO_PIN(0, 6) /**< LED Column 3 */
#define MICROBIT_LED_COL4 GPIO_PIN(0, 7) /**< LED Column 4 */
#define MICROBIT_LED_COL5 GPIO_PIN(0, 8) /**< LED Column 5 */
#define MICROBIT_LED_COL6 GPIO_PIN(0, 9) /**< LED Column 6 */
#define MICROBIT_LED_COL7 GPIO_PIN(0, 10) /**< LED Column 7 */
#define MICROBIT_LED_COL8 GPIO_PIN(0, 11) /**< LED Column 8 */
#define MICROBIT_LED_COL9 GPIO_PIN(0, 12) /**< LED Column 9 */
#define MICROBIT_LED_ROW1 GPIO_PIN(0, 13) /**< LED Row 1 */
#define MICROBIT_LED_ROW2 GPIO_PIN(0, 14) /**< LED Row 2 */
#define MICROBIT_LED_ROW3 GPIO_PIN(0, 15) /**< LED Row 3 */
/** @} */
/**
* @name Button configuration
* @{
*/
#define BTN0_PIN GPIO_PIN(0, 17)
#define BTN0_MODE GPIO_IN
#define BTN1_PIN GPIO_PIN(0, 16)
#define BTN1_MODE GPIO_IN
/** @} */
#ifdef __cplusplus
}
#endif
#endif /* BOARD_H */
/** @} */