Use enum for target_register_timer_callback()
[openocd.git] / src / target / armv7m_trace.c
index 62f0f8e..6170119 100644 (file)
@@ -116,7 +116,8 @@ int armv7m_trace_tpiu_config(struct target *target)
                return retval;
 
        if (trace_config->config_type == TRACE_CONFIG_TYPE_INTERNAL)
-               target_register_timer_callback(armv7m_poll_trace, 1, 1, target);
+               target_register_timer_callback(armv7m_poll_trace, 1,
+               TARGET_TIMER_TYPE_PERIODIC, target);
 
        target_call_event_callbacks(target, TARGET_EVENT_TRACE_CONFIG);