Commit Graph

609 Commits (4b3cddff2a66d5b13ad861e8782d1d630c2479c1)

Author SHA1 Message Date
Martin Kojtal b1ce678d30
Merge pull request #12728 from jeromecoutant/PR_ETHERNET_THREADSIZE
STM32 EMAC : increase thread-stacksize
2020-04-05 19:57:44 +02:00
Martin Kojtal 74ace63eaa
Merge pull request #12729 from AnttiKauppila/mbedtls_fixes
Mbedtls fixes
2020-04-03 08:59:14 +02:00
Martin Kojtal ded879daed
Merge pull request #12603 from dustin-crossman/pr/add-cysbsyskit_01
Add target CYSBSYSKIT_01
2020-04-02 18:18:11 +02:00
Martin Kojtal 0eca8d38d0
Merge pull request #12715 from RyoheiHagimoto/rza1-eth-deprecation
RZ_A1H remove usage of ethernet hal API
2020-04-01 08:54:31 +02:00
Martin Kojtal dba3962f16
Merge pull request #12570 from kjbracey-arm/nsapics
Improve nsapi_create_stack
2020-03-31 16:34:20 +02:00
Antti Kauppila 7904ff05b3 more error handling added for ctr and hmac 2020-03-31 15:59:56 +03:00
Teppo Järvelin c5d5d21f05 Added missing optimizations based on mbedtls/baremetal.h config 2020-03-31 14:21:45 +03:00
Teppo Järvelin 0f889c3764 fixed ssl hostname handling 2020-03-31 14:21:44 +03:00
Teppo Järvelin 17e513891b Added new global rng, needed for MbedTLS optimisations 2020-03-31 14:21:44 +03:00
Teppo Järvelin 793837cafe Prepare for upcoming MbedTLS changes 2020-03-31 14:21:44 +03:00
jeromecoutant dfeeb821dc STM32 EMAC : increase thread-stacksize 2020-03-31 11:41:51 +02:00
Martin Kojtal fea7c1abef
Merge pull request #12472 from praveenCY/pr/wpa3_support_merge
Add WPA3 support in mbed-os for green tea tests
2020-03-31 08:32:27 +02:00
RyoheiHagimoto 7794221c69 [RZ_A1H] remove usage of ethernet hal API 2020-03-30 14:54:35 +09:00
Anna Bridge 009ff7adf3
Merge pull request #12036 from kjbracey-arm/callback_fiddle
Callback extension and optimisation
2020-03-27 14:07:20 +00:00
Anna Bridge 1bbcaec04a
Merge pull request #12683 from kivaisan/socketaddress_refactor
SocketAddress rework
2020-03-27 11:30:12 +00:00
Dustin Crossman 56099951b5 Ran astyle on COMPONENT_SCL. 2020-03-26 11:50:58 -07:00
Martin Kojtal b62fdaed1f
Merge pull request #12685 from kivaisan/remove_deprecated_netsocket_methods
Remove deprecated netsocket methods
2020-03-25 10:12:55 +01:00
Kimmo Vaisanen 619a5a7bcc Netsocket: Remove deprecated constructor with open
Default constructor with separate open call should be used instead.
2020-03-24 12:46:30 +02:00
Kimmo Vaisanen 4918bc6aad TCPSocket: Remove deprecated contructor with open
Default constructor and separate open call should be used instead.
2020-03-24 12:46:30 +02:00
Kimmo Vaisanen 2cfee7be71 Netsocket: Remove deprecated InternetSocket::attach methods
InternetSocket::sigio should be used instead.
2020-03-24 12:46:30 +02:00
Kevin Bracey 4eda58893e SocketAddress rework
* Add optimised constexpr default constructor. Default construction
  was previously by a heavyweight defaulted `nsapi_addr_t` parameter.
* Remove deprecated resolving constructor.
* Take `nsapi_addr_t` inputs by constant reference rather than value.
* Inline the trivial getters and setters.
* Use `unique_ptr` to manage the text buffer.
* Make `operator bool` explicit.
* Optimise some methods.
* Update to C++11 style (default initialisers, nullptr etc)
2020-03-24 11:05:33 +02:00
Dustin Crossman 89c70fbd9a Fix licenses in COMPONENT_SCL. 2020-03-16 09:40:34 -07:00
jeromecoutant 488c9db81e STM32 EMAC : remove TIMEOUT issue when cablke is not plugged yet 2020-03-13 16:58:47 +01:00
Kevin Bracey bb733f1ee8 Callback updates
* Optimise clearing by adding `nullptr` overload. This overload means
  `Callback(NULL)` or `Callback(0)` will no longer work; users must
  use `Callback(nullptr)` or `Callback()`.
* Optimise clearing by not clearing storage - increases code size of
  comparison, but that is extremely rare.
* Reduce ROM used by trivial functors - share copy/destroy code.
* Config option to force trivial functors - major ROM saving by
  eliminating the "operations" table.
* Config option to eliminate comparison altogether - minor ROM saving by
  eliminating zero padding.
* Conform more to `std::function` API.
2020-03-11 15:46:03 +02:00
Anna Bridge da9f85b6af
Merge pull request #12580 from cy-arsm/cy-arsm/pr/PR_SoftAP_STA_Fix_revert
Reverting #12312 as it breaking current WiFI connect()->Disconnect() sequence
2020-03-10 12:50:27 +00:00
Dustin Crossman 05776d6f88 Update COMPONENT_SCL. 2020-03-09 10:07:12 -07:00
Dustin Crossman 6b6db89434 Improve documentation. 2020-03-09 10:07:12 -07:00
Dustin Crossman e754510cce Add COMPONENT_SCL. 2020-03-09 10:07:11 -07:00
Martin Kojtal 0692fc65bc
Merge pull request #12567 from jeromecoutant/PR_EMAC_TRACE
STM32 EMAC : increase thread size when mbed-trace is enabled
2020-03-09 15:01:20 +00:00
Kevin Bracey 4759e9d667 Remove unnecessary friends of NetworkInterface 2020-03-05 16:45:36 +02:00
Kevin Bracey 70a6701006 Improve nsapi_create_stack
Use tag dispatch to better handle both NetworkInterface and NetworkStack
pointers.

The previous design was intended to avoid ambiguities when presented
with a scenario like

    class MyDevice : public NetworkInterface, public NetworkStack {
    };

    TCPSocket(&MyDevice);
    // Need NetworkStack *: use NetworkInterface::get_stack or
    // cast to NetworkStack?

But the previous solution didn't actually work as intended. The overload
pair

    nsapi_create_stack(NetworkStack *);
    // versus
    template <class IF>
    nsapi_create_stack(IF *);

would only select the first form if passed an exact match -
`NetworkStack *`. If passed a derived class pointer, like `MyDevice *`,
it would select the template.

This meant that an ambiguity for MyDevice was at least avoided, but
in the wrong direction, potentially increasing code size.

But in other cases, the system just didn't work at all - you couldn't
pass a `MyStack *` pointer, unless you cast it to `NetworkStack *`.
Quite a few bits of test code do this.

Add a small bit of tag dispatch to prioritise the cast whenever the
supplied pointer is convertible to `NetworkStack *`.
2020-03-05 16:45:36 +02:00
Arun S 19cbfd7c15 Reverting #12312 as it breaking current WiFI
connect()->Disconnect() sequence

This reverts commit 18285e1fc1
2020-03-05 16:44:59 +05:30
Martin Kojtal 6137c98d6a
Merge pull request #12543 from kivaisan/remove_deprecated_connect
TLSSocket: Remove deprecated connect
2020-03-04 08:20:23 +00:00
jeromecoutant 3a02671028 STM32 EMAC : increase thread size when mbed-trace is enabled 2020-03-04 09:14:41 +01:00
Martin Kojtal 6677249a08
Merge pull request #12506 from kivaisan/fix_socketaddress_regression
Fix 2 string based IP address removal regressions
2020-03-04 07:52:31 +00:00
Martin Kojtal b3583f04cf
Merge pull request #12464 from jeromecoutant/PR_ETHERNET
STM32 EMAC : add configuration choice and connection check
2020-03-03 16:04:18 +00:00
Martin Kojtal eaac84be72
Merge pull request #12467 from kjbracey-arm/nsapics
Inline nsapi_create_stack(NetworkStack)
2020-03-03 14:13:28 +00:00
Kimmo Vaisanen 86dba54202 Fix L3IPInterface to use SocketAddress class for addresses
String based ip addresses has been deprecated and SocketAddress must be
used instead.
2020-03-03 12:13:51 +02:00
Kimmo Vaisanen 2987bedb68 TLSSocket: Remove deprecated connect
String based connect has been removed but was still defined in TLSSocket header for offloaded variant.

This is a regression fix for 458957d399
2020-03-03 12:08:32 +02:00
Martin Kojtal f4df4e75ea
Merge pull request #12487 from kjbracey-arm/override_nsapi
C++11-ify virtualisation in netsocket
2020-03-03 09:57:57 +00:00
jeromecoutant b15dffaef2 STM32 EMAC : add PHY ID information 2020-03-02 16:21:35 +01:00
jeromecoutant 01a186a952 STM32 EMAC : thread size is configurable 2020-03-02 16:21:23 +01:00
jeromecoutant c3c0928786 STM32 EMAC : enable mbed_trace 2020-03-02 16:21:11 +01:00
jeromecoutant 89a537b9a8 STM32 EMAC : check PHY_BSR value before connect status 2020-03-02 16:20:06 +01:00
jeromecoutant c3653c6813 STM32 EMAC : check driver function status before returning success 2020-03-02 16:19:58 +01:00
jeromecoutant 1b40076376 STM32 EMAC : more configurable
- PHY default configuration can be changed
  - AutoNegotiation
  - Speed
  - DuplexMode
- PHY register offset can be updated depending on chosen PHY

All unused parameters are cleaned.
2020-03-02 16:19:26 +01:00
Kevin Bracey d8d35eda9f C++11-ify virtualisation in netsocket
Use `override` and `final` where appropriate, and eliminate unnecessary
`virtual`.

Some other C++11 simplifications.

Reduces code size.
2020-02-28 13:34:18 +02:00
Kevin Bracey 695e872202 Correct NetworkStackWrapper::get_ip_address
Previous change that removed string-based APIs missed
`NetworkStackWrapper::get_ip_address`. Remove string-based method (which
is not overriding anything in `NetworkStack`) and add missing binary
form to implement `NetworkStack::get_ip_address`.
2020-02-28 13:29:16 +02:00
Martin Kojtal 1bf93039fb
Merge pull request #12457 from artokin/update_stm32_emac_ethernet_driver
Update STM32 EMAC driver - limit RX frame length
2020-02-28 08:45:24 +00:00
Praveen babu chandran 8b97e4c3ef Add WPA3 support for green tea tests 2020-02-25 10:14:30 -08:00