@@ -101,8 +101,8 @@ bool ets_post(uint8 prio, os_signal_t sig, os_param_t param) {
101
101
// queue got full
102
102
emu_tasks [id ].i_put = -1 ;
103
103
}
104
- //printf("after ets_post: "); dump_task(prio, &emu_tasks[id]);
105
- //dump_tasks();
104
+ // printf("after ets_post: "); dump_task(prio, &emu_tasks[id]);
105
+ // dump_tasks();
106
106
107
107
ets_intr_unlock ();
108
108
@@ -142,17 +142,17 @@ bool ets_loop_iter(void) {
142
142
extern uint32_t pend_flag_noise_check ;
143
143
uint32_t * sw_wdt = & pend_flag_noise_check - 6 ;
144
144
145
- //static unsigned cnt;
145
+ // static unsigned cnt;
146
146
bool progress = false;
147
147
for (volatile struct task_entry * t = emu_tasks ; t < & emu_tasks [MP_ARRAY_SIZE (emu_tasks )]; t ++ ) {
148
148
if (!ets_loop_dont_feed_sw_wdt ) {
149
149
system_soft_wdt_feed ();
150
150
}
151
151
ets_intr_lock ();
152
- //printf("etc_loop_iter: "); dump_task(t - emu_tasks + FIRST_PRIO, t);
152
+ // printf("etc_loop_iter: "); dump_task(t - emu_tasks + FIRST_PRIO, t);
153
153
if (t -> i_get != t -> i_put ) {
154
154
progress = true;
155
- //printf("#%d Calling task %d(%p) (%x, %x)\n", cnt++,
155
+ // printf("#%d Calling task %d(%p) (%x, %x)\n", cnt++,
156
156
// t - emu_tasks + FIRST_PRIO, t->task, t->queue[t->i_get].sig, t->queue[t->i_get].par);
157
157
int idx = t -> i_get ;
158
158
if (t -> i_put == -1 ) {
@@ -161,15 +161,15 @@ bool ets_loop_iter(void) {
161
161
if (++ t -> i_get == t -> qlen ) {
162
162
t -> i_get = 0 ;
163
163
}
164
- //ets_intr_unlock();
164
+ // ets_intr_unlock();
165
165
uint32_t old_sw_wdt = * sw_wdt ;
166
166
t -> task (& t -> queue [idx ]);
167
167
if (ets_loop_dont_feed_sw_wdt ) {
168
168
// Restore previous SW WDT counter, in case task fed/cleared it
169
169
* sw_wdt = old_sw_wdt ;
170
170
}
171
- //ets_intr_lock();
172
- //printf("Done calling task %d\n", t - emu_tasks + FIRST_PRIO);
171
+ // ets_intr_lock();
172
+ // printf("Done calling task %d\n", t - emu_tasks + FIRST_PRIO);
173
173
}
174
174
ets_intr_unlock ();
175
175
}
@@ -221,7 +221,7 @@ bool ets_run(void) {
221
221
ets_intr_unlock ();
222
222
while (1 ) {
223
223
if (!ets_loop_iter ()) {
224
- //printf("idle\n");
224
+ // printf("idle\n");
225
225
ets_intr_lock ();
226
226
if (idle_cb ) {
227
227
idle_cb (idle_arg );
@@ -234,7 +234,7 @@ bool ets_run(void) {
234
234
}
235
235
236
236
void ets_set_idle_cb (void (* handler )(void * ), void * arg ) {
237
- //printf("ets_set_idle_cb(%p, %p)\n", handler, arg);
237
+ // printf("ets_set_idle_cb(%p, %p)\n", handler, arg);
238
238
idle_cb = handler ;
239
239
idle_arg = arg ;
240
240
}
0 commit comments