2014-07-15 12:09:50 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2014 Freie Universität Berlin, Hinnerk van Bruinehsen
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2016-04-06 17:13:31 +02:00
|
|
|
* @ingroup cpu_atmega2560
|
2014-07-15 12:09:50 +02:00
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @file
|
|
|
|
* @brief Implementation specific CPU configuration options
|
|
|
|
*
|
|
|
|
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
|
|
|
* @author Hinnerk van Bruinehsen <h.v.bruinehsen@fu-berlin.de>
|
|
|
|
*/
|
|
|
|
|
2016-06-07 16:29:37 +02:00
|
|
|
#ifndef CPU_CONF_H
|
|
|
|
#define CPU_CONF_H
|
2014-07-15 12:09:50 +02:00
|
|
|
|
2016-06-07 13:13:28 +02:00
|
|
|
#include "atmega_regs_common.h"
|
2014-07-15 12:09:50 +02:00
|
|
|
|
2014-10-13 10:53:20 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2014-07-15 12:09:50 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @name Kernel configuration
|
|
|
|
*
|
|
|
|
* Since printf seems to get memory allocated by the linker/avr-libc the stack
|
|
|
|
* size tested sucessfully even with pretty small stacks.k
|
|
|
|
* @{
|
|
|
|
*/
|
2015-04-28 20:02:05 +02:00
|
|
|
#define THREAD_EXTRA_STACKSIZE_PRINTF (128)
|
2014-07-15 12:09:50 +02:00
|
|
|
|
2015-04-28 20:02:05 +02:00
|
|
|
#ifndef THREAD_STACKSIZE_DEFAULT
|
|
|
|
#define THREAD_STACKSIZE_DEFAULT (256)
|
2014-07-15 12:09:50 +02:00
|
|
|
#endif
|
|
|
|
|
2015-04-28 20:02:05 +02:00
|
|
|
#define THREAD_STACKSIZE_IDLE (128)
|
2016-06-01 19:37:40 +02:00
|
|
|
#define ISR_STACKSIZE (0)
|
2014-07-15 12:09:50 +02:00
|
|
|
/** @} */
|
|
|
|
|
2014-10-13 10:53:20 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2016-06-07 16:29:37 +02:00
|
|
|
#endif /* CPU_CONF_H */
|
2014-07-15 12:09:50 +02:00
|
|
|
/** @} */
|