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
|
|
|
|
*/
|
|
|
|
|
2010-09-22 15:10:42 +02:00
|
|
|
#ifndef __BOARD_H
|
2013-07-29 16:41:43 +02:00
|
|
|
#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)
|
|
|
|
|
2013-08-07 12:25:03 +02:00
|
|
|
void init_clks1(void);
|
|
|
|
|
2013-10-20 17:54:31 +02:00
|
|
|
typedef uint8_t radio_packet_length_t;
|
|
|
|
|
2014-10-13 15:25:50 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2010-12-06 16:06:14 +01:00
|
|
|
#endif /* __BOARD_H */
|
2014-11-30 21:16:41 +01:00
|
|
|
/** @} */
|