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


##########
sched/Kconfig:
##########
@@ -2034,3 +2034,21 @@ config CUSTOM_SEMAPHORE_MAXVALUE
        ---help---
                Enable to support custom max value for semaphores.
                When this option is enabled, the max value of a semaphore can 
be set
+
+config HRTIMER
+       bool "High-resolution timer (hrtimer) support"
+       depends on ALARM_ARCH
+       default n
+       ---help---
+               Enable high-resolution timers (hrtimers) for precise time-based
+               operations within the system.
+
+if HRTIMER
+config HRTIMER_ONESHOT_QUEUE_SIZE
+       int "Size of oneshot hrtimer queue"
+       default 64

Review Comment:
   I would suggest to embed red black node into hrtimer:
   https://github.com/apache/nuttx/blob/master/include/sys/tree.h#L386-L1060
   so we could support the unlimited number of hrtimer without allocation.



-- 
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