Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
ChainingBlockDevice_stub.cpp
00001 /* 00002 * Copyright (c) , Arm Limited and affiliates. 00003 * SPDX-License-Identifier: Apache-2.0 00004 * 00005 * Licensed under the Apache License, Version 2.0 (the "License"); 00006 * you may not use this file except in compliance with the License. 00007 * You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 */ 00017 00018 #include "ChainingBlockDevice.h" 00019 #include "mbed_critical.h" 00020 00021 00022 ChainingBlockDevice::ChainingBlockDevice(BlockDevice **bds, size_t bd_count) 00023 { 00024 } 00025 00026 static bool is_aligned(uint64_t x, uint64_t alignment) 00027 { 00028 return true; 00029 } 00030 00031 int ChainingBlockDevice::init() 00032 { 00033 return 0; 00034 } 00035 00036 int ChainingBlockDevice::deinit() 00037 { 00038 return 0; 00039 } 00040 00041 int ChainingBlockDevice::sync() 00042 { 00043 return 0; 00044 } 00045 00046 int ChainingBlockDevice::read(void *b, bd_addr_t addr, bd_size_t size) 00047 { 00048 return 0; 00049 } 00050 00051 int ChainingBlockDevice::program(const void *b, bd_addr_t addr, bd_size_t size) 00052 { 00053 return 0; 00054 } 00055 00056 int ChainingBlockDevice::erase(bd_addr_t addr, bd_size_t size) 00057 { 00058 return 0; 00059 } 00060 00061 bd_size_t ChainingBlockDevice::get_read_size() const 00062 { 00063 return 0; 00064 } 00065 00066 bd_size_t ChainingBlockDevice::get_program_size() const 00067 { 00068 return 0; 00069 } 00070 00071 bd_size_t ChainingBlockDevice::get_erase_size() const 00072 { 00073 return 0; 00074 } 00075 00076 bd_size_t ChainingBlockDevice::get_erase_size(bd_addr_t addr) const 00077 { 00078 return 0; 00079 } 00080 00081 int ChainingBlockDevice::get_erase_value() const 00082 { 00083 return 0; 00084 } 00085 00086 bd_size_t ChainingBlockDevice::size() const 00087 { 00088 return 0; 00089 }
Generated on Tue Aug 9 2022 00:37:04 by
1.7.2