Skip to content
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

RP2040 support based on low-level platform API #441

Merged
merged 2 commits into from
Jun 3, 2024
Merged
Changes from all commits
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
8 changes: 4 additions & 4 deletions low_level_platform/impl/src/lf_rp2040_support.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,15 @@ int _lf_interruptable_sleep_until_locked(environment_t* env, instant_t wakeup_ti
sem_reset(&_lf_sem_irq_event, 0);
// create us boot wakeup time
target = from_us_since_boot((uint64_t)(wakeup_time / 1000));
// allow interrupts
LF_CRITICAL_SECTION_EXIT(env);
// Enable interrupts.
lf_critical_section_exit(env);
// blocked sleep
// return on timeout or on processor event
if (sem_acquire_block_until(&_lf_sem_irq_event, target)) {
ret_code = -1;
}
// remove interrupts
LF_CRITICAL_SECTION_ENTER(env);
// Disable interrupts.
lf_critical_section_enter(env);
return ret_code;
}

Expand Down
Loading