Skip to content

Commit

Permalink
add rtt_show_address() show _SEGGER_RTT address|添加rtt_show_address()函…
Browse files Browse the repository at this point in the history
…数显示 _SEGGER_RTT 的地址
  • Loading branch information
Guozhanxin committed May 19, 2018
1 parent cc1a295 commit 89d7f69
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions SystemView_Src/Config/SEGGER_SYSVIEW_RTThread.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,19 @@ static int rt_trace_init(void)

rt_interrupt_enter_sethook(_cb_irq_enter);
rt_interrupt_leave_sethook(_cb_irq_leave);

rt_kprintf("RTT Control Block Detection Address is 0x%x\n", &_SEGGER_RTT);

return 0;
}
INIT_COMPONENT_EXPORT(rt_trace_init);

int rtt_show_address(int argc, char **argv)
{
rt_kprintf("RTT Control Block Detection Address is 0x%x\n", &_SEGGER_RTT);
return RT_EOK;
}
#ifdef FINSH_USING_MSH
FINSH_FUNCTION_EXPORT_ALIAS(rtt_show_address, __cmd_rtt_show_address, Show RTT Control Block Address.);
#endif
/*************************** End of file ****************************/

0 comments on commit 89d7f69

Please sign in to comment.