mirror of https://github.com/ARMmbed/mbed-os.git
STM32 EMAC : increase thread size when mbed-trace is enabled
parent
498e2d2bc8
commit
3a02671028
|
@ -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