We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00e7176 commit 8e00844Copy full SHA for 8e00844
2 files changed
stmhal/main.c
@@ -454,7 +454,9 @@ int main(void) {
454
#endif
455
456
// basic sub-system init
457
+ #if MICROPY_PY_THREAD
458
pyb_thread_init(&pyb_thread_main);
459
+ #endif
460
pendsv_init();
461
led_init();
462
#if MICROPY_HW_HAS_SWITCH
stmhal/stm32_it.c
@@ -289,10 +289,12 @@ void SysTick_Handler(void) {
289
dma_idle_handler(uwTick);
290
}
291
292
293
// signal a thread switch at 4ms=250Hz
294
if (pyb_thread_enabled && (uwTick & 0x03) == 0x03) {
295
SCB->ICSR = SCB_ICSR_PENDSVSET_Msk;
296
297
298
299
300
/******************************************************************************/
0 commit comments