Tweaks PAPB polling #533

Merged
muellerr merged 32 commits from tweaks_papb_polling into develop 2023-03-28 22:18:27 +02:00
2 changed files with 4 additions and 0 deletions
Showing only changes of commit 9cfee12774 - Show all commits

View File

@ -36,6 +36,9 @@ ReturnValue_t PapbVcInterface::write(const uint8_t* data, size_t size) {
for (size_t idx = 0; idx < size; idx++) {
// This delay is super-important, DO NOT REMOVE!
// Polling the GPIO too often can mess up the scheduler.
// TODO: Maybe this should not be done like this. It would be better if there was a custom
// FPGA module which can accept packets and then takes care of dumping that packet into
// the PTME. DMA would be an ideal solution for this.
nanosleep(&BETWEEN_POLL_DELAY, &remDelay);
if (pollPapbBusySignal(2) == returnvalue::OK) {
*(vcBaseReg + DATA_REG_OFFSET) = static_cast<uint32_t>(data[idx]);

View File

@ -36,6 +36,7 @@ class TmStoreTaskBase : public SystemObject {
SdCardMountedIF& sdcMan);
protected:
StorageManagerIF& ipcStore;
Countdown sdCardCheckCd = Countdown(800);
// 20 minutes are allowed as maximum dump time.