2014-11-09 15:06:25 +01:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2014 Freie Universität Berlin
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2010-09-22 15:10:42 +02:00
|
|
|
/**
|
2013-11-28 12:57:41 +01:00
|
|
|
* @defgroup boards_pttu PTTU
|
|
|
|
* @ingroup boards
|
|
|
|
* @brief Support for the PTTU board
|
2010-09-22 15:10:42 +02:00
|
|
|
* @{
|
|
|
|
*
|
2014-10-21 16:52:30 +02:00
|
|
|
* @file
|
2013-11-28 12:57:41 +01:00
|
|
|
* @brief Basic definitions for the PTTU board
|
2010-09-22 15:10:42 +02:00
|
|
|
*
|
2013-11-28 12:57:41 +01:00
|
|
|
* @author Kaspar Schleiser <kaspar@schleiser.de>
|
2010-09-22 15:10:42 +02:00
|
|
|
*/
|
|
|
|
|
2015-04-23 05:00:54 +02:00
|
|
|
#ifndef BOARD_H_
|
|
|
|
#define BOARD_H_
|
2013-11-28 12:57:41 +01:00
|
|
|
|
2014-01-20 19:39:00 +01:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2013-12-16 17:54:58 +01:00
|
|
|
#include "lpc2387.h"
|
2015-05-22 14:31:23 +02:00
|
|
|
#include "cpu_conf.h"
|
2010-09-22 15:10:42 +02:00
|
|
|
|
2014-10-13 15:25:50 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2015-05-26 16:44:55 +02:00
|
|
|
/**
|
|
|
|
* @brief VICIntEnClear Alias for compatibility
|
|
|
|
*/
|
2010-09-22 15:10:42 +02:00
|
|
|
#define VICIntEnClear VICIntEnClr
|
|
|
|
|
2015-05-26 16:44:55 +02:00
|
|
|
/**
|
|
|
|
* @brief Clock initialization part one
|
|
|
|
*/
|
2010-09-22 15:10:42 +02:00
|
|
|
void init_clks1(void);
|
2015-05-26 16:44:55 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Clock initialization part two
|
|
|
|
*/
|
2010-09-22 15:10:42 +02:00
|
|
|
void init_clks2(void);
|
2015-05-26 16:44:55 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Jump to clock initialization code
|
|
|
|
*/
|
2010-09-22 15:10:42 +02:00
|
|
|
void bl_init_clks(void);
|
|
|
|
|
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)
|
|
|
|
/** @} */
|
|
|
|
|
2015-09-04 14:50:57 +02:00
|
|
|
/**
|
|
|
|
* @brief Deprecated HW_TIMER definition (to be removed)
|
|
|
|
*/
|
|
|
|
#define HW_TIMER TIMER_DEV(0)
|
|
|
|
|
2015-08-06 20:43:50 +02:00
|
|
|
/**
|
|
|
|
* @name dummy-defines for LEDs
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
#define LED_GREEN_ON /* not available */
|
|
|
|
#define LED_GREEN_OFF /* not available */
|
|
|
|
#define LED_GREEN_TOGGLE /* not available */
|
|
|
|
#define LED_RED_ON /* not available */
|
|
|
|
#define LED_RED_OFF /* not available */
|
|
|
|
#define LED_RED_TOGGLE /* not available */
|
|
|
|
/** @} */
|
|
|
|
|
2014-10-13 15:25:50 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2010-09-22 15:10:42 +02:00
|
|
|
/** @} */
|
2015-04-23 05:00:54 +02:00
|
|
|
#endif /* BOARD_H_ */
|