2013-11-28 12:57:41 +01:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2013 Freie Universität Berlin
|
|
|
|
*
|
|
|
|
* This file subject to the terms and conditions of the GNU Lesser General
|
|
|
|
* Public License. See the file LICENSE in the top level directory for more
|
|
|
|
* details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @defgroup boards_msba2 MSB-A2
|
|
|
|
* @ingroup boards
|
|
|
|
* @brief Support for the MSB-A2 board
|
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @file board.h
|
|
|
|
* @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
|
|
|
|
|
|
|
#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;
|
|
|
|
|
2010-12-06 16:06:14 +01:00
|
|
|
#endif /* __BOARD_H */
|