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.
BufferedBlockDevice_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 "BufferedBlockDevice.h" 00019 #include "mbed_assert.h" 00020 #include "mbed_critical.h" 00021 #include <algorithm> 00022 #include <string.h> 00023 00024 static inline uint32_t align_down(bd_size_t val, bd_size_t size) 00025 { 00026 return 0; 00027 } 00028 00029 BufferedBlockDevice::BufferedBlockDevice(BlockDevice *bd) 00030 { 00031 } 00032 00033 BufferedBlockDevice::~BufferedBlockDevice() 00034 { 00035 } 00036 00037 int BufferedBlockDevice::init() 00038 { 00039 return 0; 00040 } 00041 00042 int BufferedBlockDevice::deinit() 00043 { 00044 return 0; 00045 } 00046 00047 int BufferedBlockDevice::flush() 00048 { 00049 return 0; 00050 } 00051 00052 int BufferedBlockDevice::sync() 00053 { 00054 return 0; 00055 } 00056 00057 int BufferedBlockDevice::read(void *b, bd_addr_t addr, bd_size_t size) 00058 { 00059 return 0; 00060 } 00061 00062 int BufferedBlockDevice::program(const void *b, bd_addr_t addr, bd_size_t size) 00063 { 00064 return 0; 00065 } 00066 00067 int BufferedBlockDevice::erase(bd_addr_t addr, bd_size_t size) 00068 { 00069 return 0; 00070 } 00071 00072 int BufferedBlockDevice::trim(bd_addr_t addr, bd_size_t size) 00073 { 00074 return 0; 00075 } 00076 00077 bd_size_t BufferedBlockDevice::get_read_size() const 00078 { 00079 return 1; 00080 } 00081 00082 bd_size_t BufferedBlockDevice::get_program_size() const 00083 { 00084 return 1; 00085 } 00086 00087 bd_size_t BufferedBlockDevice::get_erase_size() const 00088 { 00089 return 0; 00090 } 00091 00092 bd_size_t BufferedBlockDevice::get_erase_size(bd_addr_t addr) const 00093 { 00094 return 0; 00095 } 00096 00097 int BufferedBlockDevice::get_erase_value() const 00098 { 00099 return 0; 00100 } 00101 00102 bd_size_t BufferedBlockDevice::size() const 00103 { 00104 return 0; 00105 }
Generated on Tue Aug 9 2022 00:37:03 by
1.7.2