mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 21:36:28 +08:00
segger/sysview: add up_perf_freq result chaeck
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
@@ -375,6 +375,12 @@ int note_sysview_initialize(void)
|
|||||||
note_sysview_send_tasklist,
|
note_sysview_send_tasklist,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (freq == 0)
|
||||||
|
{
|
||||||
|
syslog(LOG_ERR, "up_perf isn't initialized, sysview isn't available");
|
||||||
|
PANIC();
|
||||||
|
}
|
||||||
|
|
||||||
SEGGER_SYSVIEW_Init(freq, freq, &g_sysview_trace_api,
|
SEGGER_SYSVIEW_Init(freq, freq, &g_sysview_trace_api,
|
||||||
note_sysview_send_description);
|
note_sysview_send_description);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user