mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 03:05:40 +08:00
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:
committed by
Xiang Xiao
parent
1178b48047
commit
e81b441f4b
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user