1、【完善】获取 PSP 、MSP 及 SP 寄存器函数,增强兼容性。

Signed-off-by: armink <armink.ztl@gmail.com>
This commit is contained in:
armink
2017-04-29 21:59:05 +08:00
parent 8aae96fc28
commit 390541a413
4 changed files with 47 additions and 39 deletions
@@ -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) {
}