note_sysview.c: note_sysview_initialize should return error value
This commit is contained in:
parent
7f6cb66dc0
commit
dbc28cbf75
@ -370,6 +370,7 @@ unsigned long note_sysview_get_timestamp(void)
|
|||||||
int note_sysview_initialize(void)
|
int note_sysview_initialize(void)
|
||||||
{
|
{
|
||||||
unsigned long freq = up_perf_getfreq();
|
unsigned long freq = up_perf_getfreq();
|
||||||
|
int ret;
|
||||||
|
|
||||||
static const SEGGER_SYSVIEW_OS_API g_sysview_trace_api =
|
static const SEGGER_SYSVIEW_OS_API g_sysview_trace_api =
|
||||||
{
|
{
|
||||||
@ -391,9 +392,9 @@ int note_sysview_initialize(void)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
SEGGER_SYSVIEW_Start();
|
SEGGER_SYSVIEW_Start();
|
||||||
note_driver_register(&g_note_sysview_driver.driver);
|
ret = note_driver_register(&g_note_sysview_driver.driver);
|
||||||
syslog(LOG_NOTICE, "SEGGER RTT Control Block Address: %#" PRIxPTR "\n",
|
syslog(LOG_NOTICE, "SEGGER RTT Control Block Address: %#" PRIxPTR "\n",
|
||||||
(uintptr_t)&_SEGGER_RTT +
|
(uintptr_t)&_SEGGER_RTT +
|
||||||
CONFIG_SEGGER_RTT_UNCACHED_OFF);
|
CONFIG_SEGGER_RTT_UNCACHED_OFF);
|
||||||
return 0;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user