@@ -216,7 +216,8 @@ void *thread_entry_cb(mp_obj_thread_t *self)
216216
217217
218218
219- void threading_init (void * stack , uint32_t stack_len ) {
219+ void threading_init (void * stack , uint32_t stack_len )
220+ {
220221 mp_thread_set_state (& mp_state_ctx .thread );
221222 // create the first entry in the linked list of all threads
222223 _main_thread .thread .handle = xTaskGetCurrentTaskHandle ();
@@ -238,7 +239,8 @@ void threading_init(void *stack, uint32_t stack_len) {
238239}
239240
240241
241- void threading_deinit (void ) {
242+ void threading_deinit (void )
243+ {
242244 for (;;) {
243245 // Find a task to delete
244246
@@ -266,8 +268,8 @@ void threading_deinit(void) {
266268}
267269
268270
269-
270- void threading_gc_others ( void ) {
271+ void threading_gc_others ( void )
272+ {
271273 threading_lock_acquire (& t_mutex , 1 );
272274
273275 for (mp_obj_thread_t * th = t_thread ; th != NULL ; th = th -> next ) {
@@ -285,7 +287,8 @@ void threading_gc_others(void) {
285287}
286288
287289
288- static void freertos_entry (void * arg ) {
290+ static void freertos_entry (void * arg )
291+ {
289292 if (ext_threading_thread_entry ) {
290293 mp_obj_thread_t * self = (mp_obj_thread_t * )arg ;
291294 ext_threading_thread_entry (self );
@@ -297,7 +300,8 @@ static void freertos_entry(void *arg) {
297300}
298301
299302
300- mp_uint_t thread_create_ex (mp_obj_thread_t * self , int priority , char * name ) {
303+ mp_uint_t thread_create_ex (mp_obj_thread_t * self , int priority , char * name )
304+ {
301305 // store thread entry function into a global variable so we can access it
302306 ext_threading_thread_entry = thread_entry_cb ;
303307
@@ -335,7 +339,8 @@ mp_uint_t thread_create_ex(mp_obj_thread_t *self, int priority, char *name) {
335339}
336340
337341
338- mp_uint_t threading_create_thread (thread_t * self ) {
342+ mp_uint_t threading_create_thread (thread_t * self )
343+ {
339344 return thread_create_ex (self , THREADING_PRIORITY , "mp_thread" );
340345}
341346
0 commit comments