1、【完善】获取 PSP 、MSP 及 SP 寄存器函数,增强兼容性。
Signed-off-by: armink <armink.ztl@gmail.com>
This commit is contained in:
@@ -155,7 +155,7 @@ void assert_failed(u8* file, u32 line)
|
||||
/* User can add his own implementation to report the file name and line number,
|
||||
ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */
|
||||
/* Infinite loop */
|
||||
cm_backtrace_assert(__get_SP());
|
||||
cm_backtrace_assert(cmb_get_sp());
|
||||
printf("assert failed at %s:%d \n", file, line);
|
||||
while (1) {
|
||||
}
|
||||
|
||||
@@ -361,7 +361,7 @@ void assert_failed(u8* file, u32 line)
|
||||
/* User can add his own implementation to report the file name and line number,
|
||||
ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */
|
||||
/* Infinite loop */
|
||||
cm_backtrace_assert(__get_SP());
|
||||
cm_backtrace_assert(cmb_get_sp());
|
||||
printf("assert failed at %s:%d \n", file, line);
|
||||
while (1) {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user