2018-03-17 21:21:26 +01:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2014 Freie Universität Berlin, Hinnerk van Bruinehsen
|
2018-05-15 02:34:09 +02:00
|
|
|
* 2017 RWTH Aachen, Josua Arndt
|
2018-03-17 21:21:26 +01:00
|
|
|
* 2018 Matthew Blue
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2018-05-15 02:34:09 +02:00
|
|
|
* @ingroup cpu_atmega_common
|
2018-03-17 21:21:26 +01: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>
|
2018-05-15 02:34:09 +02:00
|
|
|
* @author Josua Arndt <jarndt@ias.rwth-aachen.de>
|
|
|
|
* @author Steffen Robertz <steffen.robertz@rwth-aachen.de>
|
2018-03-17 21:21:26 +01:00
|
|
|
* @author Matthew Blue <matthew.blue.neuro@gmail.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CPU_CONF_H
|
|
|
|
#define CPU_CONF_H
|
|
|
|
|
|
|
|
#include "atmega_regs_common.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2018-05-15 02:34:09 +02:00
|
|
|
#define THREAD_EXTRA_STACKSIZE_PRINTF (128)
|
|
|
|
|
2018-03-17 21:21:26 +01:00
|
|
|
/**
|
2018-05-15 02:34:09 +02:00
|
|
|
* @name Kernel configuration
|
2018-03-17 21:21:26 +01:00
|
|
|
*
|
2018-05-15 02:34:09 +02:00
|
|
|
* Since printf seems to get memory allocated by the
|
|
|
|
* linker/avr-libc the stack size tested successfully
|
|
|
|
* even with pretty small stacks.
|
2018-03-17 21:21:26 +01:00
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
#ifndef THREAD_STACKSIZE_DEFAULT
|
2018-05-15 02:34:09 +02:00
|
|
|
#define THREAD_STACKSIZE_DEFAULT (512)
|
2018-03-17 21:21:26 +01:00
|
|
|
#endif
|
|
|
|
|
2018-05-15 02:34:09 +02:00
|
|
|
/* keep THREAD_STACKSIZE_IDLE > THREAD_EXTRA_STACKSIZE_PRINTF
|
|
|
|
* to avoid not printing of debug in interrupts
|
|
|
|
*/
|
2018-03-17 21:21:26 +01:00
|
|
|
#define THREAD_STACKSIZE_IDLE (128)
|
|
|
|
/** @} */
|
|
|
|
|
2018-11-20 09:43:24 +01:00
|
|
|
/**
|
|
|
|
* @brief Attribute for memory sections required by SRAM PUF
|
|
|
|
*/
|
|
|
|
#define PUF_SRAM_ATTRIBUTES __attribute__((used, section(".noinit")))
|
|
|
|
|
2018-03-17 21:21:26 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2018-05-15 02:34:09 +02:00
|
|
|
|
2018-03-17 21:21:26 +01:00
|
|
|
#endif /* CPU_CONF_H */
|
|
|
|
/** @} */
|