mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #12567 from jeromecoutant/PR_EMAC_TRACE
STM32 EMAC : increase thread size when mbed-trace is enabledpull/12600/head
commit
0692fc65bc
|
@ -889,7 +889,12 @@ bool STM32_EMAC::power_up()
|
|||
}
|
||||
|
||||
/* Worker thread */
|
||||
#if MBED_CONF_MBED_TRACE_ENABLE
|
||||
thread = create_new_thread("stm32_emac_thread", &STM32_EMAC::thread_function, this, MBED_CONF_STM32_EMAC_THREAD_STACKSIZE*2, THREAD_PRIORITY, &thread_cb);
|
||||
#else
|
||||
thread = create_new_thread("stm32_emac_thread", &STM32_EMAC::thread_function, this, MBED_CONF_STM32_EMAC_THREAD_STACKSIZE, THREAD_PRIORITY, &thread_cb);
|
||||
#endif
|
||||
|
||||
|
||||
phy_task_handle = mbed::mbed_event_queue()->call_every(PHY_TASK_PERIOD_MS, mbed::callback(this, &STM32_EMAC::phy_task));
|
||||
|
||||
|
|
Loading…
Reference in New Issue