mirror of
https://gitee.com/cosyos/cosyos.git
synced 2026-10-06 04:59:34 +08:00
update Demo-Build/RISC-V32/readme.txt.
Signed-off-by: 零中断延迟的RTOS <cosyos@139.com>
This commit is contained in:
@@ -196,7 +196,7 @@ void test_pendsv_fault_handler(void)
|
||||
在 pendsv_hook 中打印 mepc,持续一段时间后数据统计,如果 mepc 出现过 断点1
|
||||
或 断点2 的地址,判定异常发生。
|
||||
/* 示例 */
|
||||
__WEAK void pendsv_hook(void) MCUCFG_OSIT_ATTRIBUTE
|
||||
__WEAK void pendsv_hook(void)
|
||||
{
|
||||
printf("mepc: %#x\r\n", __get_MEPC());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user