fsfw-example-common/example/utility/utility.cpp

17 lines
490 B
C++
Raw Normal View History

2021-06-08 13:46:45 +02:00
#include "utility.h"
2022-05-05 20:55:28 +02:00
2021-06-08 13:46:45 +02:00
#include <OBSWVersion.h>
2022-05-09 01:14:53 +02:00
#include "fsfw/serviceinterface.h"
2021-06-08 13:46:45 +02:00
2022-05-22 15:30:08 +02:00
void utility::commonInitPrint(const char *const os, const char *const board) {
2022-05-05 20:55:28 +02:00
if (os == nullptr or board == nullptr) {
return;
}
2022-05-09 01:14:53 +02:00
fmt::print("-- FSFW Example ({}) v{}.{}.{} --\n", os, FSFW_EXAMPLE_VERSION,
FSFW_EXAMPLE_SUBVERSION, FSFW_EXAMPLE_REVISION);
fmt::print("-- Compiled for {}\n", board);
fmt::print("-- Compiled on {} {}\n", __DATE__, __TIME__);
sif::initialize();
2021-06-08 13:46:45 +02:00
}