2013-08-19 16:17:58 +02:00
|
|
|
/*
|
|
|
|
* board.h - Definitions for the AVSEXTREM board configuration.
|
2013-09-19 16:53:35 +02:00
|
|
|
* Copyright (C) 2013 Zakaria Kasmi <zkasmi@inf.fu-berlin.de>
|
2013-08-19 16:17:58 +02:00
|
|
|
*
|
|
|
|
* This source code is licensed under the LGPLv2 license,
|
|
|
|
* See the file LICENSE for more details.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2013-08-07 12:20:53 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
2013-08-19 16:17:58 +02:00
|
|
|
* @brief avsextrem board configuration
|
2013-08-07 12:20:53 +02:00
|
|
|
*
|
2013-09-19 16:53:35 +02:00
|
|
|
* @author Freie Universität Berlin, Computer Systems & Telematics
|
|
|
|
* @author Heiko Will
|
2013-08-19 16:17:58 +02:00
|
|
|
* @author Zakaria Kasmi
|
2013-08-07 12:20:53 +02:00
|
|
|
* @version $Revision: 1127 $
|
|
|
|
*
|
2013-09-19 16:53:35 +02:00
|
|
|
* @note $Id: board-conf.h 1127 2013-06-13 08:48:29Z kasmi$
|
2013-08-07 12:20:53 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef BOARDCONF_H_
|
|
|
|
#define BOARDCONF_H_
|
|
|
|
#include <bitarithm.h>
|
2013-11-01 11:11:21 +01:00
|
|
|
#include "msba2_common.h"
|
2013-08-07 12:20:53 +02:00
|
|
|
|
2013-09-19 16:53:35 +02:00
|
|
|
#define FEUERWARE_CONF_BOARD_NAME "FU Berlin AVSEXTREM BOARD"
|
2013-08-07 12:20:53 +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)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef MODULE_CC110X
|
2013-09-19 16:53:35 +02:00
|
|
|
#define FEUERWARE_CONF_NUM_RADIOS 1
|
2013-08-07 12:20:53 +02:00
|
|
|
#else
|
2013-09-19 16:53:35 +02:00
|
|
|
#define FEUERWARE_CONF_NUM_RADIOS 0
|
2013-08-07 12:20:53 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
// if FAT is enabled this board supports files
|
2013-09-19 16:53:35 +02:00
|
|
|
#define FEUERWARE_CONF_CORE_SUPPORTS_FILES defined(MODULE_FAT)
|
2013-08-07 12:20:53 +02:00
|
|
|
|
2013-08-19 16:17:58 +02:00
|
|
|
#ifdef MODULE_FAT
|
2013-09-19 16:53:35 +02:00
|
|
|
#define CFG_CONF_MEM_SIZE 0x7FFFFFFF
|
|
|
|
#define SYSLOG_CONF_NUM_INTERFACES 2
|
2013-08-07 12:20:53 +02:00
|
|
|
#else
|
2013-09-19 16:53:35 +02:00
|
|
|
#define SYSLOG_CONF_NUM_INTERFACES 1
|
2013-08-07 12:20:53 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
void init_clks1(void);
|
|
|
|
|
2013-10-20 17:54:31 +02:00
|
|
|
typedef uint8_t radio_packet_length_t;
|
|
|
|
|
2013-08-07 12:20:53 +02:00
|
|
|
/** @} */
|
|
|
|
#endif /* BOARDCONF_H_ */
|
|
|
|
|