blob: 0bb25af08648fb0ffb3462feb433b1a9f06efc5c [file] [log] [blame]
#pragma once
#include "internal/sys.hpp"
#include "lpc_interface.hpp"
#include <memory>
namespace blobs
{
class LpcMapperNuvoton : public LpcMapperInterface
{
public:
static std::unique_ptr<LpcMapperInterface> createNuvotonMapper();
/**
* Create an LpcMapper for Nuvoton.
*
* @param[in] a sys call interface pointer.
* @todo Needs reserved memory region's physical address and size.
*/
explicit LpcMapperNuvoton(
const flash::internal::Sys* sys = &flash::internal::sys_impl) :
sys(sys){};
std::pair<std::uint32_t, std::uint32_t>
mapWindow(std::uint32_t address, std::uint32_t length) override;
private:
const flash::internal::Sys* sys;
};
} // namespace blobs