Christopher Haster
e5197ceaca
Filesystem: Initial integration with the FATFileSystem
2017-02-24 11:53:17 -06:00
Christopher Haster
ee3e920ed1
Filesystem: Moved toolchain-specific types into retarget.h
2017-02-24 11:42:32 -06:00
Christopher Haster
a5245e32fe
Filesystem: Created prototypical filesystem class
...
Intention is to make filesystem api and network stack api consistent
as current designs diverge greatly. Attempted to change as little as
possible outside of api structure.
2017-02-24 11:41:34 -06:00
Sam Grove
9844a390d9
Merge pull request #3762 from simonqhughes/ms_20170213_fs_integration
...
STORAGE: Merging feature-storage branch commits to master
2017-02-24 11:37:42 -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
Christopher Haster
2cf67734c4
Filesystem: Remove invalid write to unallocated memory in heap block device
2017-02-23 20:41:38 -06:00
Sam Grove
371aaa53c3
Merge pull request #3789 from yogpan01/master
...
Separating CoAP library from mbed-client-c
2017-02-23 15:44:58 -06:00
Sam Grove
e9880c72dc
Merge pull request #3830 from ARMmbed/dummy_definitions
...
Add NS_DUMMY_DEFINITIONS_OK
2017-02-23 15:18:33 -06:00
Christopher Haster
2d41da2c63
Storage/lwip: Renamed lwip/errno.h -> lwip/lwip_errno.h to avoid conflicts
2017-02-23 14:23:39 -06:00
Simon Hughes
410c2f8dc0
STORAGE: rebased with master and fixed FATFileSystem.cpp merge conflicts.
2017-02-23 16:50:34 +00: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
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
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
Simon D Hughes
67165e292c
ARMCC temporary fixes for undefined errno symbols.
2017-02-23 16:36:18 +00:00
Simon D Hughes
aefb03ccd6
ARMCC temporary fixes for undefined errno symbols.
2017-02-23 16:36:16 +00:00
Simon D Hughes
29f8d838d0
STORAGE: updated filesystem readme.md.
2017-02-23 16:36:10 +00:00
Simon D Hughes
cffea7e3c4
Remove unnecesary symbol definitions.
2017-02-23 16:36:08 +00:00
Simon Hughes
8378af044f
Updated filesystem README.md.
2017-02-23 16:36:06 +00:00
Simon Hughes
0c87537f10
Added errno codes to retarget, mkdir() and ftell() tests.
2017-02-23 16:36:03 +00:00
Christopher Haster
39a1eddb93
Filesystem: Added EEXIST reporting to mkdir through errno
2017-02-23 16:34:56 +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
Christopher Haster
9299a88e8f
Filesystem: Add support for stat
...
Provided through FileSystemLike::stat
2017-02-23 16:30:42 +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
Simon Hughes
5c7fdc13c7
FILESYSTEM: renamed features/TESTS/fs-fat features/TESTS/filesystem.
2017-02-23 16:30:23 +00:00
Simon Hughes
4acf33f436
FILESYSTEM: moved FAT filesystem implemenation to features/filesystem subdir, and fs-fat tests to features/TESTS.
2017-02-23 16:30:21 +00:00
Simon Hughes
a35919afbe
minor edits to fopen test.
2017-02-23 16:30:16 +00:00
Simon Hughes
df099b8567
First version of fopen test added.
2017-02-23 16:30:14 +00:00
Simon Hughes
a024a78f20
STORAGE: updated basic test case and README for moving work onto feature-storage branch.
2017-02-23 16:30:12 +00:00
Simon Hughes
e84814885d
Ported glibc POSIX file API test test_rdwr to greentea.
2017-02-23 16:30:10 +00:00
Simon Hughes
8206663917
Updated FAT32 readme file to switch to correct branch.
2017-02-23 16:30:07 +00:00
Simon Hughes
3fd14f2f0b
Re-instating the FAT32/SDCard support with POSIX File API for mbed-client team.
2017-02-23 16:30:05 +00:00
Sam Grove
3642c3b226
Merge pull request #3736 from karsev/thread_config_update
...
Thread config update
2017-02-23 10:18:48 -06:00
Sam Grove
cf64f09230
Merge pull request #3721 from mikaleppanen/lwip_2_0_1_stable
...
Lwip 2.0.1 stable
2017-02-23 10:16:57 -06:00
Sam Grove
30ddefc968
Merge pull request #3654 from geky/header-rename
...
Renamed files in platform to match source names
2017-02-23 10:16:35 -06:00
Sam Grove
078995a021
Merge pull request #3482 from Neuromancer2701/patch-1
...
Update lwipopts.h
2017-02-23 10:15:24 -06:00
Seppo Takalo
9137ba8f8a
Add NS_DUMMY_DEFINITIONS_OK
...
Add definition from master repository.
This fixes compilation of coap_service.c on non-secure platforms.
2017-02-23 14:44:59 +02:00
Yogesh Pande
f51329b858
Reverting fix for IOTCLT-1439 because of regression
2017-02-23 12:29:49 +02:00
Yogesh Pande
9f8271e495
Taking error fix for IOTCLT-1439
2017-02-23 08:23:39 +02:00
Yogesh Pande
d3b48a8e2d
Merge remote-tracking branch 'upstream/master'
2017-02-23 08:15:51 +02:00
Christopher Haster
aff49d8d1e
Renamed files in platform to match source names
...
critical.h -> mbed_critical.h
sleep.h -> mbed_sleep.h
toolchain.h -> mbed_toolchain.h
rtc_time.h -> mbed_rtc_time.h
semihost_api.h -> mbed_semihost_api.h
wait_api.h -> mbed_wait_api.h
2017-02-22 18:17:54 -06:00
Kari Severinkangas
52ca190474
timestamp bit moved to correct place.
2017-02-22 14:03:59 +02:00
Kari Severinkangas
81452424d4
Security related traces removed. Network name copy fixed.
2017-02-22 13:59:31 +02:00
Kari Severinkangas
407d8d3962
yotta defines removed. minor edits on thread conf.
2017-02-22 13:59:31 +02:00
Kari Severinkangas
ba5cd8c6d6
IOTTHD-1028: thread config update
2017-02-22 13:59:31 +02:00
Kari Severinkangas
a26a80d686
IOTTHD-1028: thread config update
2017-02-22 13:59:31 +02:00
Sam Grove
6f6e5c478f
Merge pull request #3784 from geky/nsapi-sigio
...
nsapi: Rename attach -> sigio to decrease confusion on its behaviour
2017-02-21 10:56:40 -06:00
Sam Grove
cfd517a3a0
Merge pull request #3783 from geky/cb-deprecate-attach
...
Callback: Deprecate attach member function in favor of simple assignment
2017-02-21 10:55:44 -06:00
Sam Grove
094fab43e7
Merge pull request #3760 from adustm/usb_txsize_fix
...
Fix #3756 for 64 bytes transfers
2017-02-21 10:47:44 -06:00
Alessandro Angelino
ad436c4c92
uVisor: Update to version 0.27.0
...
* Updated docs
* Re-factored vMPU drivers
* Non-backwards-compatible API change: uvisor_ctx is now called
__uvisor_ctx and requires the user to explicitly cast it to their own
private context structure.
This only affects applications with uVisor enabled.
* Use "public box" instead of main box for box 0.
2017-02-21 13:24:23 +00:00
Alessandro Angelino
e18c1186b8
uVisor: Add header file copy to importer script
...
The core_cmSecureAccess.h file contains secure-access APIs that are a
good candidate for a proposal to CMSIS. At the moment we maintain these
APIs ourselves in ARMmbed/uvisor, and will push updates to
ARMmbed/mbed-os when running our usual importer script.
2017-02-21 13:09:31 +00:00
Mika Leppänen
90db9c0cb4
Corrected IAR compilation and removed compiler warnings
2017-02-21 14:31:26 +02:00
Mika Leppänen
30b6d2304d
Set TCP socket created by accept to non-blocking mode
2017-02-21 14:31:10 +02:00
Mika Leppänen
93f02e4fed
Renamed filter constant
2017-02-21 14:30:45 +02:00
Mika Leppänen
b62df0033f
Merged lwip 2.0.1 stable to mbed-os
...
* commit '61a7b15741c964dfa1f1a14244de38ea4e2ce22a':
Squashed 'features/FEATURE_LWIP/lwip-interface/lwip/' changes from d7a6c6d..10f93f4
2017-02-21 14:27:32 +02:00
Sam Grove
7fc73e42f2
Merge pull request #3781 from geky/lwip-dtls-speed
...
lwip: Added delay to dtls handshake test to compensate for local network
2017-02-17 09:20:58 -06:00
Sam Grove
2a331143c8
Merge pull request #3772 from Ingramz/master
...
Improve readability of USBHID related descriptors
2017-02-17 09:20:42 -06:00
Sam Grove
02f6cd0f5c
Merge pull request #3754 from mikaleppanen/lwip_send_filter
...
Added filter to send minus events to lwip adaptation
2017-02-17 09:16:39 -06:00
Yogesh Pande
f57433a00a
Separating CoAP library from mbed-client-c
...
This commit includes
- Removing CoAP sources from mbed-client-c to its own repository.
- mbed-client-c is moved outside of mbed-os source tree because it is used by mbed-client, so
it will be part of mbed-client offering.
- CoAP sources are used by coap-service which is a part of nanostack deliveries hence coap now existing
as independent module under mbed-coap.
- Commit handles the interdepdency of coap-service with mbed-client-c because of coap sources, coap-service
header files are now fixed to point to right header directory.
2017-02-16 19:08:28 +02:00
Christopher Haster
d4e686be63
nsapi: Renamed attach -> sigio to decrease confusion on its behaviour
2017-02-16 10:47:06 -06:00
Christopher Haster
417524f562
Callback: Adopt better use of assignment/call operators
2017-02-15 15:19:38 -06:00
Christopher Haster
64ccff3fe1
lwip: Added delay to dtls handshake test to compensate for local network
...
The speed of packets on the local network exceeds even the speed of
the ethernet hardware on some of the less powerful devices. Adding
a small delay which can be expected from a real DTLS handshake prevents
this condition from occuring.
2017-02-15 12:38:05 -06:00
Indrek Ardel
29d5ebbb61
Improve readability of USBHID related descriptors
2017-02-14 14:56:51 +02:00
adustm
67a2f4b276
Bug fix to fullfill 64bytes transfer in HID
2017-02-13 17:10:19 +01:00
Hasnain Virk
1ac5700eb6
[ONME-2953 ]Minor glitch in error handling
...
In sendto(), memory allocation failures were mistakenly being treated as
would blocks (assumption was that the device might be able to recover).
However, that put the blocking socket into deep sleep and there was no mechanism to wake it up
ever again. Somehow that got slipped through testing. Fixed in this amenment
2017-02-13 16:37:12 +02:00
Hasnain Virk
1f24533847
Minor amendments
...
NanostackLockGuard usage is now consistent throughout.
Missing Lock assertion added at a few locations in the code
2017-02-13 11:13:56 +02:00
Mika Leppänen
46396da1cf
Added filter to send minus events to lwip adaptation
2017-02-13 09:50:38 +02:00
Seppo Takalo
7dc2dc8c66
Squashed 'features/nanostack/FEATURE_NANOSTACK/coap-service/' changes from a1982c1..e125164
...
e125164 Check secure session pointer in timer callback (#61 )
f49e596 Update unit tests (#59 )
6a5634a Support for multiple virtual services (#58 )
7fe6b98 Remove yotta files (#57 )
5c5c8fe Fix socket send return value overflow (#56 )
0870d05 Update unit test stubs to match latest socket api (#55 )
e687be8 Merge pull request #54 from ARMmbed/warn_fixes
b8fe613 updated unittests
8640d05 Compilation warnings fixed
eea83e5 Flag out entropy source addition (#53 )
7d72eb4 Fix unittests (#52 )
4a6991e Avoid referencing ns_msghdr_t::flags
git-subtree-dir: features/nanostack/FEATURE_NANOSTACK/coap-service
git-subtree-split: e1251645d38d5b1b90350957f0e8b66e0fb59235
2017-02-12 22:06:41 +02:00
Seppo Takalo
667006e1ba
Nanostack 6.0.1
2017-02-12 22:05:33 +02:00
Hasnain Virk
e4f91cd0dc
[ONME-2927] Socket adaptation layer for nanostack
...
As a result of major overhaul in Nanostack generally for socket API and especially
for TCP, the adaptation layer for mbed-OS is being upgraded.
Previously, as nanostack was not able to provide receive queue, adaptation layer had been
faking it. Now with Stream Socket by default Nanostack provides 2K receive queue and 2K send queue.
Receive queue size can be changed using setsockopt(). Batre metal nanostack would not provide with any
receive queues with Datagram Socket, however in this adaptation layer we introduce a 2K receive queue size
for the Datagram Socket as well.
Layer state machine handling is polished to ensure robustness.
::socket_connect() will can return 2 new error codes now. NSAPI_ERROR_ALREADY (like posix EALREADY) in case
if the connection is in progress or NSAPI_ERROR_IS_CONNECTED (like posix EISCONN) if already connected.
NSAPI_ERROR_WOULDBLOCK is now mapped directly to nanostack NS_WOULDBLOCK.
NanostackLockGaurd class is introduced which enables us to claim and release mutex using RAII style.
2017-02-12 22:05:26 +02:00
Sam Grove
ec329be6f2
Revert "Target stm usb config"
2017-02-09 15:37:19 -06:00
Sam Grove
29cfee4ae7
Merge pull request #3708 from OpenNuvoton/nuvoton_usb
...
[NUC472/M453] Fix USB EP setting error in USBAudio
2017-02-09 10:05:54 -06:00
Sam Grove
d990385058
Merge pull request #3684 from jamike/TARGET_STM_USB_CONFIG
...
Target stm usb config
2017-02-09 09:35:16 -06:00
Sam Grove
e0fb062ae8
Merge pull request #3649 from adustm/STM32F7_folderstruct
...
[STM32F7] Modify folder structure
2017-02-09 09:30:28 -06:00
Brian Daniels
bca993a602
Fixing uvisor defines to fix build issues
2017-02-08 09:49:47 -06:00
Sam Grove
12edb2cac2
Merge pull request #3655 from adustm/STM32F4_folderstruct
...
[STM32F4] Modify folder structure
2017-02-07 10:35:26 -06:00
Sam Grove
2b6fed7b73
Merge pull request #3619 from geky/nsapi-fix-initial-events
...
nsapi: Change initial state of sockets to allow events
2017-02-07 10:31:57 -06:00
ccli8
f96b1c0ad7
[NUC472/M453] Fix USB EP setting error in USBAudio
...
NUC472/M453 USB doesn't support configuration of the same EP number for IN/OUT simultaneously.
2017-02-07 16:57:04 +08:00