Skip to content

Commit d16354f

Browse files
committed
add stack_thunk_yield()
1 parent e7f29a9 commit d16354f

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

cores/esp8266/StackThunk.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -150,4 +150,9 @@ void stack_thunk_fatal_smashing()
150150
__stack_chk_fail();
151151
}
152152

153+
void stack_thunk_yield()
154+
{
155+
optimistic_yield(10000);
156+
}
157+
153158
}

cores/esp8266/StackThunk.h

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
extern "C" {
3232
#endif
3333

34+
extern void stack_thunk_yield(void);
35+
3436
extern void stack_thunk_add_ref();
3537
extern void stack_thunk_del_ref();
3638
extern void stack_thunk_repaint();

0 commit comments

Comments
 (0)