2013-11-28 12:57:41 +01:00
|
|
|
/*
|
|
|
|
* 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.
|
2013-11-28 12:57:41 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @defgroup boards_msba2 MSB-A2
|
|
|
|
* @ingroup boards
|
2014-05-24 15:03:06 +02:00
|
|
|
* @brief Support for the ScatterWeb MSB-A2 board
|
2013-11-28 12:57:41 +01:00
|
|
|
* @{
|
|
|
|
*
|
2014-10-21 16:52:30 +02:00
|
|
|
* @file
|
2013-11-28 12:57:41 +01:00
|
|
|
* @brief Basic definitions for the MSB-A2 board
|
|
|
|
*
|
|
|
|
* @author unknown
|
|
|
|
*/
|
|
|
|
|
2015-04-23 05:00:54 +02:00
|
|
|
#ifndef BOARD_H_
|
|
|
|
#define BOARD_H_
|
2010-09-22 15:10:42 +02:00
|
|
|
|
2013-10-28 23:01:45 +01:00
|
|
|
#include "msba2_common.h"
|
|
|
|
#include "bitarithm.h"
|
2010-09-22 15:10:42 +02:00
|
|
|
|
2014-10-13 15:25:50 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2010-09-22 15:10:42 +02:00
|
|
|
#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);
|
|
|
|
|
2014-10-13 15:25:50 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2015-04-23 05:00:54 +02:00
|
|
|
#endif /* BOARD_H_ */
|
2014-11-30 21:16:41 +01:00
|
|
|
/** @} */
|