Skip to content

Commit cb6b30a

Browse files
dok-netdevyte
authored andcommitted
Weak binding lessens version dependency between ESP8266 and MT library CoopTask. (#6790)
1 parent 6768116 commit cb6b30a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cores/esp8266/core_esp8266_main.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,14 @@ static void esp_yield_within_cont() {
100100
run_scheduled_recurrent_functions();
101101
}
102102

103-
extern "C" void esp_yield() {
103+
extern "C" void __esp_yield() {
104104
if (can_yield()) {
105105
esp_yield_within_cont();
106106
}
107107
}
108108

109+
extern "C" void esp_yield() __attribute__ ((weak, alias("__esp_yield")));
110+
109111
extern "C" void esp_schedule() {
110112
// always on CONT stack here
111113
ets_post(LOOP_TASK_PRIORITY, 0, 0);

0 commit comments

Comments
 (0)