how to achieve more granular polling for TI-RTOS? #1677
-
I noticed that when using mongoose with TI-RTOS, So my question is if it's possible to get more precise timeout values? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
OK so I was able to get a more precise timeout value by using Anyway, any advice would be much appreciated. |
Beta Was this translation helpful? Give feedback.
-
I'm checking the example code, and as far as I can see that does not use TI RTOS. Lines 90 to 128 in 01390fe |
Beta Was this translation helpful? Give feedback.
-
I second Sergio's suggestion. Mongoose's software timer implementation uses |
Beta Was this translation helpful? Give feedback.
I'm checking the example code, and as far as I can see that does not use TI RTOS.
The fastest approach is perhaps you defining
MG_ENABLE_CUSTOM_MILLIS
and providing your ownuint64_t mg_millis(void)
implementation returning up time in milliseconds; as I think you already did.It should be fine if you just return up time, ports to some architectures do just that:
mongoose/src/util.c
Lines 90 to 128 in 01390fe