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


##########
arch/tricore/src/common/tricore_systimer.c:
##########
@@ -376,7 +443,13 @@ tricore_systimer_initialize(volatile void *tbase, int irq, 
uint64_t freq)
   IfxStm_enableComparatorInterrupt(tbase, IfxStm_Comparator_0);
 
   irq_attach(irq, tricore_systimer_interrupt, priv);
-  up_enable_irq(irq);
 
-  return (struct oneshot_lowerhalf_s *)priv;
+  up_alarm_set_lowerhalf((struct oneshot_lowerhalf_s *)priv);

Review Comment:
   hrtimer will do it,check code below:
   
   <img width="873" height="866" alt="image" 
src="https://github.com/user-attachments/assets/5f6557e5-7bc1-4601-9c2d-4214c1b6d280";
 />
   
   <img width="957" height="587" alt="image" 
src="https://github.com/user-attachments/assets/a301d3a2-803f-40f4-bed2-c2cfcb6b8a2a";
 />
   
   



-- 
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: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to