2013-08-19 16:17:58 +02:00
|
|
|
/*
|
2013-11-28 12:57:41 +01:00
|
|
|
* Copyright (C) 2013 Zakaria Kasmi <zkasmi@inf.fu-berlin.de>
|
|
|
|
*
|
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
|
|
|
*
|
|
|
|
*/
|
2013-08-19 16:17:58 +02:00
|
|
|
|
2013-08-07 12:20:53 +02:00
|
|
|
|
|
|
|
/**
|
2013-11-28 12:57:41 +01:00
|
|
|
* @defgroup boards_avsextrem Avsextrem
|
|
|
|
* @ingroup boards
|
2014-05-24 15:03:06 +02:00
|
|
|
* @brief Support for the Avsextrem board
|
2013-11-28 12:57:41 +01:00
|
|
|
* @{
|
|
|
|
*
|
2014-10-21 16:52:30 +02:00
|
|
|
* @file
|
2014-05-24 15:03:06 +02:00
|
|
|
* @brief Boards specific drivers and configuration for the Avsextrem board
|
2013-08-07 12:20:53 +02:00
|
|
|
*
|
2013-09-19 16:53:35 +02:00
|
|
|
* @author Heiko Will
|
2013-08-19 16:17:58 +02:00
|
|
|
* @author Zakaria Kasmi
|
2013-08-07 12:20:53 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef BOARDCONF_H_
|
|
|
|
#define BOARDCONF_H_
|
2013-12-16 17:54:58 +01:00
|
|
|
#include "bitarithm.h"
|
2013-11-01 11:11:21 +01:00
|
|
|
#include "msba2_common.h"
|
2013-08-07 12:20:53 +02:00
|
|
|
|
2014-10-13 15:25:50 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
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)
|
|
|
|
|
2013-08-19 16:17:58 +02:00
|
|
|
#ifdef MODULE_FAT
|
2014-07-31 20:34:28 +02:00
|
|
|
#define CFG_CONF_MEM_SIZE 0x7FFFFFFF
|
|
|
|
#define SYSLOG_CONF_NUM_INTERFACES 2
|
2013-08-07 12:20:53 +02:00
|
|
|
#else
|
2014-07-31 20:34:28 +02:00
|
|
|
#define SYSLOG_CONF_NUM_INTERFACES 1
|
2013-08-07 12:20:53 +02:00
|
|
|
#endif
|
|
|
|
|
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:20:53 +02:00
|
|
|
void init_clks1(void);
|
|
|
|
|
2014-10-13 15:25:50 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2013-08-07 12:20:53 +02:00
|
|
|
/** @} */
|
|
|
|
#endif /* BOARDCONF_H_ */
|