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

59 lines
1.2 KiB
C
Raw Normal View History

/*
* Copyright (C) 2013 Freie Universität Berlin
*
2014-08-23 15:43:13 +02:00
* 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.
*/
/**
* @defgroup boards_msba2 MSB-A2
* @ingroup boards
* @brief Support for the ScatterWeb MSB-A2 board
* @{
*
* @file
* @brief Basic definitions for the MSB-A2 board
*
* @author unknown
*/
#ifndef BOARD_H_
#define BOARD_H_
#include "msba2_common.h"
#include "bitarithm.h"
#ifdef __cplusplus
extern "C" {
#endif
#define LED_RED_PIN (BIT25)
#define LED_GREEN_PIN (BIT26)
#define LED_GREEN_OFF (FIO3SET = LED_GREEN_PIN)
#define LED_GREEN_ON (FIO3CLR = LED_GREEN_PIN)
#define LED_GREEN_TOGGLE (FIO3PIN ^= LED_GREEN_PIN)
#define LED_RED_OFF (FIO3SET = LED_RED_PIN)
#define LED_RED_ON (FIO3CLR = LED_RED_PIN)
#define LED_RED_TOGGLE (FIO3PIN ^= LED_RED_PIN)
2015-06-04 13:43:46 +02:00
/**
* @name Define UART device and baudrate for stdio
* @{
*/
#define STDIO UART_0
#define STDIO_BAUDRATE (115200U)
#define STDIO_RX_BUFSIZE (64U)
/** @} */
2013-08-07 12:25:03 +02:00
void init_clks1(void);
#ifdef __cplusplus
}
#endif
#endif /* BOARD_H_ */
/** @} */