Commit Graph

37 Commits (bc4dea2b1cb1fecff55a8b4f528b0dc2cb4e7a56)

Author SHA1 Message Date
Christopher Haster db965c1652
mbr: Added note about limitations 2018-02-14 10:31:14 -06:00
Christopher Haster 5b09daf0f9 mbr: Added checks for extended partitions 2018-02-13 14:03:02 -06:00
Cruz Monrreal 5cd30b965c
Merge pull request #5925 from geky/bd-erase-value
bd: Add get_erase_value function to the block device API
2018-01-31 12:13:54 -06:00
Amanda Butler e6949db802 bd: Copy edit BlockDevices
Copy edit SlicingBlockDevice.h
Copy edit ReadOnlyBlockDevice.h
Copy edit ProfilingBlockDevice.h
Copy edit ObservingBlockDevice.h
Copy edit MBRBlockDevice.h
Copy edit ExhaustibleBlockDevice.h
Copy edit ChainingBlockDevice.h
Copy edit BlockDevice.h

Copy edit files for active voice and consistent tense.
2018-01-29 18:45:36 -06:00
Christopher Haster 88aad81345 bd: Adopted the get_erase_value function in the util block devices 2018-01-29 15:33:02 -06:00
Christopher Haster 7707c8b8b8 bd: Added get_erase_value function to the block device API
Default implementation returns -1 and is backwards compatible
2018-01-29 15:31:07 -06:00
Christopher Haster a4f8af9d5b bd: Adopted the sync function in the util block devices 2018-01-24 18:07:35 -06:00
Christopher Haster 3f5d618c89 bd: Add sync function to the block device API
/** Ensure data on storage is in sync with the driver
 *
 *  @return         0 on success or a negative error code on failure
 */
virtual int sync()
2018-01-24 17:58:20 -06:00
Amanda Butler 634fcf0cc4 Copy edit littlefs
ExhaustibleBlockDevice.h
- Fix typos for consistent spelling.
ObservingBlockDevice.h
- Fix typos for consistent spelling.
ReadOnlyBlockDevice.h
- Fix typos for consistent spelling.
README.md
- Fix typos, mostly for branding.
DESIGN.md
- Make minor changes for consistent spelling and precise language.
SPEC.md
- Make minor changes for consistent spelling and precise language.
README.md
- Make minor changes for consistent spelling and precise language.
2017-11-29 16:35:06 -06:00
Christopher Haster 4adf75c9aa littlefs: Moved test block devices into general block devices 2017-11-22 16:02:54 -06:00
Jimmy Brisson 9dfbf228ec
Merge pull request #5395 from kegilbert/resolve-doxy-warnings-filesystem
Resolve doxygen warning in filesystems docs
2017-11-01 14:07:17 -05:00
Jimmy Brisson 7b2e9b1ad1
Merge pull request #5385 from kegilbert/slicingbd-ctor-rework
SlicingBD: replace second constructor with default parameter
2017-10-30 10:12:19 -05:00
Jimmy Brisson 27533ff16e
Merge pull request #5375 from kegilbert/chainingbd-address-iter-fix
ChainingBlockDevice: changing blocks address fix
2017-10-30 10:09:51 -05:00
Kevin Gilbert b9d2dbafcf Resolve doxygen warning in filesystems 2017-10-27 18:18:04 -05:00
Kevin Gilbert 84e3110b6f Replace second SlicingBD ctor with default arg
Replace second ctor in SlicingBlockDevice with default parameter for the end address in first ctor
2017-10-26 11:49:35 -05:00
Kevin Gilbert a746f95a8b Change address subtraction when moving through block devices to be the size of the entire block device not the block size 2017-10-24 18:31:46 -05:00
Kevin Gilbert 1cfaa4a4e6 Add additional information on the block parameter in the HeapBlockDevice ctor 2017-10-17 19:03:39 -05:00
Kevin Gilbert 86fa6771bd Add erase to example
Use defined blocksize constant
2017-10-10 17:19:24 -05:00
Kevin Gilbert 37b3b40e2a Update HeapBlockDevice example in header file to compile 2017-10-10 16:19:13 -05:00
Christopher Haster 6e1b9e153c bd: Added trim function to let filesystems give erase hints to FTLs 2017-09-05 11:16:15 -05:00
Christopher Haster e798c5359e bd: Changed BlockDevice erase to default as no-op
This should help with confusion around devices that don't have
a physical erase operation, such as SD cards and spinny disks.
2017-09-05 11:16:15 -05:00
Christopher Haster d61073783c bd: Added ProfilingBlockDevice for measuring higher-level applications 2017-07-31 10:19:39 -05:00
Christopher Haster f2c93c7724 bd: Add asserts on initialization in HeapBlockDevice 2017-06-21 13:51:57 -05:00
Christopher Haster adc3d75936 bd: Fix missing init in MBRBlockDevice 2017-06-21 13:33:40 -05:00
Deepika 6ee4c7e219 Fix doxygen warnings in 'features/filesystem' 2017-06-08 15:48:21 -05:00
Sam Grove 02bf926ffb Proper fix for 1fa30b7403
Replace #define with typedef
2017-06-04 11:26:21 -05:00
Sam Grove 1fa30b7403 Resolve conflict in builtin type names
In class MBRBlockDevice the tole32 function had used union member
names u32 and u8. The introduction of REALTEK_RTL8195AM cauesd a
conflict with type names in basic_types given they're aliased as
macros to uint32_t and uint8_t respectively.
2017-06-03 18:12:28 -05:00
Christopher Haster 590a40d9bf bd: Added MBRBlockDevice for handling a master boot record on a block device 2017-05-23 11:55: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
Simon Hughes 9a1966fadb STORAGE: fixes for BlockDevice test cases. 2017-02-23 16:39:51 +00: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 ba5e1427fc bd: Added utility block device classes
- ChainingBlockDevice
- SlicingBlockDevice
2017-02-23 16:36:27 +00:00
Christopher Haster 03a332c5eb bd: Adopted the block device api in the SDBlockDevice 2017-02-23 16:36:25 +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
Christopher Haster 99698379ef bd: Added prototype block device api 2017-02-23 16:36:20 +00:00