reducing code duplication

This commit is contained in:
rusefillc 2021-02-05 23:56:22 -05:00
parent 6a2473ccc1
commit d80ed37040
5 changed files with 7 additions and 33 deletions

View File

@ -740,14 +740,6 @@
/* Port-specific settings (override port settings defaulted in chcore.h). */
/*===========================================================================*/
#ifndef __ASSEMBLER__
#ifdef __cplusplus
extern "C"
#endif
void chDbgPanic3(const char *msg, const char * file, int line);
#endif
#undef ENABLE_PERF_TRACE
#define ENABLE_PERF_TRACE FALSE
#define TRACE_BUFFER_LENGTH 1

View File

@ -741,13 +741,6 @@
/* Port-specific settings (override port settings defaulted in chcore.h). */
/*===========================================================================*/
#ifndef __ASSEMBLER__
#ifdef __cplusplus
extern "C"
#endif // __cplusplus
void chDbgPanic3(const char *msg, const char * file, int line);
#endif // __ASSEMBLER__
#undef ENABLE_PERF_TRACE
#define ENABLE_PERF_TRACE FALSE
#define TRACE_BUFFER_LENGTH 1

View File

@ -132,4 +132,11 @@ extern "C" {
} \
} while (false)
#ifndef __ASSEMBLER__
#ifdef __cplusplus
extern "C"
#endif // __cplusplus
void chDbgPanic3(const char *msg, const char * file, int line);
#endif // __ASSEMBLER__
#endif /* CONFIG_CHCONF_COMMON_H_ */

View File

@ -750,15 +750,6 @@
/* Port-specific settings (override port settings defaulted in chcore.h). */
/*===========================================================================*/
#ifndef __ASSEMBLER__
#ifdef __cplusplus
extern "C"
#endif
void chDbgPanic3(const char *msg, const char * file, int line);
#endif
#endif /* CHCONF_H */
/** @} */

View File

@ -752,15 +752,6 @@
#define CORTEX_VTOR_INIT 0x00200000U
#ifndef __ASSEMBLER__
#ifdef __cplusplus
extern "C"
#endif
void chDbgPanic3(const char *msg, const char * file, int line);
#endif
#endif /* CHCONF_H */
/** @} */