mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-19 04:24:05 -04:00
21 lines
641 B
C++
21 lines
641 B
C++
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#include <BlockDeviceFactory.hpp>
|
|
#include <disk_eeprom.hpp>
|
|
#include <disk_emmc.hpp>
|
|
|
|
#include <board/rt1051/bsp/eeprom/M24256.hpp>
|
|
|
|
using platform::rt1051::BlockDeviceFactory;
|
|
|
|
std::unique_ptr<purefs::blkdev::disk> BlockDeviceFactory::makeDefaultBlockDevice()
|
|
{
|
|
return std::make_unique<purefs::blkdev::disk_emmc>();
|
|
}
|
|
|
|
std::unique_ptr<purefs::blkdev::disk> BlockDeviceFactory::makeDefaultNvmDevice()
|
|
{
|
|
return std::make_unique<purefs::blkdev::disk_eeprom>(bsp::eeprom::M24256_MEM_DEVICE_ADDR);
|
|
}
|