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
|
|
|
|
|
2015-08-06 12:58:08 +02:00
|
|
|
/**
|
2016-03-11 18:04:26 +01:00
|
|
|
* @brief LED pin definitions and handlers
|
2015-08-06 12:58:08 +02:00
|
|
|
* @{
|
|
|
|
*/
|
2016-03-11 18:04:26 +01:00
|
|
|
#define LED0_PIN GPIO_PIN(2, 25)
|
|
|
|
#define LED1_PIN GPIO_PIN(2, 26)
|
2010-09-22 15:10:42 +02:00
|
|
|
|
2016-03-11 18:04:26 +01:00
|
|
|
#define LED0_MASK (BIT25)
|
|
|
|
#define LED1_MASK (BIT26)
|
2010-09-22 15:10:42 +02:00
|
|
|
|
2016-03-11 18:04:26 +01:00
|
|
|
#define LED0_OFF (FIO3SET = LED0_MASK)
|
|
|
|
#define LED0_ON (FIO3CLR = LED0_MASK)
|
|
|
|
#define LED0_TOGGLE (FIO3PIN ^= LED0_MASK)
|
|
|
|
|
|
|
|
#define LED1_OFF (FIO3SET = LED1_MASK)
|
|
|
|
#define LED1_ON (FIO3CLR = LED1_MASK)
|
|
|
|
#define LED1_TOGGLE (FIO3PIN ^= LED1_MASK)
|
2015-08-06 12:58:08 +02:00
|
|
|
/** @} */
|
2010-09-22 15:10:42 +02:00
|
|
|
|
2015-09-03 23:48:14 +02:00
|
|
|
/**
|
2015-09-05 17:29:15 +02:00
|
|
|
* @name xtimer tuning values
|
|
|
|
* @{
|
2015-09-03 23:48:14 +02:00
|
|
|
*/
|
2015-09-05 17:29:15 +02:00
|
|
|
#define XTIMER_OVERHEAD 7
|
|
|
|
#define XTIMER_SHOOT_EARLY 3
|
|
|
|
/** @} */
|
2015-09-03 23:48:14 +02:00
|
|
|
|
2015-08-06 12:58:08 +02:00
|
|
|
/**
|
|
|
|
* @brief initialize the board's clock system
|
|
|
|
*/
|
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
|
|
|
/** @} */
|