2013-03-06 10:29:49 +01:00
|
|
|
/**
|
|
|
|
* Native CPU configuration
|
|
|
|
*
|
2015-09-27 18:58:30 +02:00
|
|
|
* Copyright (C) 2013 Ludwig Knüpfer <ludwig.knuepfer@fu-berlin.de>
|
2013-03-06 10:29:49 +01:00
|
|
|
*
|
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-03-06 10:29:49 +01:00
|
|
|
*
|
2018-06-01 12:17:51 +02:00
|
|
|
* @ingroup cpu_native
|
2013-03-06 10:29:49 +01:00
|
|
|
* @{
|
|
|
|
* @file
|
2015-09-27 18:58:30 +02:00
|
|
|
* @author Ludwig Knüpfer <ludwig.knuepfer@fu-berlin.de>
|
2013-03-06 10:29:49 +01:00
|
|
|
* @}
|
|
|
|
*/
|
2017-05-23 18:19:52 +02:00
|
|
|
#ifndef CPU_CONF_H
|
|
|
|
#define CPU_CONF_H
|
2013-03-06 01:08:15 +01:00
|
|
|
|
2014-10-13 10:53:20 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2015-05-26 16:45:34 +02:00
|
|
|
/**
|
|
|
|
* @brief CPU specific default stack sizes
|
|
|
|
*
|
|
|
|
* TODO: tighten stack sizes
|
|
|
|
*
|
|
|
|
* @{
|
|
|
|
*/
|
2013-06-26 23:29:09 +02:00
|
|
|
#ifdef __MACH__ /* OSX */
|
2015-05-26 16:45:34 +02:00
|
|
|
#define THREAD_STACKSIZE_DEFAULT (163840)
|
|
|
|
#define THREAD_STACKSIZE_IDLE (163840)
|
2015-06-04 16:04:14 +02:00
|
|
|
#define THREAD_EXTRA_STACKSIZE_PRINTF (81920)
|
|
|
|
#define THREAD_EXTRA_STACKSIZE_PRINTF_FLOAT (81920)
|
2013-10-25 11:01:37 +02:00
|
|
|
/* for core/include/thread.h */
|
2015-05-26 16:45:34 +02:00
|
|
|
#define THREAD_STACKSIZE_MINIMUM (163840)
|
2013-10-25 11:01:37 +02:00
|
|
|
/* native internal */
|
2015-05-26 16:45:34 +02:00
|
|
|
#define THREAD_STACKSIZE_MINIMUM (163840)
|
2016-06-01 19:37:40 +02:00
|
|
|
#define ISR_STACKSIZE (163840)
|
2013-10-25 11:01:37 +02:00
|
|
|
|
2013-06-26 23:29:09 +02:00
|
|
|
#else /* Linux etc. */
|
2015-05-26 16:45:34 +02:00
|
|
|
#define THREAD_STACKSIZE_DEFAULT (8192)
|
|
|
|
#define THREAD_STACKSIZE_IDLE (8192)
|
2015-06-04 16:04:14 +02:00
|
|
|
#define THREAD_EXTRA_STACKSIZE_PRINTF (4096)
|
|
|
|
#define THREAD_EXTRA_STACKSIZE_PRINTF_FLOAT (4096)
|
2013-10-25 11:01:37 +02:00
|
|
|
/* for core/include/thread.h */
|
2015-05-26 16:45:34 +02:00
|
|
|
#define THREAD_STACKSIZE_MINIMUM (8192)
|
2013-10-25 11:01:37 +02:00
|
|
|
/* native internal */
|
2016-06-01 19:37:40 +02:00
|
|
|
#define ISR_STACKSIZE (8192)
|
2013-06-26 23:29:09 +02:00
|
|
|
#endif /* OS */
|
2015-05-26 16:45:34 +02:00
|
|
|
/** @} */
|
2013-03-06 01:08:15 +01:00
|
|
|
|
2015-05-26 16:45:34 +02:00
|
|
|
/**
|
|
|
|
* @brief Native internal Ethernet protocol number
|
|
|
|
*/
|
2013-06-26 23:29:09 +02:00
|
|
|
#define NATIVE_ETH_PROTO 0x1234
|
2013-03-21 17:08:41 +01:00
|
|
|
|
2020-05-11 15:44:40 +02:00
|
|
|
#if (defined(CONFIG_GNRC_PKTBUF_SIZE)) && (CONFIG_GNRC_PKTBUF_SIZE < 2048)
|
|
|
|
# undef CONFIG_GNRC_PKTBUF_SIZE
|
|
|
|
# define CONFIG_GNRC_PKTBUF_SIZE (2048)
|
2016-12-14 14:17:14 +01:00
|
|
|
#endif
|
|
|
|
|
2014-10-13 10:53:20 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2017-05-23 18:19:52 +02:00
|
|
|
#endif /* CPU_CONF_H */
|