Andres AG
509a72ca81
Add checks for NULL_ENTROPY and SSL_TLS in mbed OS
2016-10-20 17:07:32 +01:00
Christopher Haster
cce82b13ac
nsapi - Fixed unaligned writes from <word-sized scanf calls
2016-10-19 16:49:35 -05:00
Colin Hogben
b516503fcb
lwip: Expose principal socket limits as configuration parameters.
...
Allow the limits on numbers of sockets to be changed via the
configuration system. The help texts show the RAM penalty from
increasing each value.
2016-10-19 21:37:52 +01:00
Christopher Haster
bf83cb28cd
nsapi - Fixed leftover bytes from suffix during ipv6 parsing
...
Thanks to @EduardPon for hunting this down
2016-10-19 15:28:32 -05:00
Colin Hogben
55485ae61e
lwip: Annotate with memory used by config parameters
2016-10-19 14:49:04 +01:00
Colin Hogben
b7a48b1220
lwip: Allow several configuration macros to be set externally.
...
Manually rebasing after the monster restructuring.
2016-10-19 14:49:03 +01:00
Martin Kojtal
382cb9f57a
Merge pull request #3021 from hasnainvirk/master
...
ONME-2822 Binary build script mod
2016-10-19 13:42:22 +01:00
Sam Grove
026e880943
Merge pull request #3042 from mikaleppanen/lwip_tcp_acc_corr
...
Corrected lwip TCP socket accept ipv6 address conversion
2016-10-19 05:48:33 -05:00
Sam Grove
97670e3e6f
Merge pull request #3040 from andresag01/update-mbedtls-to-2.4.0
...
Update feature/mbedtls to version 2.4.0
2016-10-19 05:48:06 -05:00
Sam Grove
61e40cd90b
Merge pull request #3035 from c1728p9/fix_config_store
...
Fix config store
2016-10-19 05:47:47 -05:00
Sam Grove
5bcebba71d
Merge pull request #3023 from jeromecoutant/PR_digital_loop_tests
...
digital_loop tests update for STM32
2016-10-19 05:46:22 -05:00
jeromecoutant
ae9041b12c
i2c_loop tests update for STM32
2016-10-19 11:15:38 +02:00
Russ Butler
3601b5ebb3
CFSTORE - Fix test failures due to fragmentation
...
In the config store create test in test case #5 the amount of available
memory is determined by fully allocating the heap. This is done
multiple times to determine if there is a memory leak. This causes
problems when even slight fragmentation occurs in the heap, since
the size that can be allocated is decreased slightly, which the test
flags as a memory leak.
This patch makes memory leak detection more robust by using metrics
provided by mbed_stats_heap_get. These metrics are an exact
measurement of memory allocated is not changed by fragmentation.
This allows the memory leak test to report correct values regardless of
fragmentation.
2016-10-17 21:08:57 -05:00
Andres AG
57814ddbbc
Update feature/mbedtls to version 2.4.0
2016-10-17 13:32:25 +01:00
Mika Leppänen
61c7f9821b
Corrected lwip TCP socket accept ipv6 address conversion
2016-10-17 15:30:09 +03:00
Russ Butler
9f0e756e28
CFSTORE - Delete handle even if key ref non zero
...
When closing a file handle remove the handle from the handle list
regardless of what the reference count of the key it is pointing to is.
This prevents config store from keeping a handle to file handles that
have gone out of scope.
2016-10-16 20:47:43 -05:00
Russ Butler
c908666d63
CFSTORE - fix handling of realloc fail on delete
...
The function cfstore_delete_ex is written under the assumption that
CFSTORE_REALLOC will never fail if the size is decreasing. Regardless
of the status of CFSTORE_REALLOC the entry is removed from the config
store and zeroed. This works correctly if CFSTORE_REALLOC correctly
updates area_0_tail, but can lead to crashes in the case area_0_tail is
left unchanged. The crash is because when iterating over the config
store data, cfstore_get_next_hkvt is unable to determine the end of
valid data.
This patch fixes this problem by handling the realloc failure case by
updating area_0_tail even if CFSTORE_REALLOC returns NULL. This
patch also adds an assert to check for out of bound entries in when
calling cfstore_get_next_hkvt. This allows an assert to be triggered
if this bug is re-introduced, rather than a crash.
2016-10-16 20:47:42 -05:00
Russ Butler
de8ce0e43e
CFSTORE - Fix crashed due to uninit data
...
When the config store is powered down area_0_head is freed, but
area_0_len is not set to 0. This causes when cfstore_realloc_ex is
called, since on the first allocation it appears that the config store
size is decreasing, and therefore the data is not initialized.
Since the data is uninitiated various fields such as the reference
can have invalid values. On GCC_ARM built with heap stats enabled
this manifests as a crash due to an invalid reference count.
This patch fixes this problem by setting area_0_len to 0 when the data
is freed.
2016-10-16 20:47:40 -05:00
Hasnain Virk
3942b6d0e3
ONME-2822 Binary build script mod
...
* Binary build script is modified to follow currebt mbedOS baseline structure
* License files are moved to the correct location.
* Contribution.md is also moved to the correct location.
2016-10-14 12:38:13 +03:00
Andres AG
2ff5400158
Update to mbed TLS release candidate
2016-10-14 09:03:05 +01:00
Sam Grove
08ff689afa
Merge pull request #2979 from adustm/STM_F429_F439
...
New platforms: NUCLEO_F439ZI, NUCLEO_F756ZG, NUCLEO_L486RG
2016-10-13 16:22:36 -05:00
Sam Grove
e410157557
Merge pull request #2865 from anangl/hal_fixes
...
TARGET_NRF5: A few corrections in HAL implementation.
2016-10-13 11:40:10 -05:00
adustm
ff4fca6747
ADD NEW TARGET : NUCLEO_F756ZG, based on existing NUCLEO_F746ZG
2016-10-13 18:29:09 +02:00
adustm
a07a271fe5
ADD NEW TARGET : NUCLEO_F439ZI, based on existing NUCLEO_F429ZI
2016-10-13 18:29:09 +02:00
Sam Grove
44dcb5f21f
Merge pull request #2994 from 0xc0170/fix_issue#2993
...
lwip-interface: fix issue #2993
2016-10-13 11:14:10 -05:00
Sam Grove
e24f398780
Merge pull request #2982 from bulislaw/dns_query_fix
...
DNS: Revork DNS query
2016-10-13 11:12:13 -05:00
Mahadevan Mahesh
b0c52c5056
Update tests to add support for FRDM KL43Z and FRDM KL82Z
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-10-13 09:02:11 -05:00
Martin Kojtal
f8b682c943
lwip-interface: fix issue #2993
...
DEVICE_ are passed as command line -D, thus no inclusion is required.
``platform.h`` is C++ header file, should not be pulled in C files
2016-10-13 11:42:31 +01:00
Sam Grove
b4f3841cc5
Merge pull request #2861 from OpenNuvoton/nuvoton
...
[NuMaker] Add PFM-M453 and Migrate PFM-NUC472 Crypto
2016-10-12 17:08:43 -05:00
Jeremy Brodt
d535180784
[MAX326xx] Added support for FEATURE_BLE. Integrated MaximBLE library.
2016-10-12 08:59:38 -05:00
jeromecoutant
dee753735d
analog_loop tests update for STM32
2016-10-12 10:38:03 +02:00
jeromecoutant
e0ddd59fdd
digital_loop tests update for STM32
2016-10-12 10:07:27 +02:00
Bartek Szatkowski
3d09b196b7
DNS: Rework DNS query
...
Don't ask multiple DNS servers in case of successful connection, even if
the response is negative. Make sure the return value is correct.
2016-10-11 10:53:05 -05:00
ccli8
1f2f4e3bb3
[NUC472/M453] Move files to match ARM mbed's restructure
...
1. Move USBHALHost_M451.cpp and USBHALHost_NUC472.cpp.
2. Move TARGET_M451/mbed_lib.json.
3. Move TARGET_NUC472/crypto.
4. Move TARGET_NUC472/mbed_lib.json.
2016-10-11 10:55:08 +08:00
cyliangtw
1c1257dcb1
EMAC buffer address word alignment
2016-10-11 10:55:08 +08:00
cyliangtw
82ef4ef047
remove warnings
2016-10-11 10:55:08 +08:00
ccli8
537beb5837
NUMAKER_PFM_M453 support for USB host
2016-10-11 10:55:08 +08:00
ccli8
69f4a200c0
Add NUC472 support for USBH
2016-10-11 10:55:08 +08:00
Andrzej Puzdrowski
8302ce0625
Fix - Remove unwanted changes to the legacy nrf51822 target (caused by rebase). ad applied them to
...
to regular targets.
Fix a typo and polish nordic's code.
2016-10-10 16:50:03 +02:00
Martin Kojtal
d6389a4b8b
Merge pull request #2963 from bulislaw/master
...
DNS: Fix return value for successful name resolutions
2016-10-10 09:41:41 +01:00
Andrzej Puzdrowski
00b0fafd9e
nRF5x Add registering bluetooth's IRQn vector by NVIC_SetVector.
2016-10-10 09:45:31 +02:00
Sam Grove
478c732116
Merge pull request #2952 from andresag01/iotssl-1017-mbedtls_user_config-null_entopy_update-mbedtls
...
Update mbed TLS with the development HEAD
2016-10-07 11:16:19 -05:00
Bartek Szatkowski
922e9526bf
DNS: Fix return value for successful name resolutions
2016-10-07 16:10:15 +01:00
Martin Kojtal
7e292fb9b7
Merge pull request #2926 from andresag01/iotssl-1017-mbedtls_user_config-null_entopy
...
Fix mbedtls user config and null entropy
2016-10-07 14:33:36 +01:00
Martin Kojtal
49145358ec
Merge pull request #2929 from ARMmbed/update_trace
...
Update trace
2016-10-07 10:37:25 +01:00
Sam Grove
94e1cbccfc
Merge pull request #2954 from c1728p9/ncs36510_fix
...
Fix ncs36510 by updating header guard
2016-10-06 16:12:09 -05:00
Sam Grove
3a16ca9855
Merge pull request #2911 from theotherjimmy/docs-generation
...
[Tools] Add documentation generation script
2016-10-06 15:57:08 -05:00
Russ Butler
6375b8cf2b
Fix ncs36510 by updating header guard
...
Fix the header guard in the ncs36510 RF driver. Also update the
license in NanostackRfPhyNcs36510.h.
2016-10-06 11:52:09 -05:00
Andres AG
39c95e0e2f
Sync mbed TLS with development HEAD
...
Update the current version of mbed TLS with the development HEAD of the
mbed TLS project repository. This mostly includes the latest CMAC
feature. Also, update the version in the importer Makefile and
VERSION.txt with the hash of the mbed TLS commit that was sync'ed.
2016-10-06 16:29:41 +01:00
Głąbek, Andrzej
691969c315
TARGET_NORDIC: restored old 'sleep()' implementation in legacy HAL, moved the new one to FEATURE_BLE, so it is picked only when SoftDevice is in use.
2016-10-06 11:51:41 +02:00
Christopher Haster
6d9ac9fa8f
lwip - Added support for NSAPI_UNSPEC to lwip
2016-10-05 12:48:15 -05:00
Christopher Haster
1f4eb0aaa1
nsapi - Standardized support of NSAPI_UNSPEC
...
- Reordered nsapi_version_t to make defaule nsapi_addr_t NSAPI_UNSPEC
- Added support to NSAPI_UNSPEC in SocketAddress
2016-10-05 12:48:10 -05:00
Seppo Takalo
35c4ceb2ef
Update mbed-trace
...
* commit '7a4b3d11a35f764d887b1a8c7a31b1944d2c9c46':
Squashed 'features/FEATURE_COMMON_PAL/mbed-trace/' changes from b17e969..31e338c
2016-10-05 16:09:58 +03:00
Andres AG
916ce43ffa
Fix mbedtls user config and null entropy
2016-10-05 11:04:35 +01:00
Sam Grove
5693e7a7ca
Merge pull request #2916 from c1728p9/ncs36510_rf_phy
...
Add ncs36510 RF phy
2016-10-05 00:52:54 -05:00
Sam Grove
683d7b7d74
Merge pull request #2874 from 0xc0170/feature_wifi_ublox
...
emac HAL API, WiFiInterface additions
2016-10-04 22:46:09 -05:00
Jimmy Brisson
f1a78027d3
Add tags to our code
2016-10-04 15:02:44 -05:00
Christopher Haster
4f1ededb58
Renamed NSAPI_SECURITY_UNSUPPORTED -> NSAPI_SECURITY_UNKNOWN
...
Returning a wifi access point without information regarding the
security type is only valid if the security type is unknown (from
the perspective of the network-socket API). For clarity in situations
in which scan may return an unsupported, but known security type,
type name has been changed to NSAPI_SECURITY_UNKNOWN.
2016-10-04 14:23:36 -05:00
Russ Butler
1aec3700de
Add ncs36510 RF phy
...
Check in the RF phy for the ncs36510. Note that the RF phy is included
in the built when nanostack is included since the phy is specific to
nanostack.
2016-10-04 14:20:14 -05:00
Bartek Szatkowski
febc341672
Fix spelling error: NSAPI_SECURITY_UNSUPPORTED
2016-10-04 17:34:58 +01:00
andreas.larsson
26eb5f19f2
Fixed mbed_lwip_get_netmask amd mbed_lwip_get_gateway
2016-10-04 16:40:15 +02:00
andreas.larsson
f5675cc822
Increased the stack size for the lwIP thread from 1024 to 1200. Needed for the u-blox ODIN-W2 driver. The actually needed size has not been measured.
2016-10-04 15:52:56 +02:00
andreas.larsson
e87f013c4d
Fixed missing public
2016-10-04 15:52:56 +02:00
andreas.larsson
8ea46eae17
Fixed missing abstract connect method
2016-10-04 15:52:55 +02:00
andreas.larsson
b418fce8ac
Added function for increasing ref count.
2016-10-04 15:52:55 +02:00
Bartek Szatkowski
1e7ba5fe79
Fix merge issues
2016-10-04 14:38:28 +01:00
Bartek Szatkowski
ae11b51b26
Split lwip initialisation and interface bringup
...
Split IP stack initialisation from mbed_lwip_bringup to mbed_lwip_init.
2016-10-04 14:32:44 +01:00
Bartek Szatkowski
98eb50f592
Refactor lwip_stack function names to include mbed prefix
...
Mbed function names, prefixed with lwip are confusing, as the name
suggest that they are part of lwip ip stack.
2016-10-04 14:22:24 +01:00
Seppo Takalo
f022d20e0e
Fix build on Cortex M3 with Nanostack.
...
TARGET_CORTEX_M3 renamed to TARGET_M3
2016-10-04 14:15:36 +03:00
Sam Grove
5a55b39b2b
Merge pull request #2887 from ARMmbed/update_mbed_trace
...
Update mbed trace
2016-10-03 12:35:17 -05:00
Bartek Szatkowski
d0be5733db
EMAC: Fix LWIP_IPV4 and DEVICE_EMAC flag usage
2016-10-03 17:46:39 +01:00
Seppo Takalo
11f8ccc871
Add mbed-trace subtree
...
Next time, updating of mbed-trace is just:
```
git subtree pull --squash -m "Update mbed-trace" \
-P features/FEATURE_COMMON_PAL/mbed-trace \
git@github.com:ARMmbed/mbed-trace.git master
```
2016-10-03 14:41:04 +03:00
Seppo Takalo
507d3efa9e
Remove mbed-trace
2016-10-03 14:40:05 +03:00
andreas.larsson
1d3c63d9bb
Changed name for the target UBLOX_C029 to UBLOX_EVK_ODIN_W2
2016-10-03 12:10:50 +02:00
Christopher Haster
5cd2d7869e
Merge remote-tracking branch 'upstream/master' into feature_wifi_ublox_merge
2016-10-02 07:29:07 -05:00
Christopher Haster
13bf0bd470
Merge commit 'upstream/master~' into feature_wifi_ublox
2016-10-02 06:35:12 -05:00
Sam Grove
04a2af7395
Update net tests to use feature name LWIP and not IPv4
2016-10-01 02:21:04 -05:00
Christopher Haster
c2d9fc29ff
restructure - Fixed include paths damaged by the restructure
2016-09-30 19:18:09 -05:00
Christopher Haster
ba99a1f31d
restructure - Restructured features/net directory
...
features/net/network-socket -> features/netsocket
features/net/FEATURE_IPV4 -> features/FEATURE_LWIP
features/net/nanostack-binaries -> features/nanostack
features/net/FEATURE_NANOSTACK -> features/nanostack/FEATURE_NANOSTACK
2016-09-30 19:18:09 -05:00
Christopher Haster
175ae6b610
restructure - Fixed include bug in features/unsupported/net/lwip
...
time.h brings in struct timeval
lwip defines custom struct timeval
resolved through disabling lwip's struct timeval
2016-09-30 19:18:09 -05:00
Christopher Haster
bf643bcb0e
restructure - Moved libraries to features/unsupported
...
libraries -> features/unsupported
2016-09-30 19:18:09 -05:00
Christopher Haster
6440ffab98
cellular - Matched changes to the WiFiinterface in cellular
2016-09-30 16:36:11 -05:00
Christopher Haster
0f40c121d5
wifi - Moved wifi_ap_t into its own class WiFiAccessPoint
...
Using a class for this structure is more idiomatic C++, allows
future deprecations, and more flexibility of the internal structure.
Additionally, this matches to design of the SocketAddress class
specific to the network-socket api.
2016-09-30 15:56:05 -05:00
Christopher Haster
5b12539074
wifi - Removed asynchronous functions
...
Current asynchronous functions do not match the blocking/attach
pattern of the current codebase.
Unfortunately, the asynchronous api can not be updated in the
current time constraints. The async functions will be removed
for now and can be reconsidered at a later date.
2016-09-30 15:41:46 -05:00
Sam Grove
b0b7b3cf9c
Merge pull request #2849 from pan-/fix_nordic_critical_section
...
Fix nordic critical section entry and exit
2016-09-30 15:00:43 -05:00
Sam Grove
d8e484d091
Merge pull request #2812 from jeromecoutant/PR_Add_MAC
...
[STM32 NUCLEO] Init MAC address
2016-09-30 14:52:46 -05:00
Martin Kojtal
cca026dc6d
WiFiInterface - revert removal of connect method
2016-09-30 19:07:43 +01:00
Martin Kojtal
63f0ff1b49
NetworkInterface: remove dhcp and static ip methods
...
These use cases are already supported by NetworkInterface class via
set_dhcp, and set_network.
2016-09-30 18:47:18 +01:00
Martin Kojtal
0fe1246bf4
WiFiInterface - remove data arguments
...
Callback class provides API to support class callbacks.
2016-09-30 18:47:07 +01:00
Seppo Takalo
bdfa22a6e6
Update CONTRIBUTING.md
2016-09-30 16:20:25 +03:00
Seppo Takalo
6ba8068c62
Allow mesh-api to configure routing.
2016-09-30 15:53:46 +03:00
Martin Kojtal
e7b7fecc47
NetworkInterface: fix start_dhcp argument type
2016-09-30 11:33:35 +01:00
Martin Kojtal
ebe02274ff
NetworkInterface- fix comments for dhcp and ip methods
2016-09-30 11:10:59 +01:00
Martin Kojtal
e31f198810
lwip_stack: remove emac int enable/disable functions
...
Already done in emac interface.
2016-09-30 10:59:27 +01:00
Martin Kojtal
ad8b52fe85
EthernetInterface: revert unrelated changes
2016-09-30 10:48:22 +01:00
Martin Kojtal
372f8e4a8c
lwip stack: dhcp in bringup not done for emac targets
2016-09-30 09:59:48 +01:00
Martin Kojtal
961cde39af
WiFiInterface: change variables to protected
...
A wifi instance should be able to set those data.
2016-09-30 08:51:21 +01:00
Martin Kojtal
7c8afa91fb
IPStackInterface: removal of this layer
...
Use NetworkInterface that defines the same API (extended to cover some additional
requirements that comes from wifi).
2016-09-30 08:48:09 +01:00
Martin Kojtal
780ec1ebe4
eth arch: duplication of declarations removal
2016-09-29 17:36:15 +01:00
Martin Kojtal
ac8f5d1b8c
eth arch: missing endif fix
2016-09-29 14:44:53 +01:00
Martin Kojtal
d40c19bc73
lwipstack: add start dhcp and static ip functions
2016-09-29 14:44:03 +01:00
Martin Kojtal
1b797bbd16
EthernetInterface: ctor uses connect() method
2016-09-29 14:38:45 +01:00
Seppo Takalo
bf8d8211fa
Update Nanostack binaries to 5.0.6
2016-09-29 14:31:19 +03:00
Seppo Takalo
cbce88d422
[ONME-2736] Macro Def. of 6LP-ND Security Mode
...
* Application has been using MBED_MESH_API_6LOWPAN_ND_SECURITY_MODE as the macro to define Secuity mode.
* The fall back mechanism, in case of absence of neo or yotta macro definition, was setting the macro to
be yotta format which was not used at all in the application.
* The bug was fixed by changing YOTTA_CFG_MBED_MESH_API_6LOWPAN_ND_SECURITY_MODE to
MBED_MESH_API_6LOWPAN_ND_SECURITY_MODE in the fall back mechanism.
2016-09-29 14:11:02 +03:00
Seppo Takalo
822567bfa1
Initialize mac_api only once.
2016-09-29 14:06:49 +03:00
andreas.larsson
841c9b5809
Fixed missing timeout argument for lwip_start_dhcp
2016-09-29 11:57:14 +01:00
andreas.larsson
6040561841
Added start_dhcp and start_static_ip
2016-09-29 11:54:50 +01:00
andreas.larsson
8af75511ca
Removed check since the interface is not fully up yet so we can't block DHCP/ARP
2016-09-29 11:54:12 +01:00
Bartek Szatkowski
f122695fd3
WiFi: Decuple IP stack bringup and IP address provisioning
2016-09-29 11:54:10 +01:00
Bartek Szatkowski
c80641fe11
EMAC: Fix "#if DEVICE_EMAC " usage
2016-09-29 11:52:43 +01:00
andreas.larsson
b07d60259a
Added missing ;
2016-09-29 11:51:37 +01:00
andreas.larsson
40cd23c4f7
Added pointer for wifi_ap_t in wifi_connect_cb_t to be able to use NULL
2016-09-29 11:51:35 +01:00
andreas.larsson
26c3eef028
Fixed return type for disconnect
2016-09-29 11:50:58 +01:00
Seppo Takalo
1317eda555
Rename FEATURE_IPV6 to FEATURE_NANOSTACK
2016-09-29 13:50:32 +03:00
Bartek Szatkowski
7a3a580a4b
WiFi: Add IPStackInterface abstraction for IP stacks
2016-09-29 11:49:05 +01:00
Bartek Szatkowski
a30aa8f21f
EMAC: Add LWIP adaptation layer
2016-09-29 11:47:24 +01:00
Martin Kojtal
5ed97d5cca
nsapi: error no ssid name correction
2016-09-29 10:46:51 +01:00
Martin Kojtal
da7529801a
WiFiInterface: change scope of wifi_ap_t structure
2016-09-29 10:44:43 +01:00
Martin Kojtal
33d95654df
WifiInterface - use Callback class for callbacks
2016-09-29 10:41:43 +01:00
Vincent Coubard
dcf03310d0
NRF5 - Fix usage of volatile variable in nordic critical section implementations.
2016-09-29 10:05:02 +01:00
Martin Kojtal
517f0509ca
IPStackInterface - add ip address
...
Currently only for IPv4. lwip was updated to accept 2 arguments for getting
the ip address (buffer and length).
2016-09-29 09:50:11 +01:00
Martin Kojtal
81932ee3c3
lwip emac - remove non-existent header inclusion
2016-09-29 09:49:51 +01:00
Martin Kojtal
f12676dfc7
Merge branch 'master' into feature_wifi
...
Conflicts:
features/net/FEATURE_IPV4/lwip-interface/lwip_stack.c
hal/targets.json
2016-09-29 09:20:46 +01:00
Sam Grove
6856a892ef
Merge pull request #2841 from javier-moreno-tridonic-com/fix-border-router-shudown-reconections
...
Fixed assert failure on reconections
2016-09-28 14:59:52 -07:00
Sam Grove
3d1531fcb1
Merge pull request #2767 from mikaleppanen/lwip_2_0
...
Replace lwIP 1.4.1 with lwIP 2.0
2016-09-28 14:58:22 -07:00
Vincent Coubard
597f104685
TARGET_NRF51822 - Override critical section enter/exit when Nordic SDK v10 is used.
...
This change is not located in the hal because SDK v10 is not available from this
place. It is safe to provide the implementation in BLE because the SDK V10 is
defined there. Default implementations of critical section enter/exit are safe
as long as the softdevice is not used.
2016-09-28 13:53:51 +01:00
Martin Kojtal
3d14c20224
WiFiInterface: remove connect implementation
...
We do not want to mix Ethernet and Wifi at the moment, thus WiFiInterface
should implement own connect using emac.
2016-09-28 09:54:59 +01:00
Andres AG
11ee1de620
Update feature/mbedtls with mbedtls' development HEAD
2016-09-28 09:26:02 +01:00
Martin Kojtal
b256b2fdc7
network-sockets: revert API for static configuration
...
WifiInterface - add set_credentials
2016-09-28 09:24:56 +01:00
Martin Kojtal
febf1a8d55
lwipipstack: lwip_bringup arguments update
...
It now accepts additional arguments, that lwipipstack do not use, thus
all 0 and false for dhcp.
2016-09-28 09:24:12 +01:00
javier-moreno-tridonic-com
51fd80bb63
Fixed assert failure on reconections
...
When the border router is switched off, the several retries will end up triggering the asserts in NanostackSocket::open. This is caused because socket_tbl elements, are never set to NULL.
2016-09-28 09:59:12 +02:00
jeromecoutant
7ec5de8c78
space correction
2016-09-28 09:10:25 +02:00
Mika Leppänen
e5c291d347
Added version to nsapi get host by name
2016-09-28 08:48:45 +03:00
Mika Leppänen
1f98cc3d54
Corrected tcp socket send
2016-09-28 08:48:45 +03:00
Mika Leppänen
95383dde32
Added ipv6 support to lwip dns adaptation and updated dchp functionality
2016-09-28 08:48:45 +03:00
Mika Leppänen
283ee52228
Added lwip status parameter
2016-09-28 08:48:45 +03:00
Mika Leppänen
0a88251b6c
Declare heap ourselves to specify section
2016-09-28 08:48:45 +03:00
Mika Leppänen
1d2130f032
Updated STM mac for lwip 2.0 and IPv6.
2016-09-28 08:48:44 +03:00
Mika Leppänen
a349c1123c
Updated VK_RZ_A1H mac for lwip 2.0 and IPv6.
2016-09-28 08:48:44 +03:00
Mika Leppänen
c61973c954
Updated RZ_A1H mac for lwip 2.0 and IPv6
2016-09-28 08:48:44 +03:00
Mika Leppänen
f270fcbd12
Updated LPC17 mac for lwip 2.0 and IPv6
2016-09-28 08:48:44 +03:00
Mika Leppänen
f4e76bb704
Updated NUC472 mac for lwip 2.0 and IPv6
2016-09-28 08:48:44 +03:00
Mika Leppänen
bb50717dc3
Updated lwip API and configuration files to lwip 2.0
2016-09-28 08:48:43 +03:00
Mika Leppänen
5f7a953325
K64F: Use older multicast filtering API
2016-09-28 08:48:43 +03:00
Mika Leppänen
2f9c5e92ef
Updated K64F mac for lwip 2.0 and IPv6
2016-09-28 08:48:43 +03:00
Mika Leppänen
98c452dafb
Added json configuration file and mbed ignore file to lwip stack.
2016-09-28 08:48:43 +03:00
Mika Leppänen
052d994f10
lwip 2.0 https://github.com/ARMmbed/lwip
2016-09-28 08:48:10 +03:00
Mika Leppänen
66f9ecd758
Delete previous lwIP
...
Leave an empty space for fresh subtree
2016-09-28 08:44:01 +03:00
Sam Grove
75cf25056c
Merge pull request #2818 from pan-/fix_test_tools_warnings
...
TESTS TOOLS - fix warnings
2016-09-27 21:54:53 -07:00
Sam Grove
681cff8010
Merge pull request #2785 from pan-/remove_warnings_from_nordic_target
...
TARGET_NRF - Remove warnings from nordic target.
2016-09-27 21:53:28 -07:00
Andres AG
21a7b1de04
Modify mbedtls scripts to add config-no-entropy.h
2016-09-27 16:19:39 +01:00
Martin Kojtal
bd3a81d0ec
lwip: add emac interrupt API
...
ethernet uses eth_arch_xxx_interrupts, emac_xxx_enable_interrupts
2016-09-27 10:42:59 +01:00
Martin Kojtal
1b95c67dd2
mbedtls trng - remove MBEDTLS_ENTROPY_HARDWARE_ALT
...
MBEDTLS_ENTROPY_HARDWARE_ALT will be defined via config in mbedtls,
the mbed wrapper should use DEVICE_TRNG.
2016-09-27 09:16:28 +01:00
Martin Kojtal
1f8da7da34
mbedtls - move TRNG mbed impl into platform folder
2016-09-27 09:14:42 +01:00
Martin Kojtal
ea1041ea36
HAL - RNG rename to TRNG
2016-09-27 09:13:59 +01:00
Martin Kojtal
e8ca16dde7
RNG - rename rng_get_numbers to rng_get_bytes
2016-09-27 08:51:49 +01:00
Martin Kojtal
ee344abd34
mbedtls - mbed wrapper rename to mbed_rng
2016-09-27 08:51:47 +01:00
Martin Kojtal
7d68492bef
mbedtls: add wrapper for mbed hw poll
...
This wrapper uses RNG HAL API
2016-09-27 08:51:34 +01:00
Milosch Meriac
5d6c316597
uVisor: Enforce thread switch atomicity
...
The system hook thread_switch gets called both through the SVC and
though the PendSV, which can get interrupted by the SVC.
Since calls to the uVisor API are not re-entrant, we need to wrap this
function in an atomic section to prevent faults.
2016-09-26 23:09:36 -07:00
Vincent Coubard
8070468b58
GREENTEA - Fix warning about unused function in greentea_metrics.cpp.
...
This change isolate properly functions and variable declared when
MBED_STACK_STATS_ENABLED is on.
2016-09-26 17:32:23 +01:00
Vincent Coubard
90496ed5dc
UTEST - Fix warning by removing unreachable statement.
...
Some compiler will trigger warnings if code is located after the exit function
because this function never returns (by the standard...).
2016-09-26 17:05:03 +01:00
Vincent Coubard
25148af3a2
UTEST - Fix warning in utest_shim.cpp by removing unreachable statement.
2016-09-26 17:02:01 +01:00
jeromecoutant
9453aec847
Patch for GCC and IAR compilation
2016-09-26 18:01:02 +02:00
Vincent Coubard
0b94aae00b
GREENTEA - Fix warning by adding empty line at the end of greentea_serial.cpp.
2016-09-26 16:58:35 +01:00
Vincent Coubard
f150f4f5e0
GREENTEA - fix warning by removing unreachable statement.
2016-09-26 16:56:28 +01:00
Vincent Coubard
ed4889c79f
GREENTEA - Fix a warning due to the absence of an empty line at the end of greentea_serial.h
2016-09-26 16:48:27 +01:00
0xc0170
20f5adbab2
Merge branch 'master' into feature_wifi
...
Conflicts:
features/net/FEATURE_IPV4/lwip-interface/EthernetInterface.cpp
features/net/FEATURE_IPV4/lwip-interface/lwip_stack.c
features/net/FEATURE_IPV4/lwip-interface/lwip_stack.h
features/net/network-socket/WiFiInterface.h
2016-09-26 16:36:17 +01:00
Vincent Coubard
f490474bf2
BLE - Add end of line to deprecate.h
2016-09-26 13:29:07 +01:00
Vincent Coubard
6cdfb19304
BLE: TARGET_NRF - Avoid redefinition of ASSERT macro.
...
Instead, the BLE code use the macro ASSERT_TRUE
2016-09-26 13:29:03 +01:00
Vincent Coubard
2af37a6e1e
TARGET_MCU_NRF51822 - Move declaration of fs_callback into the proper file.
2016-09-26 13:29:02 +01:00
Vincent Coubard
bf28f88878
TARGET_MCU_NRF51822 - Fix comparison between signed and unsigned integer.
2016-09-26 13:29:00 +01:00
Vincent Coubard
85a7d6d39f
TARGET_MCU_NRF51822 - Fix comparison between signed and unsigned integer.
2016-09-26 13:28:58 +01:00
Vincent Coubard
defa15b1bf
TARGET_MCU_NRF51822 - Comment unused variable.
...
The choice has been made to comment this variable instead of deleting it because
the macros values which use this variable are commented as well.
2016-09-26 13:28:56 +01:00
Vincent Coubard
bad230b67b
TARGET_MCU_NRF51822 - Avoid comparison between signed and unsigned integers.
2016-09-26 13:28:54 +01:00
Vincent Coubard
591aa78b55
TARGET_MCU_NRF51822 - Replace definition of SVCALL with the one used by SDK V11.
...
This change avoid warnings about unused functions.
2016-09-26 13:28:52 +01:00
Vincent Coubard
cce4094f37
BLE: TARGET_NRF5: use non deprecated version of Ticker::attach_us.
2016-09-26 13:28:51 +01:00
Vincent Coubard
1ecb1a6ca2
BLE: TARGET_NRF - Remove unused variable.
2016-09-26 13:28:49 +01:00
Vincent Coubard
07da784395
BLE: TARGET_MCU_NRF51822 - Fix signed to unsigned comparison.
2016-09-26 13:28:46 +01:00
Vincent Coubard
80740dda06
TARGET_NRF - Fix possible invalid comparison.
2016-09-26 13:28:44 +01:00
Vincent Coubard
36c001d0e8
TARGET_MCU_NRF51822 - Fix inline keyword position.
2016-09-26 13:28:39 +01:00
Vincent Coubard
4ae2453eb6
NORDIC - remove the unused and incorrect PACKED() macro from the Nordic SDK.
...
This macro is not used anywhere.
2016-09-26 13:28:36 +01:00
jeromecoutant
8471f4ea56
[STM32 NUCLEO] Init MAC address
2016-09-26 11:22:58 +02:00
Sam Grove
157fa65a51
Merge pull request #2809 from geky/lwip-fix-default-dhcp
...
lwip - Fix default behaviour of DHCP
2016-09-26 02:39:20 -05:00
Christopher Haster
358b7f0521
lwip - Fixed default behaviour of DHCP
2016-09-25 23:28:29 -05:00
Christopher Haster
4f7b10f433
nsapi - Moved literal ip parsing out of dns-query
...
- Not inherently a dns operation
- Able to reuse SocketAddress provided to the NetworkInterface
2016-09-25 22:19:18 -05:00
Christopher Haster
2194ca1c1e
nsapi - Increased DNS buffer size to 512 bytes per spec
2016-09-25 22:19:18 -05:00
Christopher Haster
370afe5d82
nsapi - Folded IP parsing logic into SocketAddress
...
Merged duplicated logic into the SocketAddress class. Based
on parallel work by @mkaleppanen and @kjbracey-arm.
Also added small ipv6 parsing fix by @mikaleppanen
2016-09-25 22:19:18 -05:00
Christopher Haster
d237ee8722
nsapi - Reversed arguments to gethostbyname
...
Updated to match prior conventions
- netconn_gethostbyname
- gethostbyname_r
- gethostbyname2_r
- gethostbyaddr_r
2016-09-25 22:19:18 -05:00
Christopher Haster
3858a13b75
nsapi - Added access to gethostbyname and add_dns_server
...
For performing DNS resolution explicitly through the network-socket
user API.
This interface does not require implementation changes and can rely
entirely on the dns query library in the network-socket API.
2016-09-25 22:16:52 -05:00
Sam Grove
98030475af
Merge pull request #2804 from yogpan01/mbed-os.5.2-rc1
...
Updating mbed-client-c and sal-stack-nanostack-eventloop
2016-09-25 22:11:24 -05:00
Sam Grove
d8efe713e7
Merge pull request #2778 from pan-/avoid_inclusion_of_ble_code_if_not_used
...
BLE - Nordic implementation: Move singleton into a function.
2016-09-25 21:57:23 -05:00
Sam Grove
20133688f0
Revert "[STM32 NUCLEO] Init MAC address"
2016-09-25 16:53:00 -05:00
Sam Grove
363c041c53
Merge pull request #2743 from jeromecoutant/PR_STM32_MAC
...
[STM32 NUCLEO] Init MAC address
2016-09-24 16:40:13 -05:00
Sam Grove
e0bf4153a4
Merge pull request #2739 from jeromecoutant/PR_Update_IPV4
...
STM32 / IPV4: #2685 has been forgotten with #2731
2016-09-24 16:39:58 -05:00
Sam Grove
29b0551eb7
Merge pull request #2728 from andreaslarssonublox/eth_fix
...
Added ethernet and enabled IPV4 feature for the EVK-ODIN-W2/C029 target
2016-09-24 16:35:49 -05:00
Sam Grove
60f661da62
Merge pull request #2684 from nvlsianpu/introduce_peer_manager
...
[BLE NRF5] introduce the SDK nRF5 Peer manager into BLE security features
2016-09-24 16:28:18 -05:00
Sam Grove
584384c38f
Merge pull request #2664 from geky/nsapi-static-config
...
nsapi - Add optional API for static configuration of network interfaces
2016-09-24 16:27:55 -05:00
Yogesh Pande
ce0b86a392
Updating mbed-client-c and sal-stack-nanostack-eventloop
...
**mbed-client-c**
[Full Changelog](https://github.com/ARMmbed/mbed-client-c/compare/v3.0.1...v3.0.2 )
**New feature**
- Make resending flags configurable through Yotta and mbed-cli build systems
- Introducing Configuration management through Config file
**Closed issues:**
- IOTCLT-882 - Confirmable messages sending
**sal-stack-nanostack-eventloop**
[Full Changelog](https://github.com/ARMmbed/sal-stack-nanostack-eventloop/compare/mbed-os-5.0-rc1...mbed-os.5.2-rc1 )
**New features**
- Move configuration parameter resolution to separate header and allow user definable configuration header to be used.
- Port eventloop system timer to use new tick timer functions platform_tick_timer_register, platform_tick_timer_start and platform_tick_timer_stop.
2016-09-24 16:44:27 +03:00
Martin Kojtal
8bfd108aa5
Merge pull request #2729 from bulislaw/feature_wifi
...
HAL: Add Emac interface
2016-09-23 12:52:13 +01:00
Bartek Szatkowski
aad3e1f6c5
WiFi: Extend WiFiInterface API and documentation
...
* Add details to documentation
* Add timeout for async functions
* Add channel parameter to connect
* Add wifi_ap_t to connection cb function
2016-09-23 10:43:36 +01:00