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.
ObservingBlockDevice_stub.cpp
00001 /* 00002 * Copyright (c) 2017, 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 "ObservingBlockDevice.h" 00019 #include "ReadOnlyBlockDevice.h" 00020 #include "mbed.h" 00021 00022 00023 ObservingBlockDevice::ObservingBlockDevice(BlockDevice *bd) 00024 { 00025 // Does nothing 00026 } 00027 00028 ObservingBlockDevice::~ObservingBlockDevice() 00029 { 00030 // Does nothing 00031 } 00032 00033 void ObservingBlockDevice::attach(Callback<void(BlockDevice *)> cb) 00034 { 00035 } 00036 00037 int ObservingBlockDevice::init() 00038 { 00039 return 0; 00040 } 00041 00042 int ObservingBlockDevice::deinit() 00043 { 00044 return 0; 00045 } 00046 00047 int ObservingBlockDevice::sync() 00048 { 00049 return 0; 00050 } 00051 00052 int ObservingBlockDevice::read(void *buffer, bd_addr_t addr, bd_size_t size) 00053 { 00054 return 0; 00055 } 00056 00057 int ObservingBlockDevice::program(const void *buffer, bd_addr_t addr, bd_size_t size) 00058 { 00059 return 0; 00060 } 00061 00062 int ObservingBlockDevice::erase(bd_addr_t addr, bd_size_t size) 00063 { 00064 return 0; 00065 } 00066 00067 bd_size_t ObservingBlockDevice::get_read_size() const 00068 { 00069 return 0; 00070 } 00071 00072 bd_size_t ObservingBlockDevice::get_program_size() const 00073 { 00074 return 0; 00075 } 00076 00077 bd_size_t ObservingBlockDevice::get_erase_size() const 00078 { 00079 return 0; 00080 } 00081 00082 bd_size_t ObservingBlockDevice::get_erase_size(bd_addr_t addr) const 00083 { 00084 return 0; 00085 } 00086 00087 int ObservingBlockDevice::get_erase_value() const 00088 { 00089 return 0; 00090 } 00091 00092 bd_size_t ObservingBlockDevice::size() const 00093 { 00094 return 0; 00095 }
Generated on Tue Aug 9 2022 00:37:17 by
1.7.2