Skip to content

Commit

Permalink
shared/runtime/softtimer.c: Add a user_data field to the softtimer obj.
Browse files Browse the repository at this point in the history
Allowing to transport additional information about the entity which
started the timer.

Signed-off-by: robert-hh <robert@hammelrath.com>
  • Loading branch information
robert-hh committed Jun 28, 2024
1 parent 37c10a9 commit 6843471
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions shared/runtime/softtimer.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ typedef struct _soft_timer_entry_t {
void (*c_callback)(struct _soft_timer_entry_t *);
mp_obj_t py_callback;
};
void *user_data;
} soft_timer_entry_t;

extern volatile uint32_t soft_timer_next;
Expand Down

0 comments on commit 6843471

Please sign in to comment.