reducing code duplication
This commit is contained in:
parent
6a2473ccc1
commit
d80ed37040
|
@ -740,14 +740,6 @@
|
||||||
/* Port-specific settings (override port settings defaulted in chcore.h). */
|
/* 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
|
#undef ENABLE_PERF_TRACE
|
||||||
#define ENABLE_PERF_TRACE FALSE
|
#define ENABLE_PERF_TRACE FALSE
|
||||||
#define TRACE_BUFFER_LENGTH 1
|
#define TRACE_BUFFER_LENGTH 1
|
||||||
|
|
|
@ -741,13 +741,6 @@
|
||||||
/* Port-specific settings (override port settings defaulted in chcore.h). */
|
/* 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
|
#undef ENABLE_PERF_TRACE
|
||||||
#define ENABLE_PERF_TRACE FALSE
|
#define ENABLE_PERF_TRACE FALSE
|
||||||
#define TRACE_BUFFER_LENGTH 1
|
#define TRACE_BUFFER_LENGTH 1
|
||||||
|
|
|
@ -132,4 +132,11 @@ extern "C" {
|
||||||
} \
|
} \
|
||||||
} while (false)
|
} 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_ */
|
#endif /* CONFIG_CHCONF_COMMON_H_ */
|
||||||
|
|
|
@ -750,15 +750,6 @@
|
||||||
/* Port-specific settings (override port settings defaulted in chcore.h). */
|
/* 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 */
|
#endif /* CHCONF_H */
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
|
@ -752,15 +752,6 @@
|
||||||
|
|
||||||
#define CORTEX_VTOR_INIT 0x00200000U
|
#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 */
|
#endif /* CHCONF_H */
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
Loading…
Reference in New Issue