Khoih-prog / STM32_TimerInterrupt, largest allowed delay

I am using the above timer interrupt library on an STM32F103 and was trying to figure out (with little success) what the largest delay interval that can be set via the attachInterruptInterval( ) function is. I believe the largest number it can accept for a delay is a long, is that correct (i.e. I can not directly configure it for a 24 hour, once per day delay)?

I could not find it on the doc at the git. If I overlooked, sorry - could you point me to that doc? Or if you know, it would be most appreciated.

Thank you.

In order to make the relevant information available to readers of this thread, I'll share a link to the library code and "doc at the git" in question:

OK, so if I am reading this correctly unsigned long is the largest number that can be passed. Which should be 4,294,967,295. It says " ulong millisecs". This should mean that this library can support a schedule that occurs around once every 1193 hours. I would #define one day as 86400000UL in order to avoid any type conversions/misunderstandings, yes?

Thanks much!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.