File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -88,4 +88,7 @@ void supervisor_run_background_tasks_if_tick() {
88
88
run_background_tasks ();
89
89
}
90
90
91
+ void supervisor_fake_tick () {
92
+ uint32_t now32 = ticks_ms ;
93
+ background_ticks_ms32 = (now32 - 1 );
91
94
}
Original file line number Diff line number Diff line change 36
36
* interrupt context.
37
37
*/
38
38
extern void supervisor_tick (void );
39
+ /** @brief Cause background tasks to be called soon
40
+ *
41
+ * Normally, background tasks are only run once per tick. For other cases where
42
+ * an event noticed from an interrupt context needs to be completed by a background
43
+ * task activity, the interrupt can call supervisor_fake_tick.
44
+ */
45
+ extern void supervisor_fake_tick (void );
39
46
/** @brief Get the lower 32 bits of the time in milliseconds
40
47
*
41
48
* This can be more efficient than supervisor_ticks_ms64, for sites where a wraparound
You can’t perform that action at this time.
0 commit comments