File tree 3 files changed +18
-12
lines changed
3 files changed +18
-12
lines changed Original file line number Diff line number Diff line change @@ -88,13 +88,15 @@ void preloop_update_frequency() {
88
88
#endif
89
89
}
90
90
91
- extern " C" void esp_yield () __attribute__((weak));
92
- extern " C" void esp_yield () {
91
+ extern " C" void __esp_yield () __attribute__((weak));
92
+ extern " C" void __esp_yield () {
93
93
if (cont_can_yield (g_pcont)) {
94
94
cont_yield (g_pcont);
95
95
}
96
96
}
97
97
98
+ extern " C" void esp_yield (void ) __attribute__ ((weak, alias(" __esp_yield" )));
99
+
98
100
extern " C" void esp_schedule () {
99
101
// always on CONT stack here
100
102
ets_post (LOOP_TASK_PRIORITY, 0 , 0 );
Original file line number Diff line number Diff line change 6
6
#include < interrupts.h>
7
7
#include < coredecls.h>
8
8
9
- extern " C" void esp_loop ()
9
+ extern " C"
10
10
{
11
- loop ();
12
- run_scheduled_functions ();
13
- run_scheduled_recurrent_functions ();}
11
+ void esp_loop ()
12
+ {
13
+ loop ();
14
+ run_scheduled_functions ();
15
+ run_scheduled_recurrent_functions ();
16
+ }
14
17
15
- extern " C" void esp_yield ()
16
- {
17
- if (cont_can_yield (g_pcont)) {
18
- cont_yield (g_pcont);
18
+ void __esp_yield ();
19
+
20
+ extern " C" void esp_yield ()
21
+ {
22
+ __esp_yield ();
23
+ run_scheduled_recurrent_functions ();
19
24
}
20
- run_scheduled_recurrent_functions ();
21
25
}
22
26
23
27
typedef std::function<void (void )> mSchedFuncT ;
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ extern "C" void optimistic_yield (uint32_t interval_us)
42
42
usleep (interval_us);
43
43
}
44
44
45
- extern " C" void esp_yield ()
45
+ extern " C" void __esp_yield ()
46
46
{
47
47
}
48
48
You can’t perform that action at this time.
0 commit comments