clean up op done
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
target_sources(
|
||||
${LIB_EIVE_MISSION} PRIVATE Timestamp.cpp ProgressPrinter.cpp Filenaming.cpp
|
||||
GlobalConfigHandler.cpp DummySdCardManager.cpp)
|
||||
${LIB_EIVE_MISSION}
|
||||
PRIVATE Timestamp.cpp ProgressPrinter.cpp Filenaming.cpp
|
||||
GlobalConfigHandler.cpp DummySdCardManager.cpp trace.cpp)
|
||||
|
10
mission/utility/trace.cpp
Normal file
10
mission/utility/trace.cpp
Normal file
@ -0,0 +1,10 @@
|
||||
#include <mission/utility/trace.h>
|
||||
|
||||
#include "fsfw/serviceinterface.h"
|
||||
|
||||
void trace::threadTrace(uint32_t& counter, const char* name, unsigned div) {
|
||||
counter++;
|
||||
if (counter % div == 0) {
|
||||
sif::debug << name << " running" << std::endl;
|
||||
}
|
||||
}
|
14
mission/utility/trace.h
Normal file
14
mission/utility/trace.h
Normal file
@ -0,0 +1,14 @@
|
||||
#ifndef MISSION_UTILITY_TRACE_H_
|
||||
#define MISSION_UTILITY_TRACE_H_
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
#define OBSW_THREAD_TRACING 0
|
||||
|
||||
namespace trace {
|
||||
|
||||
void threadTrace(uint32_t& counter, const char* name, unsigned div = 5);
|
||||
|
||||
}
|
||||
|
||||
#endif /* MISSION_UTILITY_TRACE_H_ */
|
Reference in New Issue
Block a user