eive-obsw/bsp_q7s/boardtest/FileSystemTest.cpp

27 lines
643 B
C++
Raw Normal View History

2021-06-30 16:15:46 +02:00
#include "FileSystemTest.h"
2021-07-05 12:09:31 +02:00
#include "fsfw/timemanager/Stopwatch.h"
2021-06-30 16:15:46 +02:00
#include <iostream>
#include <cstdlib>
enum SdCard {
SDC0,
SDC1
};
2021-06-30 16:15:46 +02:00
FileSystemTest::FileSystemTest() {
using namespace std;
SdCard sdCard = SdCard::SDC0;
2021-07-05 10:40:52 +02:00
cout << "SD Card Test for SD card " << static_cast<int>(sdCard) << std::endl;
2021-07-05 12:09:31 +02:00
//Stopwatch stopwatch;
std::system("q7hw sd info all > /tmp/sd_status.txt");
//stopwatch.stop(true);
std::system("q7hw sd set 0 on > /tmp/sd_set.txt");
//stopwatch.stop(true);
std::system("q7hw sd set 0 off > /tmp/sd_set.txt");
//stopwatch.stop(true);
2021-06-30 16:15:46 +02:00
}
FileSystemTest::~FileSystemTest() {
}