Skip to content

Commit

Permalink
cpu/atmega_common: use the same cpu_conf for all atmega based boards
Browse files Browse the repository at this point in the history
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
kYc0o committed Aug 30, 2018
1 parent 2db7081 commit a6596b4
Showing 1 changed file with 15 additions and 7 deletions.
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
Expand All @@ -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]>
*/

Expand All @@ -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 */
/** @} */

0 comments on commit a6596b4

Please sign in to comment.