Improved chSysHalt().
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9795 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
7262b9b844
commit
43aa123e65
|
@ -298,6 +298,7 @@ void chSysHalt(const char *reason) {
|
||||||
(void)reason;
|
(void)reason;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Halt hook code, usually empty.*/
|
||||||
CH_CFG_SYSTEM_HALT_HOOK(reason);
|
CH_CFG_SYSTEM_HALT_HOOK(reason);
|
||||||
|
|
||||||
/* Harmless infinite loop.*/
|
/* Harmless infinite loop.*/
|
||||||
|
|
|
@ -193,15 +193,15 @@ void chSysHalt(const char *reason) {
|
||||||
|
|
||||||
port_disable();
|
port_disable();
|
||||||
|
|
||||||
/* Halt hook code, usually empty.*/
|
|
||||||
CH_CFG_SYSTEM_HALT_HOOK(reason);
|
|
||||||
|
|
||||||
/* Logging the event.*/
|
/* Logging the event.*/
|
||||||
_trace_halt(reason);
|
_trace_halt(reason);
|
||||||
|
|
||||||
/* Pointing to the passed message.*/
|
/* Pointing to the passed message.*/
|
||||||
ch.dbg.panic_msg = reason;
|
ch.dbg.panic_msg = reason;
|
||||||
|
|
||||||
|
/* Halt hook code, usually empty.*/
|
||||||
|
CH_CFG_SYSTEM_HALT_HOOK(reason);
|
||||||
|
|
||||||
/* Harmless infinite loop.*/
|
/* Harmless infinite loop.*/
|
||||||
while (true) {
|
while (true) {
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue