Patrick Venture | 22e3875 | 2018-11-21 08:52:49 -0800 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright 2018 Google Inc. |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
Patrick Venture | e772842 | 2018-11-14 20:16:33 -0800 | [diff] [blame] | 17 | #include "lpc_nuvoton.hpp" |
| 18 | |
| 19 | #include "lpc_interface.hpp" |
| 20 | |
| 21 | #include <cstdint> |
| 22 | #include <memory> |
| 23 | #include <utility> |
| 24 | |
| 25 | namespace blobs |
| 26 | { |
| 27 | |
| 28 | std::unique_ptr<LpcMapperInterface> LpcMapperNuvoton::createNuvotonMapper() |
| 29 | { |
| 30 | /* NOTE: Considered making one factory for both types. */ |
| 31 | return std::make_unique<LpcMapperNuvoton>(); |
| 32 | } |
| 33 | |
| 34 | std::pair<std::uint32_t, std::uint32_t> |
| 35 | LpcMapperNuvoton::mapWindow(std::uint32_t address, std::uint32_t length) |
| 36 | { |
| 37 | return std::make_pair(0, 0); |
| 38 | } |
| 39 | |
| 40 | } // namespace blobs |