From 7bc866a105ab6575bdc759e19dae8c32c6de9338 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Mon, 12 Sep 2022 17:09:27 +0200 Subject: [PATCH] add RPI SD card manager --- bsp_linux_board/RPiSdCardManager.cpp | 15 +++++++++++++++ bsp_linux_board/RPiSdCardManager.h | 17 +++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 bsp_linux_board/RPiSdCardManager.cpp create mode 100644 bsp_linux_board/RPiSdCardManager.h diff --git a/bsp_linux_board/RPiSdCardManager.cpp b/bsp_linux_board/RPiSdCardManager.cpp new file mode 100644 index 00000000..7913f33a --- /dev/null +++ b/bsp_linux_board/RPiSdCardManager.cpp @@ -0,0 +1,15 @@ +#include "RPiSdCardManager.h" + +RPiSdCardManager::RPiSdCardManager() {} + +RPiSdCardManager::RPiSdCardManager(std::string prefix) {} + +const std::string& RPiSdCardManager::getCurrentMountPrefix() const {} + +bool RPiSdCardManager::isSdCardMounted(sd::SdCard sdCard) {} + +sd::SdCard RPiSdCardManager::getPreferredSdCard() const {} + +void RPiSdCardManager::setActiveSdCard(sd::SdCard sdCard) {} + +sd::SdCard RPiSdCardManager::getActiveSdCard() const {} diff --git a/bsp_linux_board/RPiSdCardManager.h b/bsp_linux_board/RPiSdCardManager.h new file mode 100644 index 00000000..68e20c78 --- /dev/null +++ b/bsp_linux_board/RPiSdCardManager.h @@ -0,0 +1,17 @@ +#ifndef BSP_LINUX_BOARD_RPISDCARDMANAGER_H_ +#define BSP_LINUX_BOARD_RPISDCARDMANAGER_H_ +#include + +class RPiSdCardManager: public SdCardMountedIF { +public: + RPiSdCardManager(std::string prefix); + const std::string& getCurrentMountPrefix() const override; + bool isSdCardMounted(sd::SdCard sdCard) override; + sd::SdCard getPreferredSdCard() const override; + void setActiveSdCard(sd::SdCard sdCard) override; + sd::SdCard getActiveSdCard() const override; +}; + + + +#endif /* BSP_LINUX_BOARD_RPISDCARDMANAGER_H_ */