Skip to content

Commit

Permalink
interruptable->interruptible
Browse files Browse the repository at this point in the history
  • Loading branch information
erlingrj committed Oct 15, 2024
1 parent 292ffa7 commit f049172
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/platform/pico/pico.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ lf_ret_t PlatformPico_wait_until(Platform *self, instant_t wakeup_time) {
return LF_OK;
}

lf_ret_t PlatformPico_wait_until_interruptable(Platform *self, instant_t wakeup_time) {
lf_ret_t PlatformPico_wait_until_interruptible(Platform *self, instant_t wakeup_time) {
PlatformPico *p = (PlatformPico *)self;
LF_DEBUG(PLATFORM, "Wait until interruptable %" PRId64, wakeup_time);
LF_DEBUG(PLATFORM, "Wait until interruptible %" PRId64, wakeup_time);
// time struct
absolute_time_t target;

Expand Down Expand Up @@ -84,7 +84,7 @@ void Platform_ctor(Platform *self) {
self->get_physical_time = PlatformPico_get_physical_time;
self->wait_until = PlatformPico_wait_until;
self->initialize = PlatformPico_initialize;
self->wait_until_interruptable = PlatformPico_wait_until_interruptable;
self->wait_until_interruptible = PlatformPico_wait_until_interruptible;
self->new_async_event = PlatformPico_new_async_event;
}

Expand Down
4 changes: 2 additions & 2 deletions src/platform/zephyr/zephyr.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ lf_ret_t PlatformZephyr_wait_until(Platform *self, instant_t wakeup_time) {

lf_ret_t PlatformZephyr_wait_until_interruptible(Platform *self, instant_t wakeup_time) {
PlatformZephyr *p = (PlatformZephyr *)self;
LF_DEBUG(PLATFORM, "Wait until interruptable %" PRId64, wakeup_time);
LF_DEBUG(PLATFORM, "Wait until interruptible %" PRId64, wakeup_time);
interval_t sleep_duration = wakeup_time - self->get_physical_time(self);
LF_DEBUG(PLATFORM, "Wait until interruptable for %" PRId64, wakeup_time);
LF_DEBUG(PLATFORM, "Wait until interruptible for %" PRId64, wakeup_time);
if (sleep_duration < 0) {
return LF_OK;
}
Expand Down

0 comments on commit f049172

Please sign in to comment.