Skip to content

Implement alarm-module for RP2350 (follow-up for #9965) #10023

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
RP2350: always wake from dormant for AON-alarm
  • Loading branch information
bablokb committed Feb 1, 2025
commit ba66d2b419c8cef5a9bcacf4ea455a9a7b4c469a
4 changes: 4 additions & 0 deletions ports/raspberrypi/common-hal/alarm/time/TimeAlarm.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,11 @@ void alarm_time_timealarm_set_alarms(bool deep_sleep, size_t n_alarms, const mp_
// also see note above regarding aon_timer_get_time, also true here
t.tv_sec = alarm_seconds;
DEBUG_PRINT("alarm_seconds: %d", t.tv_sec);
#ifdef PICO_RP2040
aon_timer_enable_alarm(&t, &timer_callback, deep_sleep);
#else
aon_timer_enable_alarm(&t, &timer_callback, true);
#endif
woke_up = false;
}

Expand Down