mbed library sources. Supersedes mbed-src.
Dependents: Hobbyking_Cheetah_Compact Hobbyking_Cheetah_Compact_DRV8323_14bit Hobbyking_Cheetah_Compact_DRV8323_V51_201907 HKC_MiniCheetah ... more
Fork of mbed-dev by
hal/mbed_flash_api.c@181:36facd806e4a, 2018-07-30 (annotated)
- Committer:
- benkatz
- Date:
- Mon Jul 30 20:31:44 2018 +0000
- Revision:
- 181:36facd806e4a
- Parent:
- 169:e3b6fe271b81
going on the robot. fixed a dumb bug in float_to_uint
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Kojto | 169:e3b6fe271b81 | 1 | /* mbed Microcontroller Library |
Kojto | 169:e3b6fe271b81 | 2 | * Copyright (c) 2017 ARM Limited |
Kojto | 169:e3b6fe271b81 | 3 | * |
Kojto | 169:e3b6fe271b81 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
Kojto | 169:e3b6fe271b81 | 5 | * you may not use this file except in compliance with the License. |
Kojto | 169:e3b6fe271b81 | 6 | * You may obtain a copy of the License at |
Kojto | 169:e3b6fe271b81 | 7 | * |
Kojto | 169:e3b6fe271b81 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
Kojto | 169:e3b6fe271b81 | 9 | * |
Kojto | 169:e3b6fe271b81 | 10 | * Unless required by applicable law or agreed to in writing, software |
Kojto | 169:e3b6fe271b81 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
Kojto | 169:e3b6fe271b81 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
Kojto | 169:e3b6fe271b81 | 13 | * See the License for the specific language governing permissions and |
Kojto | 169:e3b6fe271b81 | 14 | * limitations under the License. |
Kojto | 169:e3b6fe271b81 | 15 | */ |
Kojto | 169:e3b6fe271b81 | 16 | |
Kojto | 169:e3b6fe271b81 | 17 | #include "hal/flash_api.h" |
Kojto | 169:e3b6fe271b81 | 18 | |
Kojto | 169:e3b6fe271b81 | 19 | #if DEVICE_FLASH |
Kojto | 169:e3b6fe271b81 | 20 | |
Kojto | 169:e3b6fe271b81 | 21 | #include "platform/mbed_toolchain.h" |
Kojto | 169:e3b6fe271b81 | 22 | #include <string.h> |
Kojto | 169:e3b6fe271b81 | 23 | |
Kojto | 169:e3b6fe271b81 | 24 | MBED_WEAK int32_t flash_read(flash_t *obj, uint32_t address, uint8_t *data, uint32_t size) |
Kojto | 169:e3b6fe271b81 | 25 | { |
Kojto | 169:e3b6fe271b81 | 26 | memcpy(data, (const void *)address, size); |
Kojto | 169:e3b6fe271b81 | 27 | return 0; |
Kojto | 169:e3b6fe271b81 | 28 | } |
Kojto | 169:e3b6fe271b81 | 29 | |
Kojto | 169:e3b6fe271b81 | 30 | #endif |