Martin Kojtal
b1629b7e59
Merge pull request #13098 from AriParkkila/cell-free-stack
...
Cellular: Fix CellularContext destructor memory leak
2020-06-17 13:24:17 +02:00
Martin Kojtal
ee13b49596
Merge pull request #13093 from AriParkkila/fix-unittest-for-PPPInterface
...
UNITTESTS: Fix TestPPPInterface::get_interface_name
2020-06-15 11:26:25 +02:00
Ari Parkkila
dd73a93887
Cellular: Fix CellularContext destructor memory leak
2020-06-10 22:21:48 -07:00
Ari Parkkila
ffa075bea3
UNITTESTS: Fix TestPPPInterface::get_interface_name
2020-06-09 23:40:28 -07:00
Ari Parkkila
985e72f65d
Cellular: Fix unittest for CellularNetwork
2020-06-05 00:45:49 -07:00
Kevin Bracey
74a51b6782
Add ThisThread Chrono stubs
2020-05-11 14:18:04 +03:00
Kevin Bracey
ee88235e69
Add Semaphore Chrono stubs
2020-05-11 14:18:04 +03:00
Kevin Bracey
3b7eae1109
Add Kernel::impl::get_tick_count() stub
2020-05-11 14:18:04 +03:00
Kevin Bracey
355b45ade1
Cellular: Convert to Chrono
...
Note that documentation for random_max_start_delay config setting has
been changed to indicate that the setting is in seconds, and always has
been. No functional change.
2020-05-11 14:18:04 +03:00
Michal Paszta
56ede3aa91
Fix unittests after ExhaustibleBlockDevice adjustments for wear leveling test
2020-05-05 12:10:41 +03:00
Darryl Green
0d16ca4d8a
Remove references to mbed-crypto
...
Signed-off-by: Darryl Green <darryl.green@arm.com>
2020-04-30 11:28:20 +01:00
Martin Kojtal
d1ae0d570c
Merge pull request #12425 from kjbracey-arm/chrono
...
C++ Chrono support
2020-04-30 11:41:43 +02:00
Martin Kojtal
1ddfa59ea7
Merge pull request #12463 from kjbracey-arm/sockstats
...
Clean up and optimise socket statistics
2020-04-29 22:16:54 +02:00
Martin Kojtal
4f9d21b16a
Merge pull request #12694 from kivaisan/remove_netsocket_icetea_and_tcpserver
...
Remove netsocket icetea tests and TCPServer
2020-04-29 13:46:44 +02:00
Rajkumar Kanagaraj
c71c980ccd
Fix the CI build and unit test issue
2020-04-27 10:19:08 +03:00
Arto Kinnunen
329c5d8538
Add unittests for added methods
...
Add unit tests for added methods:
-get_rtt_estimate_to_address
-get_stagger_estimate_to_address
2020-04-23 11:58:51 +03:00
Martin Kojtal
8926ea0983
Merge pull request #12763 from kivaisan/fix_athandler_read_string
...
Cellular: Fix ATHandler::read_string to handle delimiter inside string
2020-04-15 09:27:40 +02:00
Kimmo Vaisanen
236054175b
Netsocket: Remove deprecated TCPServer
...
TCPSocket should be used instead.
2020-04-14 12:13:08 +03:00
Kimmo Vaisanen
e776a9bb72
Netsocket: Add get_dns_server API for NetworkInterface
...
With get_dns_server DNS servers can be queried from NetworkInterface object
2020-04-14 12:04:03 +03:00
Martin Kojtal
7fce7f552c
Merge pull request #12572 from rajkan01/waitapi_remove_deprecated
...
Remove mbed wait deprecated APIs
2020-04-09 14:57:46 +02:00
Martin Kojtal
d089c86f09
Merge pull request #12581 from kjbracey-arm/hard_noncopy
...
Fully enforce NonCopyable
2020-04-09 10:13:37 +02:00
Martin Kojtal
149235f731
Merge pull request #12589 from u-blox/disconnect
...
Cellular: Add deativation of context associated with profile
2020-04-09 09:39:27 +02:00
Rajkumar Kanagaraj
83be3f24a5
Remove mbed wait deprecated APIs
2020-04-08 10:35:07 +01:00
Kimmo Vaisanen
584d54e955
Cellular: Fix ATHandler::read_string to handle delimiter inside string
...
For example if input buffer includes:
+CCLK: "20/04/05,15:38:57+12"
read_string return "20/04/05,15:38:57+12" instead of "20/04/05"
2020-04-06 16:28:04 +03:00
Kevin Bracey
874e36e05a
Fully enforce NonCopyable
...
Make NonCopyable fully operational so it gives compile errors in all
build profiles.
2020-03-31 19:01:42 +03:00
Martin Kojtal
dba3962f16
Merge pull request #12570 from kjbracey-arm/nsapics
...
Improve nsapi_create_stack
2020-03-31 16:34:20 +02:00
Martin Kojtal
8b929726e1
Merge pull request #12609 from rajkan01/semwait_remove_deprecation
...
Remove Semaphore deprecated APIs
2020-03-31 10:36:43 +02:00
Martin Kojtal
4c6e59d714
Merge pull request #11629 from kyle-cypress/pr/tdb-bounds-refactor
...
Refactor TDB internal bounds computation
2020-03-30 09:39:15 +02: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
2736896fb9
Merge pull request #12706 from hugueskamba/hk_remove_armc5_support_tests
...
Tests: Remove support for ARM Compiler 5
2020-03-27 14:05:26 +00:00
Hugues Kamba
4318a0747f
Tests: Remove support for ARM Compiler 5
...
ARM Compiler 5 is no longer actively supported and was superseded in
Mbed OS by ARM Compiler 6.
2020-03-25 18:22:00 +00:00
Syed Fahimuddin Alavi
c6b6efc456
Added deativation of context associated with profile
...
Added emt method in At cellular context stub file
2020-03-25 16:02:18 +05:00
Kyle Kearney
85d2e8f2f2
Add kvstore/conf to unittest includes
...
The unittests compile DirectAccessDeviceKey.cpp which depends on
kv_config.h, which lives in features/storage/kvstore/conf
2020-03-24 12:36:36 -07:00
Kimmo Vaisanen
62170dd721
Netsocket: Fix SocketAddress stub for new API
2020-03-24 11:05:58 +02:00
Martin Kojtal
4fa9ccacf6
Merge pull request #12652 from jarlamsa/moduletest_filesystemstore
...
Add moduletests for FileSystemStore
2020-03-19 14:46:03 +01:00
Jarno Lamsa
e19cd14ced
Add moduletests for FileSystemStore
...
Baseline for the tests is similar to the TDBStore.
Differing from TDBStore moduletests, FileSystemStore doesn't include
tests for reserved data or corrupting the blockdevice, as it corrupts
the filesystem also.
2020-03-19 12:56:45 +02:00
Jarno Lamsa
6abb58c98b
Add new unittests for TDBStore
...
Add tests for iterators and reserved data.
2020-03-17 08:23:23 +02:00
Jarno Lamsa
8e6b9eebe2
Minor fixes to TDBStore moduletests
2020-03-17 08:21:24 +02:00
Rajkumar Kanagaraj
a6b78c6429
Remove Semaphore deprecated APIs
2020-03-16 09:37:45 -07: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
d5f034b637
Merge pull request #12319 from maciejbocianski/fix_userallocatedevent_imp
...
Fix userallocatedevent imp
2020-03-11 12:43:17 +00:00
Rajkumar Kanagaraj
3674bd1842
Remove Mutex deprecated API
2020-03-06 09:39:30 -08:00
Kevin Bracey
0cf1fd7811
Remove unnecessary NetworkStack casts
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
Kevin Bracey
eb10cc18c5
Optimise SocketStats
...
* Remove unnecessary virtual destructor.
* Use inline empty functions when disabled.
* Remove pointless `const`s from declarations.
2020-03-04 14:54:17 +02: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
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
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
Paul Szczepanek
59f0acb7b1
drop expected failure from reconfiguring watchdog
2020-03-02 10:53:36 +00: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