pico-sdk icon indicating copy to clipboard operation
pico-sdk copied to clipboard

powman_timer_enable_alarm_at_ms documentation

Open jdomnitz opened this issue 2 months ago • 1 comments

powman_timer_enable_alarm_at_ms has the following comment "Note, the timer is stopped and then restarted as part of this function." but this is not documented in the datasheet nor appears to be true in the code. Was this supposed to say "Note, the alarm is stopped and then restarted as part of this function"? If not, where is this behavior covered in the datasheet?

jdomnitz avatar Nov 08 '25 05:11 jdomnitz

Was this supposed to say "Note, the alarm is stopped and then restarted as part of this function"?

Yeah, https://github.com/raspberrypi/pico-sdk/blob/develop/src/rp2_common/hardware_powman/powman.c#L229 says // Alarm must be disabled to set the alarm time so it looks like this was just a typo in the doxygen-comment. Would you like to submit a PR? 🙂

lurch avatar Nov 11 '25 09:11 lurch