drivers/segger: Set correct scaling for perf time

Don't assume that perf_getfreq returns nanoseconds, define the
SEGGER_SYSVIEW_TIMESTAMP_FREQ instead.

Signed-off-by: Jukka Laitinen <jukka.laitinen@tii.ae>
This commit is contained in:
Jukka Laitinen 2025-06-04 14:26:58 +03:00 committed by Xiang Xiao
parent 1178b48047
commit e81b441f4b

View file

@ -46,6 +46,8 @@
#define SEGGER_SYSVIEW_GET_TIMESTAMP note_sysview_get_timestamp
#define SEGGER_SYSVIEW_TIMESTAMP_FREQ note_sysview_timestamp_freq
/* The RTT channel that SystemView will use. */
#define SEGGER_SYSVIEW_RTT_CHANNEL CONFIG_SEGGER_SYSVIEW_RTT_CHANNEL
@ -67,6 +69,7 @@
****************************************************************************/
#define note_sysview_get_timestamp() perf_gettime()
#define note_sysview_timestamp_freq() perf_getfreq()
/****************************************************************************
* Public Data