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
Kevin Bracey
489525c191
C++11-ify NonCopyable
...
Define copy operators public and deleted rather declaring them private
and undefined. Will give immediate compilation errors rather than
delayed linking errors.
2020-03-05 15:45:39 +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
Philipp Steiner
3dcd279fa1
correct comment
2020-03-05 09:13:55 +01:00
Philipp Steiner
e3917e495a
set mbed_set_error_hook() to deprecated
2020-03-05 08:49:17 +01:00
Martin Kojtal
aa6fd58804
Merge pull request #12558 from jarlamsa/differing_eusize
...
Fix issue when TDBStore has varying erase sizes between areas.
2020-03-04 13:25:51 +00:00
Martin Kojtal
22f3bc4ae7
Merge pull request #12436 from mprse/fpga_remove_gpio_pinmaps
...
Remove GPIO pin-maps used for FPGA testing
2020-03-04 13:24:05 +00:00
Martin Kojtal
9ec6f5d8fa
Merge pull request #12536 from DavidLin1577/patch-7
...
Fixed typo 'thead' in thread_neighbor_class.h
2020-03-04 13:23:26 +00:00
Martin Kojtal
0542b40f36
Merge pull request #12537 from DavidLin1577/patch-8
...
Minor optimization to improve readability of code
2020-03-04 13:23:08 +00:00
Philipp Steiner
17e8b9c756
Remove mbed_set_error_hook and replace with weak mbed_error_hook implementation
2020-03-04 12:21:22 +01:00
Martin Kojtal
ba9496451a
Merge pull request #12554 from rajkan01/fliesys_remove_deprecated
...
Remove FileSystemLike deprecated APIs
2020-03-04 08:23:02 +00:00
Martin Kojtal
b4034dc547
Merge pull request #12551 from rajkan01/mpm_remove_deprecated
...
Remove mbed power management deprecated API
2020-03-04 08:22:52 +00:00
Martin Kojtal
b611de8b6b
Merge pull request #12550 from rajkan01/mbedint_remove_deprecated
...
Remove mbed interface deprecated API
2020-03-04 08:22:27 +00:00
Martin Kojtal
40fb45e4da
Merge pull request #12549 from rajkan01/fh_remove_deprecated
...
Remove FileHandle deprecated APIs
2020-03-04 08:21:52 +00:00
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
498e2d2bc8
Merge pull request #12499 from u-blox/ubx_cellular
...
Cellular: For ublox modem, read '@' char first then send data.
2020-03-04 07:58:51 +00:00
Martin Kojtal
804d1e613e
Merge pull request #12489 from kjbracey-arm/override_lwip
...
C++11-ify virtualisation in lwIP classes
2020-03-04 07:58:30 +00: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
a17866e623
Merge pull request #12559 from jeromecoutant/PR_DISCO_L4R9
...
DISCO_L4R9I correct LED pins
2020-03-04 07:48:32 +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
32e8b2f7d4
Merge pull request #12529 from 0xc0170/fix_scancode_ret
...
travis: scancode ret value not cat fix
2020-03-03 15:55:47 +00:00
Martin Kojtal
6e6603f97d
Merge pull request #12534 from rajkan01/callchain_remove_deprecated
...
Remove the deprecated CallChain class and its APIs
2020-03-03 14:57:59 +00:00
Martin Kojtal
2dc5520c2b
Merge pull request #12553 from rajkan01/dh_remove_deprecated
...
Remove DirHandle deprecated APIs
2020-03-03 14:57:16 +00:00
Martin Kojtal
d94965f38d
Merge pull request #12508 from evedon/ed-mprintf-stack-overflow
...
Fix minimal-printf stack overflow
2020-03-03 14:39:11 +00:00
Martin Kojtal
92711bdcde
travis: fix scancode status if all OK
2020-03-03 14:27:52 +00:00
Martin Kojtal
4f07086d85
Merge pull request #12557 from OpenNuvoton/nuvoton_m487_wdt_reset_powerdown
...
M487: Fix crash on WDT reset from power-down
2020-03-03 14:24:25 +00:00
Martin Kojtal
37aafc9da8
Merge pull request #12476 from OpenNuvoton/nuvoton_build_no_cmsis
...
Fix build failure when target's cmsis doesn't exist
2020-03-03 14:19:36 +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
Rajkumar Kanagaraj
df32091c7b
Remove the deprecated RawSerial, UARTSerial, Serial class and SerialBase attach API
2020-03-03 05:19:42 -08:00
Martin Kojtal
a937d30501
Merge pull request #12511 from paul-szczepanek-arm/patch-1
...
allow reconfiguring a running watchdog
2020-03-03 13:00:45 +00:00
Jaeden Amero
9ae0868410
crypto: Update to Mbed Crypto 3.0.1
2020-03-03 12:56:07 +00:00
jeromecoutant
3e30033822
DISCO_L4R9I correct LED pins
2020-03-03 13:36:57 +01:00
Jarno Lamsa
b34dd0ce89
Remove _variant_bd_erase_unit_size
...
In some cases, it is possible that every erase unit in area 0
has the same size, but they are still different than in area 1.
Remove the flag for varying erase sizes and instead check from
flash, what is the erase size of the current unit.
2020-03-03 13:05:27 +02: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
6e1f7bf1f9
Cellular: Fix trace to use new SocketAddress based get_ip_address
...
String based get_ip_address has been removed and SocketAddress based must be
used.
2020-03-03 12:12:16 +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
Martin Kojtal
bad9c57085
Merge pull request #12460 from mprse/spi_init_nc_fix
...
Allow MISO/MOSI set to NC during SPI initialisation (fix for issue #12435 )
2020-03-03 09:56:47 +00:00
Martin Kojtal
e53b69bf58
Merge pull request #12548 from VeijoPesonen/fix_tests-integration-fs
...
tests-integration-net-single: fix build error
2020-03-03 09:54:22 +00:00
Rajkumar Kanagaraj
2a1c641ad3
Remove FileSystemLike deprecated APIs
2020-03-02 16:20:02 -08:00
Rajkumar Kanagaraj
dd9afdf77c
Remove DirHandle deprecated APIs
2020-03-02 15:42:31 -08:00
Rajkumar Kanagaraj
35f1b4ab53
Remove mbed power management deprecated API
2020-03-02 15:06:26 -08:00
Evelyne Donnaes
5016fa1a10
Merge branch 'master' into minimal_printf_default
2020-03-02 17:31:37 +00:00
Evelyne Donnaes
0f2b0d1be5
Fixed greentea tests
2020-03-02 17:27:17 +00:00
Rajkumar Kanagaraj
5d0aab847e
Remove mbed interface deprecated API
2020-03-02 09:00:01 -08:00
Martin Kojtal
744889a472
Merge pull request #12533 from rajkan01/critseclock_remove_deprecated
...
Remove CriticalSectionLock deprecated APIs
2020-03-02 16:37:59 +00:00
Martin Kojtal
d52f55eb56
Merge pull request #12545 from 0xc0170/fix_threads_timeout
...
threads: fix timeout (set to 25)
2020-03-02 16:12:41 +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