Commit Graph

821 Commits (7355219583f11713a2eb8d91860ec97ba5620d4d)

Author SHA1 Message Date
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 51b58b1ad4 Filesystem: Restored LocalFileSystem tests for mbed 2 2017-03-10 11:04:05 -06:00
cyliangtw c58631bb71 [NUC472] Adjust locally administered MAC address 2017-03-10 16:18:14 +08:00
MS30 CYLiang fa0f928de4 [NUC472] Support unique locally administered MAC address 2017-03-10 16:18:14 +08:00
Martin Kojtal 67f80928ea Merge pull request #3877 from andresag01/update-mbedtls-2.4.2
Update mbed TLS feature to mbedtls-2.4.2
2017-03-09 16:19:50 +00:00
Martin Kojtal 8a56c8ce9c Merge pull request #3906 from rjpdasilva/master
uVisor: Fix 'publish' and core libs dependencies
2017-03-09 16:13:15 +00:00
Martin Kojtal 7a04d580fe Merge pull request #3866 from geky/bd-fix-const-missing
bd: Fix missing const attributes on functions
2017-03-09 15:47:38 +00:00
Vincent Coubard 5596cd05cd [NRF51822] Fix reference to sleep in hal_patch override
The `sleep` function as been changed into `hal_sleep` by #3607.
Unfortunately the call to `sleep` in the hal_patch for the NRF51822 has not been
updated to `hal_sleep`. The result was a link time error for targets based on
NRF51822_LEGACY compiling with the mbed OS 5 tree.
2017-03-09 12:44:49 +00:00
Andres AG 1c8d7c1115 Update mbed TLS feature to mbedtls-2.4.2 2017-03-08 15:56:59 +00:00
Ricardo Silva 5b059821d4 uVisor: Fix 'publish' and core libs dependencies
The 'TARGET_M%' rules depend on files generated by the 'rsync' target,
so make this dependency explicit by setting 'rsync' as a pre-requisite
of 'TARGET_M%'. The 'rsync' dependency was removed from 'publish' to
avoid the case where make would select one of the 'TARGET' rules before
completing 'rsync', which would cause the build to fail.

Additionally, also moved the core libs selection in the 'TARGET_M%'
pattern rule from the pre-requisites into the rule's recipe. This is
required because when the wildcard expression used before as a
pre-requisite is expanded (make's 1st phase), it won't find any files
(not built yet via 'rsync' target), so it won't create the associated
'TARGET_M%' rules, finally causing the 'publish' target building to fail
due to missing rules for 'TARGET_M3' and 'TARGET_M4'.

With this change and the previous one, it is ensured that 'rsync' is
done before executing the recipe for 'TARGET_M%', so the required core
libs are already available and can be used from withing the recipe. The
same wildcard pattern is used as before.

The issues being fixed are visible with GNU Make 4.2.1, but not seen
with GNU Make 3.81.

Fixes issue #3905.
2017-03-08 00:49:53 +00:00
Martin Kojtal b8e1b06924 Merge pull request #3846 from simonqhughes/fs_20170227
STORAGE: removal of unsupported tests having ported to sd-driver repository
2017-03-06 16:55:28 +00:00
Martin Kojtal 1be7418883 Merge pull request #3836 from cuvva/master
Allow to redefine nRF's PSTORAGE_NUM_OF_PAGES outside of the mbed-os
2017-03-06 16:53:31 +00:00
Martin Kojtal 05e7aad52a Merge pull request #3832 from geky/lwip-fix-test-timeout
lwip: Increase timeout on network tests with python projects
2017-03-06 16:52:15 +00:00
Christopher Haster 87c0b82230 Updated includes of renamed platform header files 2017-03-01 16:45:55 -06:00
Christopher Haster 31e0875cd1 bd: Fix missing const attributes on functions 2017-03-01 16:11:40 -06:00
adustm 5c858a456e remove mbedtls_printf error notification 2017-02-28 18:07:20 +01:00
adustm d73088a90e Big commit after code review from andesag01
cleanup in include files (unrequired removed + other moved to aes_alt.h)
hcryp_aes moved to mbedtls_aes_context to allow multi instances
remove ctx->nr, ctx->buf
doxygen comments are removed (kept in .h file)
function _ALT are removed (full module _ALT)
handle error returned by HAL_CRYPxx functions
aes is symetric, remove the dupplicated set_key_enc and set_key_dec
buffer, and factorize the call to set_key function
2017-02-28 16:42:06 +01:00
adustm fe1e7aac98 Better use of MBEDTLS_AES_ALT
removed from targets.json, added in mbedtls_device.h
  remove function alternate defines (not used as we replace the full
  module)
2017-02-28 16:42:03 +01:00
adustm fa8f6e4a86 Add AES_CBC mode 2017-02-28 16:42:01 +01:00
adustm 35bf8e17e6 AES ECB for NUCLEO_F439ZI
+---------------------------+--------+--------+--------+
| test case                 | passed | failed | result |
+---------------------------+--------+--------+--------+
| mbedtls_aes_self_test     | 1      | 0      | OK     |
| mbedtls_entropy_self_test | 1      | 0      | OK     |
| mbedtls_sha256_self_test  | 1      | 0      | OK     |
| mbedtls_sha512_self_test  | 1      | 0      | OK     |
+---------------------------+--------+--------+--------+
2017-02-28 16:41:16 +01:00
Simon Hughes 8d084de412 STORAGE: removal of unsupported tests having ported to https://github.com/ARMmbed/sd-driver basic.cpp test. 2017-02-27 17:37:30 +00:00
Sam Grove 3a27568a50 Merge pull request #3773 from geky/fs-filesystem-simple-3
Filesystem: Restructure the filesystem api to be consistent with mbed OS
2017-02-24 18:25:03 -06:00
Christopher Haster 129bae4f7d Filesystem: Added test for basic filesystem operation on cpp api 2017-02-24 15:28:43 -06:00
Sam Grove 262234db27 Merge pull request #3817 from AlessandroA/update_uvisor
Update uVisor to v0.27.0
2017-02-24 14:04:26 -06:00
Christopher Haster c4649afba5 Filesystem: Last minute changes due to feedback on directory iteration
- Changed to use dirent structure type
- Fixed memory leak in closedir
2017-02-24 12:03:14 -06:00
Christopher Haster b9122c73f9 Filesystem: Integrate error handling between c++/posix layers 2017-02-24 12:03:09 -06:00
Christopher Haster c6b1fcbfa5 Filesystem: Integrate filesystem classes with common mbed.h entry point 2017-02-24 11:56:45 -06:00
Christopher Haster eea5c9f08a Filesystem: Integration with retarget code 2017-02-24 11:55:37 -06:00
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
Hovik Melikyan c4a979ef72 Allow to redefine nRF's PSTORAGE_NUM_OF_PAGES outside of the mbed-os source
By default the number of pstorage pages is set 1 and all addresses are
calculated in the pstorage module accordingly. Nordic recommends
changing this macro to whatever number is suitable for the app (see
https://devzone.nordicsemi.com/question/53066/what-will-be-the-starting-
address-of-pstorage-page-how-we-can-change-it/?answer=53085#post-id-5308
5) which is not quite elegant given that pstorage_platform.h is part of
the mbed-os repo. With this modification you can e.g. define
PSTORAGE_NUM_OF_PAGES on the command line, however note that you should
rebuild mbed-os with this setting as it affects pstorage_platform.c.
2017-02-24 11:24:24 +00: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
Christopher Haster ff3fc8b532 lwip: Increase timeout on tests
Sometimes when under heavy load, the CI machines can take a significant
amount of time to bring up a python process (~10s). The timeouts for
the network tests were chosen without much thought, and didn't leave
much room for this sort of delay.

This patch brings up timeouts for ntetwork tests 20s -> 60s
2017-02-23 12:18:43 -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
Michel Jaouen 4d59c8857d TARGET_STM :move usb config file to target dir 2017-02-03 10:32:19 +01:00
bcostm e609796406 Enable USB Host 2017-01-27 17:22:07 +01:00
bcostm 592a25aa3c Add F412ZG in USBHAL files 2017-01-27 17:22:07 +01:00
adustm dd7c00f1b6 STM32F429 / F439 folder rework 2017-01-27 15:41:49 +01:00
adustm 0e70959e4d Modify forder structure so that targets with the same device can share
files
2017-01-26 14:21:26 +01:00
Martin Kojtal ade6722707 Merge pull request #3607 from ARMmbed/feature_hal_sleep
Platform: Add sleep/deepsleep user facing functions
2017-01-26 13:55:33 +02:00
Martin Kojtal 4e28b25399 Merge pull request #3612 from bulislaw/fix_network_host_tool
tests: Fix error on MacOS for udp_dtls_handshake test
2017-01-26 10:33:32 +02:00
Martin Kojtal dec3f01dd9 Merge pull request #3604 from bridadan/rename_gt_test_env
Renaming test_env.cpp in greentea to avoid warning
2017-01-26 10:31:13 +02:00
Martin Kojtal addd2b2965 Merge pull request #3548 from bridadan/reduce_stack_network_parallel_tests
Reduce thread stack size for parallel network tests
2017-01-26 10:21:46 +02:00
Christopher Haster d741c135f4 nsapi: Changed initial state of sockets to allow events
Note, the registered callback is still disabled by a call to
socket_attach. This will avoid being called after the socket is closed
unless close is called from the attached callback, which is in irq
context.

As pointed out by kjbracey-arm, the previous behaviour was broken
for sockets that started out listening.
2017-01-20 07:58:34 -06:00
Bartek Szatkowski 537f4db0af tests: Fix error on MacOS for udp_dtls_handshake test 2017-01-19 13:13:18 +00:00
Bartek Szatkowski 6a045a49a9 Platform: Add sleep/deepsleep user facing functions
Add sleep/deepsleep functions to platform layer which are replacing HAL
functions with the same name, rename existing symbols in HAL layer
to hal_sleep/hal_deepsleep. This way sleep functions
are always available, even if target doesn't implement them, which makes
the code using sleep clearer. It also enables us to make decision on in
which builds (debug/release) the sleep will be enabled.
2017-01-19 09:39:29 +00:00
Brian Daniels 8a29f54ae4 Renaming test_env.cpp in greentea to avoid warning 2017-01-17 17:27:41 -06:00
Brian Daniels bdd0ff4272 Reduce thread stack size for parallel network tests
This commit reduces the thread stack from 2k to 1k for each thread in
the parallel network tests. This allows the test to run on more
constrained devices (like the LPC1768).
2017-01-17 11:19:35 -06:00
Martin Kojtal e592c8a8b2 Merge pull request #3571 from jeromecoutant/PR_DISCO_F769NI
DISCO_F769NI introduction
2017-01-16 16:38:20 +00:00
Martin Kojtal c14d7154e6 Merge pull request #3397 from AlessandroA/stm32f4_support
Add uVisor support for the DISCO_F429ZI
2017-01-16 16:24:33 +00:00
Anna Bridge 209ac788c4 Merge pull request #3547 from SeppoTakalo/master
Add support for ethernet-only configuration with Nanostack.
2017-01-12 16:05:26 +00:00
Anna Bridge 236258bf05 Merge pull request #3546 from bcostm/dev_can_nucleo-f412zg
NUCLEO-F412ZG - Add CAN peripheral
2017-01-12 16:04:40 +00:00
jeromecoutant 66c3f8ed44 DISCO_F769NI: Add analog loop test support 2017-01-12 15:38:05 +01:00