-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cpu/atmega_common: use the same cpu_conf for all atmega based boards
Removes redundancy of code since all the boards were defining the same variables. Moreover, the stack sizes are unified per architecture, as required.
- Loading branch information
Showing
1 changed file
with
15 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/* | ||
* Copyright (C) 2014 Freie Universität Berlin, Hinnerk van Bruinehsen | ||
* 2017 RWTH Aachen, Josua Arndt | ||
* 2018 Matthew Blue | ||
* | ||
* This file is subject to the terms and conditions of the GNU Lesser | ||
|
@@ -8,14 +9,16 @@ | |
*/ | ||
|
||
/** | ||
* @ingroup cpu_atmega1284p | ||
* @ingroup cpu_atmega_common | ||
* @{ | ||
* | ||
* @file | ||
* @brief Implementation specific CPU configuration options | ||
* | ||
* @author Hauke Petersen <[email protected]> | ||
* @author Hinnerk van Bruinehsen <[email protected]> | ||
* @author Josua Arndt <[email protected]> | ||
* @author Steffen Robertz <[email protected]> | ||
* @author Matthew Blue <[email protected]> | ||
*/ | ||
|
||
|
@@ -28,25 +31,30 @@ | |
extern "C" { | ||
#endif | ||
|
||
#define THREAD_EXTRA_STACKSIZE_PRINTF (128) | ||
|
||
/** | ||
* @name Kernel configuration | ||
* @name Kernel configuration | ||
* | ||
* Since printf seems to get memory allocated by the linker/avr-libc the stack | ||
* size tested successfully even with pretty small stacks.k | ||
* Since printf seems to get memory allocated by the | ||
* linker/avr-libc the stack size tested successfully | ||
* even with pretty small stacks. | ||
* @{ | ||
*/ | ||
#define THREAD_EXTRA_STACKSIZE_PRINTF (128) | ||
|
||
#ifndef THREAD_STACKSIZE_DEFAULT | ||
#define THREAD_STACKSIZE_DEFAULT (256) | ||
#define THREAD_STACKSIZE_DEFAULT (512) | ||
#endif | ||
|
||
/* keep THREAD_STACKSIZE_IDLE > THREAD_EXTRA_STACKSIZE_PRINTF | ||
* to avoid not printing of debug in interrupts | ||
*/ | ||
#define THREAD_STACKSIZE_IDLE (128) | ||
/** @} */ | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
|
||
#endif /* CPU_CONF_H */ | ||
/** @} */ |