2014-08-27 18:47:31 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2013, Freie Universitaet Berlin (FUB). All rights reserved.
|
|
|
|
*
|
|
|
|
* 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
|
|
|
|
|
|
|
|
|
|
|
#ifndef CPUCONF_H_
|
|
|
|
#define CPUCONF_H_
|
|
|
|
|
2014-10-13 10:53:20 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2010-09-22 15:10:42 +02:00
|
|
|
/**
|
2014-07-31 20:46:28 +02:00
|
|
|
* @ingroup conf
|
|
|
|
* @ingroup lpc2387
|
2010-09-22 15:10:42 +02:00
|
|
|
*
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
2014-07-31 20:46:28 +02:00
|
|
|
* @brief LPC2387 CPUconfiguration
|
2010-09-22 15:10:42 +02:00
|
|
|
*
|
2014-07-31 20:46:28 +02:00
|
|
|
* @author baar
|
2010-09-22 15:10:42 +02:00
|
|
|
* @version $Revision$
|
|
|
|
*
|
2014-07-31 20:46:28 +02:00
|
|
|
* @note $Id$
|
2010-09-22 15:10:42 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @name Stdlib configuration
|
|
|
|
* @{
|
|
|
|
*/
|
2014-07-31 20:46:28 +02:00
|
|
|
#define __FOPEN_MAX__ 4
|
|
|
|
#define __FILENAME_MAX__ 12
|
2010-09-22 15:10:42 +02:00
|
|
|
/** @} */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @name Kernel configuration
|
|
|
|
* @{
|
|
|
|
*/
|
2013-11-21 20:41:28 +01:00
|
|
|
#define KERNEL_CONF_STACKSIZE_PRINTF_FLOAT (4096)
|
|
|
|
#define KERNEL_CONF_STACKSIZE_PRINTF (2048)
|
2013-07-23 13:42:58 +02:00
|
|
|
|
2010-09-22 15:10:42 +02:00
|
|
|
#ifndef KERNEL_CONF_STACKSIZE_DEFAULT
|
2014-07-31 20:46:28 +02:00
|
|
|
#define KERNEL_CONF_STACKSIZE_DEFAULT (512)
|
2010-09-22 15:10:42 +02:00
|
|
|
#endif
|
|
|
|
|
2014-07-31 20:46:28 +02:00
|
|
|
#define KERNEL_CONF_STACKSIZE_IDLE (160)
|
2010-09-22 15:10:42 +02:00
|
|
|
/** @} */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @name Compiler specifics
|
|
|
|
* @{
|
|
|
|
*/
|
2014-07-31 20:46:28 +02:00
|
|
|
#define CC_CONF_INLINE inline
|
|
|
|
#define CC_CONF_USED __attribute__((used))
|
|
|
|
#define CC_CONF_NONNULL(...) __attribute__((nonnull(__VA_ARGS__)))
|
|
|
|
#define CC_CONF_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
|
2010-09-22 15:10:42 +02:00
|
|
|
/** @} */
|
|
|
|
|
2010-12-03 18:42:03 +01:00
|
|
|
#define TRANSCEIVER_BUFFER_SIZE (10)
|
|
|
|
#define RX_BUF_SIZE (10)
|
|
|
|
|
2013-12-19 16:48:31 +01:00
|
|
|
#ifndef UART0_BUFSIZE
|
|
|
|
#define UART0_BUFSIZE (128)
|
|
|
|
#endif
|
|
|
|
|
2014-10-13 10:53:20 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2013-12-19 16:48:31 +01:00
|
|
|
|
2010-09-22 15:10:42 +02:00
|
|
|
/** @} */
|
|
|
|
#endif /* CPUCONF_H_ */
|