wangchdo commented on code in PR #17065:
URL: https://github.com/apache/nuttx/pull/17065#discussion_r2375110594


##########
arch/tricore/src/common/tricore_systimer.c:
##########
@@ -321,6 +339,50 @@ tricore_systimer_tick_start(struct oneshot_lowerhalf_s 
*lower,
   return 0;
 }
 
+#ifdef CONFIG_HRTIMER
+static int
+tricore_hrtimer_setexpire(struct oneshot_lowerhalf_s *lower,
+                           clock_t expiration_time)
+{
+  (void)lower;
+
+  struct tricore_systimer_lowerhalf_s *priv = &g_systimer_lower;
+
+  IfxStm_updateCompare(priv->tbase, IfxStm_Comparator_0, expiration_time);
+
+  return OK;
+}
+
+static clock_t
+tricore_hrtimer_current(struct oneshot_lowerhalf_s *lower)
+{
+  (void)lower;
+
+  struct tricore_systimer_lowerhalf_s *priv = &g_systimer_lower;

Review Comment:
   Hi @xiaoxiang781216  
   
   I would like to reuse the tbase part from the g_systimer_lower, it is not 
part of lower. Please have a check:
   
   <img width="970" height="563" alt="image" 
src="https://github.com/user-attachments/assets/f173cf31-2a5a-42e5-a634-5318d17a1ec9";
 />
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to