2013-03-06 10:29:49 +01:00
|
|
|
/**
|
|
|
|
* Native CPU configuration
|
|
|
|
*
|
2014-05-15 18:07:02 +02:00
|
|
|
* Copyright (C) 2013 Ludwig Ortmann <ludwig.ortmann@fu-berlin.de>
|
2013-03-06 10:29:49 +01:00
|
|
|
*
|
2013-11-22 20:47:05 +01:00
|
|
|
* This file is subject to the terms and conditions of the GNU Lesser General
|
2013-06-18 17:21:38 +02:00
|
|
|
* Public License. See the file LICENSE in the top level directory for more
|
|
|
|
* details.
|
2013-03-06 10:29:49 +01:00
|
|
|
*
|
|
|
|
* @ingroup arch
|
|
|
|
* @{
|
|
|
|
* @file
|
|
|
|
* @author Ludwig Ortmann <ludwig.ortmann@fu-berlin.de>
|
|
|
|
* @}
|
|
|
|
*/
|
2013-03-06 01:08:15 +01:00
|
|
|
#ifndef CPUCONF_H_
|
|
|
|
#define CPUCONF_H_
|
|
|
|
|
2013-10-25 11:01:37 +02:00
|
|
|
/* TODO: tighten stack sizes */
|
2013-06-26 23:29:09 +02:00
|
|
|
#ifdef __MACH__ /* OSX */
|
2013-11-21 20:41:28 +01:00
|
|
|
#define KERNEL_CONF_STACKSIZE_DEFAULT (163840)
|
|
|
|
#define KERNEL_CONF_STACKSIZE_IDLE (163840)
|
|
|
|
#define KERNEL_CONF_STACKSIZE_PRINTF (163840)
|
|
|
|
#define KERNEL_CONF_STACKSIZE_PRINTF_FLOAT (163840)
|
2013-10-25 11:01:37 +02:00
|
|
|
/* for core/include/thread.h */
|
|
|
|
#define MINIMUM_STACK_SIZE (163840)
|
|
|
|
/* undefine the TRANSCEIVER_STACK_SIZE (2048 or 512) defined in transceiver.h */
|
|
|
|
#ifdef TRANSCEIVER_STACK_SIZE
|
|
|
|
#undef TRANSCEIVER_STACK_SIZE
|
|
|
|
#endif
|
2013-05-15 17:45:43 +02:00
|
|
|
#define TRANSCEIVER_STACK_SIZE (163840)
|
2013-10-25 11:01:37 +02:00
|
|
|
/* native internal */
|
2013-05-15 17:45:43 +02:00
|
|
|
#define MINIMUM_STACK_SIZE (163840)
|
2013-10-25 11:01:37 +02:00
|
|
|
#define NATIVE_ISR_STACKSIZE (163840)
|
|
|
|
|
2013-06-26 23:29:09 +02:00
|
|
|
#else /* Linux etc. */
|
2013-11-21 20:41:28 +01:00
|
|
|
#define KERNEL_CONF_STACKSIZE_DEFAULT (8192)
|
|
|
|
#define KERNEL_CONF_STACKSIZE_IDLE (8192)
|
|
|
|
#define KERNEL_CONF_STACKSIZE_PRINTF (8192)
|
|
|
|
#define KERNEL_CONF_STACKSIZE_PRINTF_FLOAT (8192)
|
2013-10-25 11:01:37 +02:00
|
|
|
/* for core/include/thread.h */
|
|
|
|
#define MINIMUM_STACK_SIZE (8192)
|
2013-06-18 17:26:53 +02:00
|
|
|
/* undefine the TRANSCEIVER_STACK_SIZE (2048 or 512) defined in transceiver.h */
|
2013-06-01 20:52:42 +02:00
|
|
|
#ifdef TRANSCEIVER_STACK_SIZE
|
|
|
|
#undef TRANSCEIVER_STACK_SIZE
|
|
|
|
#endif
|
2013-04-15 20:08:46 +02:00
|
|
|
#define TRANSCEIVER_STACK_SIZE (16384)
|
2013-10-25 11:01:37 +02:00
|
|
|
/* native internal */
|
|
|
|
#define NATIVE_ISR_STACKSIZE (8192)
|
2013-06-26 23:29:09 +02:00
|
|
|
#endif /* OS */
|
2013-03-06 01:08:15 +01:00
|
|
|
|
2013-12-19 16:48:31 +01:00
|
|
|
#ifdef UART0_BUFSIZE
|
|
|
|
#undef UART0_BUFSIZE
|
|
|
|
#endif
|
|
|
|
#define UART0_BUFSIZE (128)
|
|
|
|
|
2013-10-25 11:01:37 +02:00
|
|
|
/* for nativenet */
|
2013-06-26 23:29:09 +02:00
|
|
|
#define NATIVE_ETH_PROTO 0x1234
|
2013-03-21 17:08:41 +01:00
|
|
|
|
2013-03-06 01:08:15 +01:00
|
|
|
#endif /* CPUCONF_H_ */
|