Commit Graph

12 Commits (928f90a7d56dde31b219dc51b7e8c35df76d210f)

Author SHA1 Message Date
David Saada 6f6ea14720 Add some logic related to initialization to various block devices
- Add an initialization flag on which BD actions depend (fail if uninitialized).
- Fix behavior of init reference count if first initialization fails
2018-08-21 16:52:32 +03:00
Martin Kojtal ff67a96e17
Revert "Move BlockDevice classes inside mbed namespace" 2018-08-10 14:49:51 +01:00
deepikabhavnani 8f2f6f43c9 Add header file string.h required for memcpy/memset 2018-08-07 09:15:44 -05:00
deepikabhavnani e36cd00e93 Move BlockDevice classes inside mbed namespace. 2018-08-03 10:22:51 -05:00
David Saada 235f175cba Add init reference count to all block devices 2018-07-31 19:41:55 +03:00
David Saada a6048005d7 Add overloaded get_erase_size API with address parameter to all block devices 2018-03-23 00:34:45 +02:00
Christopher Haster f2c93c7724 bd: Add asserts on initialization in HeapBlockDevice 2017-06-21 13:51:57 -05:00
Christopher Haster 31e0875cd1 bd: Fix missing const attributes on functions 2017-03-01 16:11:40 -06:00
Christopher Haster 2cf67734c4 Filesystem: Remove invalid write to unallocated memory in heap block device 2017-02-23 20:41:38 -06:00
Christopher Haster ea5ac4bb4d Storage: Last minute changes to the block device api
- Remove write set of functions
  - Caused confusion with small benefit
  - Trivial to add later
- Remove unused error codes
  - Initial expirementation indicates most of these may not be useful
  - Trivial to add later
- Removed bd_error_t
  - Carries to additional type information, int already carries
    sufficient connotation
  - Trivial to add later

per @c1728p9, @sg-
2017-02-23 16:39:49 +00:00
Simon Hughes 840c77793b STORAGE: Pull request 3762 review feedback changes.
- Fixing code formatting errors with astyle tool.
- Replaced use of TOOLCHAIN_xxx macros with compiler emitted macros.
- Added const to BlockDevice::get_xxx_size() member functions.
- Added documentation for FAT filesystem thread support.
- Added documentation for fat_filesystem_set_errno().
- Added documentation clarifying the reasons for errno/stat symbol definitions in retarget.h.
- Removed FAT filesystem from mbed 2 testing.
- Fixed FATMisc.h Copyright (c) 2016 year to 2017 as its a new file.
- Removed #ifndef NDEBUG from HeapBlockDevice.cpp.
- Removed unnecessary todo comment in retarget.cpp.
2017-02-23 16:39:42 +00:00
Christopher Haster 4633d3129d bd: Adopted the block device api in the HeapBlockDevice
Port of MemBlockDevice from mbed 2
2017-02-23 16:36:22 +00:00