Martin Kojtal
d65e614a14
Merge pull request #7648 from davidsaada/david_init_ref_count
...
Add init reference count to all block devices
2018-08-01 15:06:57 +02:00
David Saada
235f175cba
Add init reference count to all block devices
2018-07-31 19:41:55 +03:00
David Saada
a224ca764a
Skip a few tests if not enough memory can be allocated for them.
2018-07-16 17:21:21 +03:00
Martin Kojtal
fc2f7fff95
Merge pull request #6757 from davidsaada/david_buffered_bd
...
Implement BufferedBlockDevice
2018-05-22 14:25:51 +02:00
David Saada
df7fb1667d
Implement BufferedBlockDevice
...
Block device allowing smaller read and program sizes for the underlying BD,
using a cache.
2018-05-14 19:25:41 +03:00
David Saada
c3e39996b1
Implement FlashSimBlockDevice - flash simulated block device adaptor
2018-05-08 16:15:25 +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
fd9e4c12fd
Added test to catch multiple nested MBRs
2018-02-12 18:57:41 -06:00
Christopher Haster
dcd0e6b82e
Workaround for insufficient heap on IAR+MTB_xDOT_GT
...
We currently don't have a mechanism for selecting tests based on the
available ram/heap, so the best solution right now is to disable these
tests specifically for this target.
2018-02-01 10:51:16 -06:00
Christopher Haster
d61073783c
bd: Added ProfilingBlockDevice for measuring higher-level applications
2017-07-31 10:19:39 -05:00
Sam Grove
f438251aa3
Merge pull request #3936 from geky/bd-mbr
...
bd: Add MBR block device for standard storage partitioning
2017-05-30 13:04:50 -05:00
Christopher Haster
3f92a15960
FAT: Added support for multiple active filesystems
...
- Increased _VOLUMES to 4
- Fixed a few issues in the FATFileSystem's _fsid
- Added tests for multiple partitions of fatfs
2017-05-24 11:18:47 -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
Jimmy Brisson
a56f874510
Reduce size of heap block device test
...
to fit into smaller targets
2017-05-22 10:47:36 -05:00
Bartek Szatkowski
4f3aabc029
Reshuffled memory usage for heap block device tests on small targets
...
Revert removal of printfs. Make the block device size smaller.
2017-05-16 10:45:18 +01:00
Bartek Szatkowski
6a0fcd3c58
Reduce test overhead in preparation for CMSIS 5
...
Reduce RAM consumption so all tests can still be built when using
CMSIS/RTX5. Also reduce clutter by removing the per target stack size
defines in the tests.
2017-05-14 19:25:19 -05:00
Christopher Haster
fd80dcc51b
Filesystem: Include '.' and '..' in directory iteration
...
The standard is intentionally vague on if filesystems must
have '.' and '..' entries, allowing filesystems to omit this
concept completely:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/readdir.html
However, the '.' and '..' entries are common on FAT filesystems
and in most other filesystems.
This enables '.' and '..' entries in the FAT filesystem.
2017-04-13 14:30:57 -05:00
Christopher Haster
704c94d52e
bd: Remove constraints on device for block device tests
2017-03-10 11:24:28 -06:00
Christopher Haster
09b3afb598
bd: Added randomness to block device test and more debug friendly output
2017-03-10 11:24:28 -06:00
Christopher Haster
87c0b82230
Updated includes of renamed platform header files
2017-03-01 16:45:55 -06:00
Christopher Haster
129bae4f7d
Filesystem: Added test for basic filesystem operation on cpp api
2017-02-24 15:28:43 -06:00
Simon Hughes
794c6f8d04
STORAGE: move fat_file_system test into external repository as this is an SDCard dependent test.
2017-02-24 10:59:46 +00:00
Simon Hughes
9a1966fadb
STORAGE: fixes for BlockDevice test cases.
2017-02-23 16:39:51 +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
Simon Hughes
b8e31c8156
Removal of SD card driver (SDBlockDevice module) and related test cases (moved into https://github.com/ARMmbed/sd-driver repository).
2017-02-23 16:39:36 +00:00
Simon Hughes
3e35d4bb81
STORAGE: added test case to write/check n x 25kB files storing ~250kB data.
2017-02-23 16:39:32 +00:00
Simon Hughes
c0a53a907f
STORAGE: added opendir(), readdir(), closedir() test.
2017-02-23 16:39:30 +00:00
Simon Hughes
f84f2f2d20
STORAGE: missing retarget.h in fat_file_system/main.cpp for missing S_IRWXU, S_IRWXG, S_IRWXO symbols.
2017-02-23 16:39:28 +00:00
Christopher Haster
cbcc445f54
Added d_type member of dirent struct to readdir
2017-02-23 16:39:25 +00:00
Simon Hughes
0b0fc7d7d1
STORAGE: fix for heap_block_device and util_block_device test binaries being too large for IAR KL25Z with MBED_STACK_STATS_ENABLED build.
2017-02-23 16:39:23 +00:00
Simon Hughes
2b96c74f84
STORAGE: Pull Request 3704 requested minor changes including:
...
- renaming FATFileSystemSetErrno() fat_file_system_set_errno.
- changing FATFileSystem::format() to be mount fs internally in function, rather than expecting fs to be mounted.
- requested const char *filename change.
2017-02-23 16:39:21 +00:00
Simon Hughes
fdadb8cc66
STORAGE: moved toolchain_support.h into platform/retarget.h
2017-02-23 16:39:18 +00:00
Simon Hughes
c877fb6287
STORAGE: compiler warning fixes.
2017-02-23 16:39:13 +00:00
Simon Hughes
860d7f03f2
STORAGE: fixing error handling for fopen() and other upper edge filesystem API methods.
...
- integrated work with new block api.
- Conflicts: features/filesystem/fat/FATFileSystem.cpp
2017-02-23 16:39:11 +00:00
Simon Hughes
0b7a2ca030
STORAGE: fixes for merging in format test with new block device implementation of format.
2017-02-23 16:38:22 +00:00
Simon Hughes
01baa72ab9
STORAGE: change FATFileSystem::format() to include allocation_unit argument, to facilitate fixing of inconsistent file systems.
...
Conflicts:
features/filesystem/fat/FATFileSystem.cpp
features/filesystem/fat/FATFileSystem.h
2017-02-23 16:38:19 +00:00
Simon Hughes
26141f0f5d
STORAGE: test case fixes to support ARMCC and IAR toolchains.
2017-02-23 16:38:17 +00:00
Simon Hughes
4f5e94c746
STORAGE: test case fixes to support ARMCC and IAR toolchains.
...
Conflicts:
features/TESTS/filesystem/fopen/fopen.cpp
2017-02-23 16:38:15 +00:00
Christopher Haster
ad176c5c6a
Updated filesystem tests to use FATFileSystem + SDBlockDevice
2017-02-23 16:37:18 +00:00
Christopher Haster
0176450c5a
bd: Adopted the block storage api in the FATFileSystem
2017-02-23 16:37:13 +00:00
Christopher Haster
ba5e1427fc
bd: Added utility block device classes
...
- ChainingBlockDevice
- SlicingBlockDevice
2017-02-23 16:36:27 +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
Simon D Hughes
67165e292c
ARMCC temporary fixes for undefined errno symbols.
2017-02-23 16:36:18 +00:00
Simon D Hughes
cffea7e3c4
Remove unnecesary symbol definitions.
2017-02-23 16:36:08 +00:00
Simon Hughes
0c87537f10
Added errno codes to retarget, mkdir() and ftell() tests.
2017-02-23 16:36:03 +00:00
Simon Hughes
c8fecb6c88
STORAGE: tests added for errno, ferror() and clearerr().
2017-02-23 16:30:55 +00:00
Simon Hughes
912044b829
FILESYSTEM: fopen() and basic test improvements.
2017-02-23 16:30:50 +00:00
Simon Hughes
7514476e2f
FILESYSTEM: Fix to only build SDFileSystem if DEVICE_SPI defined, to build correctly for targets that dont have SPI interfaces.
2017-02-23 16:30:30 +00:00
Simon Hughes
66446275fa
FILESYSTEM: fix KL25Z CI build failure but not instantiaing SDFileSystem.
2017-02-23 16:30:27 +00:00
Simon Hughes
1b562cc2fe
Fix fopen test build error due to #include <sys/stat.h>, which is not present.
2017-02-23 16:30:25 +00:00