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
jeromecoutant
b65b2bd395
DISCO_F769NI: Add USB support
2017-01-12 15:37:37 +01:00
Alessandro Angelino
5f1c04745a
uVisor: Update to v0.26.2
...
* Add support for uVisor own SRAM.
* This enables targets where uVisor sits in a TCM.
* Distinguish between uVisor and public SRAMs.
2017-01-10 13:15:54 +00:00
Anna Bridge
9e24117b68
Merge pull request #3403 from geky/lwip-fix-tcp-connect-error
...
lwip - Fixed error codes for failed TCP connect
2017-01-10 10:43:37 +00:00