At the moment, the wrapper implementation of modm::Thread inside the freeRtos module is useless, because the modm::rtos::Thread::Thread creates the rtos task directly inside the constructor
modm::rtos::Thread::Thread(uint32_t priority,
uint16_t stackDepth,
const char* name)
{
xTaskCreate(
&wrapper,
name ? name : "anon",
(stackDepth / 4) + 1,
this,
priority,
&this->handle);
}
This makes no real sense to me, the constructor should be empty. Because Task can be created dynamically (will malloc anyways at the point of construction) one should be able to declare Threads without running them - and run them at a later stage in the programm (interrupt controlled for example) respectively
At the moment, the wrapper implementation of modm::Thread inside the freeRtos module is useless, because the
modm::rtos::Thread::Threadcreates the rtos task directly inside the constructorThis makes no real sense to me, the constructor should be empty. Because Task can be created dynamically (will malloc anyways at the point of construction) one should be able to declare Threads without running them - and run them at a later stage in the programm (interrupt controlled for example) respectively