mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/TACOS.git
synced 2025-06-10 16:45:59 +00:00
added the ability to announce the creation and termination of TacosThreads in init() and cleanup(). Needs to be enabled with #define STA_TACOS_DIAGNOSTICS_ENABLED
This commit is contained in:
parent
aa21c44270
commit
a2c22ab4e6
@ -56,7 +56,11 @@ namespace sta
|
||||
}
|
||||
}
|
||||
|
||||
void TacosThread::init() {}
|
||||
void TacosThread::init() {
|
||||
#ifdef STA_TACOS_DIAGNOSTICS_ENABLED
|
||||
STA_DEBUG_PRINTF("Started %s", getName());
|
||||
#endif //STA_TACOS_DIAGNOSTICS_ENABLED
|
||||
}
|
||||
|
||||
void TacosThread::loop()
|
||||
{
|
||||
@ -102,7 +106,11 @@ namespace sta
|
||||
osThreadExit();
|
||||
}
|
||||
|
||||
void TacosThread::cleanup() {}
|
||||
void TacosThread::cleanup() {
|
||||
#ifdef STA_TACOS_DIAGNOSTICS_ENABLED
|
||||
STA_DEBUG_PRINTF("Stopped %s", getName());
|
||||
#endif
|
||||
}
|
||||
|
||||
void TacosThread::sleep(uint32_t ticks)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user