1 parent 2724129 commit 3b0fbfeCopy full SHA for 3b0fbfe
1 file changed
cc3200/mpthreadport.c
@@ -30,6 +30,7 @@
30
#include "py/mpstate.h"
31
#include "py/gc.h"
32
#include "py/mpthread.h"
33
+#include "mptask.h"
34
#include "task.h"
35
36
#if MICROPY_PY_THREAD
@@ -55,9 +56,11 @@ void mp_thread_init(void) {
55
56
57
// create first entry in linked list of all threads
58
thread = &thread_entry0;
- thread->id = NULL; // TODO
59
+ thread->id = xTaskGetCurrentTaskHandle();
60
thread->ready = 1;
61
thread->arg = NULL;
62
+ thread->stack = mpTaskStack;
63
+ thread->stack_len = MICROPY_TASK_STACK_LEN;
64
thread->next = NULL;
65
}
66
0 commit comments