Commit Graph

376 Commits (3c450f1b3702ee13c41f787ba938284babe7a946)

Author SHA1 Message Date
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
Bartek Szatkowski ddd65b4089 WiFi: Add IPStackInterface abstraction for IP stacks 2016-09-23 10:43:32 +01:00
Christopher Haster 64ac2105a3 lwip - Added option to set static IP addresses
Provided through the config options added to the network interface:
- EthernetInterface::set_network(ip_address, netmask, gateway)
- EthernetInterface::set_dhcp(dhcp)
2016-09-23 04:41:37 -05:00
Christopher Haster f0934fd0f1 nsapi - Added optional API for static configuration of network interfaces
This accomplishes two things:
1. Provides a simple route for adding static IP address support to the
   base NetworkInterface
2. Provides a simple route for adding configurability to network
   interfaces and unifies the network interface to consistent connect
   call, allowing network interfaces to be passed around abstractly

NetworkInterface
 - set_network
 - set_dhcp

WiFiInterface
 - set_credentials

CellularInterface
 - set_credentials
2016-09-23 04:39:13 -05:00
Bartek Szatkowski 4a6728cb2a EMAC: Add LWIP adaptation layer 2016-09-23 10:34:26 +01:00
Bartek Szatkowski ac8c2f96c0 EMAC: Add emac_stack_t implementation for LWIP 2016-09-23 10:34:25 +01:00
Bartek Szatkowski ed0dfb48ea HAL: Add Emac interface 2016-09-23 10:34:21 +01:00
Martin Kojtal e4dde3460f Merge pull request #2774 from AlessandroA/uvisor_rpc
uVisor: Update to v0.25.0
2016-09-23 09:48:07 +01:00
Vincent Coubard e8bddd6711 BLE - Legacy nordic implementation: Move static singleton into a function.
The change of scope all the code from BLE when this code is not used by the end
user application.
2016-09-22 12:10:14 +01:00
Vincent Coubard b4ac8f214a BLE - Nordic implementation: Move singleton into a function.
This change remove BLE code from the binary generated if the user code doesn't
use BLE.
2016-09-22 11:58:29 +01:00
Sam Grove c1c1492fa7 Merge pull request #2744 from jeromecoutant/PR_STM32_IPV4
FEATURE_IPV4/TESTS: result status could be wrong
2016-09-22 01:21:35 -05:00
Alessandro Angelino 2a42255bba uVisor: Update to v0.25.0
The update includes:

* Fixes to the ARMv7-M MPU driver.
* RPC APIs implementation.
* NVIC_SystemReset virtualization.
2016-09-21 18:16:33 +01:00
Alessandro Angelino 8c5200c37f uVisor: Fix the core selection pattern 2016-09-21 17:16:47 +01:00
Martin Kojtal 2866e21bea Merge pull request #2701 from simonqhughes/master
CFSTORE Integration with Storage-Volume-Manager and Flash-Journal API update to the latest versions
2016-09-21 17:03:31 +01:00
jeromecoutant 257c3678da tcp_client_hello_world K&R style 2016-09-20 14:09:53 +02:00
Andrzej Puzdrowski 13a1fd5584 [BLE NRF5] Fix bug: "purgeAllBondingState could had returned before deletion task was done"
by reimplement the btle_purgeAllBondingState as blocking function.
2016-09-20 12:01:22 +02:00
jeromecoutant b7caa5448f tcp_client_hello_worldminor update 2016-09-20 09:40:48 +02:00
jeromecoutant 11d0f51bc4 FEATURE_IPV4/TESTS: result status could be wrong
result status should be set to false by default before starting test execution.
2016-09-19 16:05:29 +02:00
Milosch Meriac 2ca40955a6 uVisor: Debug Box & ENET DMA-support for default box
- Enhanced Debug Box
- Allow hw-specific ACL extensions per region
- Reduce background region rights to debugger and core
- Added Beetle SoC uVisor support
- MPU code restructured
2016-09-19 11:38:06 +01:00
Milosch Meriac d389f65cf2 Don't disable the MPU for ENET when uVisor is around 2016-09-19 11:38:06 +01:00
jeromecoutant f05e6200d3 [STM32 NUCLEO] Init MAC address 2016-09-19 11:51:42 +02:00
Bogdan Marinescu 65ffa8cbb7 Merge pull request #2702 from mazimkhan/uvisor-gt-client-integration
Changes in greentea-client for uvisor-tests-standalone integration
2016-09-19 12:47:06 +03:00
jeromecoutant 79cacd6c77 STM32 / IPV4: #2685 has been forgotten with #2731 2016-09-19 11:19:53 +02:00
Sam Grove ff89555f45 Merge pull request #2731 from jeromecoutant/PR_STM32_IPV4
[TARGET_STM] IPV4 feature hal files factorisation
2016-09-18 17:47:53 -05:00
Sam Grove 3c33e4f9e3 Merge pull request #2722 from geky/nsapi-rst
lwip - Fixed error code on disconnect TCP socket
2016-09-18 17:47:34 -05:00
Sam Grove e6dace5d18 Merge pull request #2720 from yogpan01/mbed-os.5.2-rc1
Removing mbed-client and other fix commits.
2016-09-16 17:37:08 -05:00
Sam Grove 6bfcb3cff0 Merge pull request #2665 from geky/nsapi-socketaddress-equality
nsapi - Add equality operators to SocketAddress class
2016-09-16 17:28:01 -05:00
Sam Grove 52fd7b6864 Merge pull request #2642 from c1728p9/stack_stats
Stack stats
2016-09-16 17:24:20 -05:00
Sam Grove 1a91c1cc1d Merge pull request #2561 from geky/nsapi-network-state
lwip - Add checks for invalid state of network
2016-09-16 17:20:34 -05:00
Sam Grove c940d0e20a Merge pull request #2551 from ARMmbed/runtime_configuration
Remove IPv6 link time dependency on an RF phy
2016-09-16 17:17:51 -05:00
Sam Grove e4c8d76ba9 Merge pull request #2688 from artokin/master
Avoid type collision by renaming callback variable
2016-09-16 14:22:59 -05:00
jeromecoutant acbc3e1e09 [TARGET_STM] IPV4 feature hal files factorisation
Same code was duplicated for all STM32 targets
2016-09-16 16:21:59 +02:00
andreas.larsson 7661fe5719 Replaced GCC specific __packed__ with generic MBED_PACKED 2016-09-16 15:23:41 +02:00
andreas.larsson eacccddaa2 Added mbed_mac_address 2016-09-16 13:58:29 +02:00
andreas.larsson 0e5a0d68b3 Enabled feature IPV4 for C029 2016-09-16 11:31:33 +02:00
Martin Kojtal 5d1d8b4033 Merge pull request #2685 from andreaslarssonublox/stm32f4_phy_fix
lwip - replace vendor specific register usage in stm32f4_emac.c with basic register
2016-09-16 08:23:37 +01:00
Christopher Haster b7d9b28bc4 lwip - Fixed error code on disconnect TCP socket
Fixed to return 0 on successful shutdown
2016-09-15 15:19:40 -05:00
Sam Grove da14bce7a2 Merge pull request #2518 from fvincenzo/master
Enable uvisor on Beetle
2016-09-15 14:01:07 -05:00
Yogesh Pande 86e0841f04 Removing mbed-client and other fix commits.
**FEATURE_CLIENT**
Removing FEATURE_CLIENT from mbed-os source tree.

This commit removes FEATURE_CLIENT from mbed-os source tree
Applications using mbed-client now have to explicitly add
mbed-client.lib in addition to mbed-os.lib.

**mbed-client-c**
 -  [v3.0.1](https://github.com/ARMmbed/mbed-client-c/releases/tag/v3.0.1) (15-Sep-2016)
[Full Changelog](ARMmbed/mbed-client-c@mbed-os-5.0-rc1...v3.0.1)

**New features**

- Creates a new sn_nsdl_put_resource function, which takes ownership of sn_nsdl_resource_info_s resource object (not members) instead of creationg copy of it
- Rearranged struct member variable to pack better into memory
- Refactored coap_options_list to treat number members as numbers instead of strings
- Add option to pass incoming blocks to application instead storing them internally
- Added API for deleting one message from resending

**Closed issues:**

- IOTCLT-1001 - mDS does not sent RST anymore for Client after DELETE /subscriptions

**coap-service**
 -  [v4.0.3](https://github.com/ARMmbed/coap-service/releases/tag/v4.0.3) (15-Sep-2016)
[Full Changelog](ARMmbed/coap-service@mbed-os-5.0-rc1...v4.0.3)

**New features**

- Updated coap-service to use new structure from mbed-client-c
- Set link layer security when opening socket.
2016-09-15 20:42:06 +03:00
Martin Kojtal 4fde794572 Merge pull request #2627 from bulislaw/feature_wifi
Extend and rework WiFi interface
2016-09-15 11:53:03 +02:00
Mohammad Azim Khan 7cc3f40b38 Changes in greentea-client for uvisor-tests-standalone integration 2016-09-14 13:36:08 +01:00
Bartek Szatkowski f9f1f44a35 Extend and rework WiFi interface
General refactoring of the API and new methods added:
  * get_rssi() - measures radio signal strenght
  * get_state() - returns current state (not connected,
   		 connecting, connected, error)
  * scan() - scans for available networks sync and async versions
  * connect_async() - connect to a network without blocking
2016-09-14 12:57:22 +01:00
Russ Butler 9e4a479794 Add prefix to mark cmsis_os functions as private
Add a leading underscore to give an indication that the new cmsis_os
API functions are not official.
2016-09-13 15:53:17 -05:00
Russ Butler 1921b1aa96 Add stack metrics to greentea
Update greentea to report thread information when a thread exits or
is terminated and when testing completes. Also move metrics into
a dedicated greentea file.
2016-09-13 15:52:18 -05:00
Simon Hughes 5e22db842f This commit includes the following CFSTORE/Flash-Journal/Storage updates and fixes:
- flash-journal basicAPI fix for ARM toolchain
- Updated storage-abstraction with version 0.4.7
  (commit c7c4a8c52298bbc006a6f53a059fb2599cad73cc).
- https://github.com/ARMmbed/storage-volume-manager at version v0.2.10.
- https://github.com/ARMmbed/mtd-k64f v0.4.2 version of flash.c (imported as storage_driver.c).
- update to CFSTORE to use the storage-volume-manager API to initialize volume manager and
  add a volume for CFSTORE to use.
- https://github.com/ARMmbed/flash-journal at version v0.5.3
  (commit 4c58165e2fa02c6ed2b9d166a9c96967e81f458f) including readFrom() support.
- Taking flash-journal-strategy-sequential v0.6.7 strategy.c
  (commit b11a718761aa9f33679956968a21aaef9179bde1).
- GCC_ARM, ARM and IAR compiler warning fixes for new versions of flash-journal code.
- Fix storage-volume-manager test cases for concurrent access from 2 volumes to use
  addresses within the 512-1024kB address range, which is within the cfstore added volume.
- Fix cfstore/storage-volume-manager IAR warnings when building with verbose flag.
2016-09-13 18:16:56 +01:00
Andrzej Puzdrowski e67117b8ea introduce the SDK nRF5 Peer manager into BLE security features
PM will be used for SoftDevices s13x, otherwise DM will be used.

Fix - security key distribution settings - Signing is not supported.

declare usage of encryption LTK and IRK if boonding enabled

deleted unused local reference to nRF5xGap class in bleGattcEventHandler.
fix PM internal bug (For gcc with -0s optimization an application fail to save a boonding data)
fuse redeclaration of PACKED macro in nRF5 SDK sources
2016-09-13 14:16:55 +02:00
Arto Kinnunen 1b46d2bbf9 Avoid type collision by renaming callback variable
Build jobs are failing due build error "arm_hal_timer.cpp:50:5:
error: reference to 'callback' is ambiguous".

Fix the build error by renaming callback to arm_hal_callback to
avoid collision with callback defined in ./mbed-os/hal/api/Callback.h
2016-09-13 15:02:43 +03:00
andreas.larsson 189d932169 Replaced usage of vendor specific register with basic registers when checking link status 2016-09-13 12:04:04 +02:00
Vincenzo Frascino 08e6f4121c [BEETLE] Add platform to uvisor importer
This patch adds Beetle platform to uvisor importer.

Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
2016-09-12 10:54:33 +01:00
Christopher Haster e3037ef7b0 nsapi - Added equality operators to SocketAddress class 2016-09-11 20:48:01 -05:00
Sam Grove 5c30c0f166 Merge pull request #2594 from svastm/fix_tcp_server_constructor
Fix TCPServer constructor
2016-09-10 13:04:55 -05:00
Sam Grove 5b90bf7b1d Merge pull request #2624 from simonqhughes/master
CFSTORE Bugfix for realloc() moving KV area and cfstore_file_t data structures not being updated correctly
2016-09-10 07:26:41 -05:00
Sam Grove 3806c8713b Merge pull request #2559 from pan-/utest_globals_optimizations
[utest]: Allow the linker to remove any part of utest if not used
2016-09-10 07:16:34 -05:00
Sam Grove c1ee7fb494 Merge pull request #2504 from ohagendorf/disco_f769_ii
[Disco_F769NI] adding new target
2016-09-10 07:16:21 -05:00
Sam Grove a35cd7f81f Merge pull request #2579 from geky/nsapi-max-socket-accept
lwip - Fix handling of max sockets in socket_accept
2016-09-10 07:11:20 -05:00
Sam Grove fb7ffcb5a3 Merge pull request #2580 from geky/nsapi-bind-again
lwip - Add check for previously-bound socket
2016-09-10 07:10:45 -05:00
Sam Grove b10e3a9163 Merge pull request #2578 from c1728p9/fix_double_free
Fix double free in NanostackInterface
2016-09-09 18:00:09 -05:00
Vincent Coubard aab107020b Use SingletonPtr for the internal variables defaults and handlers in utest_harness. 2016-09-09 17:22:41 +01:00
Olaf Hagendorf 765aeb0dc6 disco_f769ni adding ethernet init
the IPV4 feature was already enabled in an earlier commit but the mbed 5 ethernet initialisation was missing
2016-09-09 14:21:55 +02:00
Sam Grove 72b0d46e01 Merge pull request #2545 from marcuschangarm/flash_blob
Added define guards for SEQUENTIAL_FLASH_JOURNAL_MAX_LOGGED_BLOBS so …
2016-09-09 01:49:39 +02:00
Sam Grove a6b27319ec Merge pull request #2496 from geky/callback-cv
Add cv-qualifiers to Callback and deprecate combinatorial explody functions
2016-09-09 01:45:25 +02:00
Vincent Coubard caa4c4f2a3 Use a SingletonPtr for the Timeout object in utest_shim.
Makes sure to initialize it, otherwize, it might be initialized in
interrupt context.
2016-09-06 10:14:26 +01:00