Setting RTC Alarm For A Specific Period From Now
Hello,
I would like to set an RTC alarm to wake the system, let's say, 5 seconds from current time.
The example applications show how to set an alarm for a specific date+time in the future, but I want to set it for X milliseconds from current time.
One way would be to get the current timestamp in milliseconds and add X to it, convert it to date+time and set RTC alarm to it.
Another way would be if there is some RTC date+time algebra support, where I can just take a date+time and add milliseconds to it.
I have no idea how to do either.
Can you please advice me on how to solve this?
Thanks!
