code reuse good, code duplication bad

This commit is contained in:
rusefillc 2021-02-05 22:19:24 -05:00
parent c549a13c1f
commit 59efbf8833
3 changed files with 13 additions and 24 deletions

View File

@ -8,6 +8,19 @@
#ifndef CONFIG_CHCONF_COMMON_H_
#define CONFIG_CHCONF_COMMON_H_
#define PORT_IDLE_THREAD_STACK_SIZE 32
// See global_shared.h notes about stack requirements
// see also http://www.chibios.org/dokuwiki/doku.php?id=chibios:kb:stacks
#define PORT_INT_REQUIRED_STACK 128
#define CHPRINTF_USE_FLOAT TRUE
#if !defined(ENABLE_PERF_TRACE) || defined(__DOXYGEN__)
// looks like this value could not be defined in efifeatures.h - please define either externally or just change the value here
#define ENABLE_PERF_TRACE TRUE
#endif /* ENABLE_PERF_TRACE */
#if !defined(_FROM_ASM_)
#include "obd_error_codes.h"
#endif /* _FROM_ASM_ */

View File

@ -41,18 +41,6 @@
*
*/
#define PORT_IDLE_THREAD_STACK_SIZE 32
// See global_shared.h notes about stack requirements
// see also http://www.chibios.org/dokuwiki/doku.php?id=chibios:kb:stacks
#define PORT_INT_REQUIRED_STACK 128
#define CHPRINTF_USE_FLOAT TRUE
#if !defined(ENABLE_PERF_TRACE) || defined(__DOXYGEN__)
// looks like this value could not be defined in efifeatures.h - please define either externally or just change the value here
#define ENABLE_PERF_TRACE TRUE
#endif /* ENABLE_PERF_TRACE */
#include "chconf_common.h"

View File

@ -41,18 +41,6 @@
*
*/
#define PORT_IDLE_THREAD_STACK_SIZE 32
// See global_shared.h notes about stack requirements
// see also http://www.chibios.org/dokuwiki/doku.php?id=chibios:kb:stacks
#define PORT_INT_REQUIRED_STACK 128
#define CHPRINTF_USE_FLOAT TRUE
#if !defined(ENABLE_PERF_TRACE) || defined(__DOXYGEN__)
// looks like this value could not be defined in efifeatures.h - please define either externally or just change the value here
#define ENABLE_PERF_TRACE TRUE
#endif /* ENABLE_PERF_TRACE */
#include "chconf_common.h"