1

Committer:
valeyev
Date:
Tue Mar 13 07:17:50 2018 +0000
Revision:
0:e056ac8fecf8
looking for...

Who changed what in which revision?

UserRevisionLine numberNew contents of line
valeyev 0:e056ac8fecf8 1 /* mbed Microcontroller Library
valeyev 0:e056ac8fecf8 2 * Copyright (c) 2017 ARM Limited
valeyev 0:e056ac8fecf8 3 *
valeyev 0:e056ac8fecf8 4 * Licensed under the Apache License, Version 2.0 (the "License");
valeyev 0:e056ac8fecf8 5 * you may not use this file except in compliance with the License.
valeyev 0:e056ac8fecf8 6 * You may obtain a copy of the License at
valeyev 0:e056ac8fecf8 7 *
valeyev 0:e056ac8fecf8 8 * http://www.apache.org/licenses/LICENSE-2.0
valeyev 0:e056ac8fecf8 9 *
valeyev 0:e056ac8fecf8 10 * Unless required by applicable law or agreed to in writing, software
valeyev 0:e056ac8fecf8 11 * distributed under the License is distributed on an "AS IS" BASIS,
valeyev 0:e056ac8fecf8 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
valeyev 0:e056ac8fecf8 13 * See the License for the specific language governing permissions and
valeyev 0:e056ac8fecf8 14 * limitations under the License.
valeyev 0:e056ac8fecf8 15 */
valeyev 0:e056ac8fecf8 16
valeyev 0:e056ac8fecf8 17 #include "hal/flash_api.h"
valeyev 0:e056ac8fecf8 18
valeyev 0:e056ac8fecf8 19 #if DEVICE_FLASH
valeyev 0:e056ac8fecf8 20
valeyev 0:e056ac8fecf8 21 #include "platform/mbed_toolchain.h"
valeyev 0:e056ac8fecf8 22 #include <string.h>
valeyev 0:e056ac8fecf8 23
valeyev 0:e056ac8fecf8 24 MBED_WEAK int32_t flash_read(flash_t *obj, uint32_t address, uint8_t *data, uint32_t size)
valeyev 0:e056ac8fecf8 25 {
valeyev 0:e056ac8fecf8 26 memcpy(data, (const void *)address, size);
valeyev 0:e056ac8fecf8 27 return 0;
valeyev 0:e056ac8fecf8 28 }
valeyev 0:e056ac8fecf8 29
valeyev 0:e056ac8fecf8 30 #endif