Commit Graph

21347 Commits (0210cefa9e810e6e87e67b3a55646f85363d10cc)

Author SHA1 Message Date
Seppo Takalo 46c46019bc Refactor DTLSSocket to use Socket::getpeername()
Also, let DTLSSocket to be a friend of InternetSocket so it can do
the name resolution from its _stack.

+ Some whitespace fixes
2018-11-19 15:19:49 +02:00
Seppo Takalo 695db63df8 Decrease verbosity of the TLSSocketWrapper 2018-11-19 15:19:49 +02:00
Michal Paszta 392bccf835 Add unit tests for TLSSocket and TLSSocketWrapper
This also includes their Datagram counterparts: DTLSSocket and DTLSSocketWrapper.
Coverage missing for timer-related functionality, but this would require more advanced stub development.
The extra (d)tls_test_config.h is necessary for successful compilation without HW support for the mbedtls features in unittests.
I reused the mbedtls stub found in features/nanostack/coap-service/test/coap-service/unittest/stub/mbedtls_stub.c and amended it slightly with a few missing functions.
2018-11-19 15:19:49 +02:00
Seppo Takalo 2ca1fe65dd Implement DTLSSocket helper
This is equivalent of TLSSocket class but for UDP and DTLS.
2018-11-19 15:19:49 +02:00
Seppo Takalo d22adbdb26 Implement DTLSSocketWrapper and fix non-blocking connections on TLSSocket
DTLSSocketWrapper is equivalent of TLSSocketWrapper but uses datagram mode
and timers for handling Mbed TLS timeouts.

Non-blocking connections were not working earlier, now fixed for both
secure socket modes.
2018-11-19 15:19:49 +02:00
Martin Kojtal 9aef9d3661
Merge pull request #8671 from mray19027/uart_break
Feature: Add non-blocking serial break/unbreak functions
2018-11-19 13:14:55 +00:00
Martin Kojtal 13b60c2991
Merge pull request #8673 from kegilbert/config-range-limits-dev
Add Mbed Configuration Option Range Limits
2018-11-19 13:14:02 +00:00
Martin Kojtal 8dc54f1f76
Merge pull request #8782 from bridadan/fix_test_traceback
Fix traceback when running mbed test
2018-11-19 13:12:34 +00:00
Martin Kojtal 00c5b56e32
Merge pull request #8683 from NXPmicro/feature-qspi-lpc546xx
Feature qspi lpc546xx
2018-11-19 13:11:44 +00:00
Amir Cohen cf846151eb Add block device small data size test 2018-11-19 14:49:28 +02:00
Martin Kojtal 31475455ea
Merge pull request #8751 from jarvte/ctx_unittests
Cellular: minor fix to CellularDevice and adding updating unit tests after refactoring
2018-11-19 11:54:56 +00:00
Michal Paszta 42940fab3c Deprecate TCP/UDPSocket open-calling constructors
Updated Doxygen, removed the only one call of the deprecated constructor from the tests.
2018-11-19 12:19:52 +01:00
Ari Parkkila 9bdeb68e74 Cellular: Updated debug prints, and network registration return value
Updated cellular debug trace prints:
 - Removed unnecessary prints.
 - Tracing more in DEBUG level.
 - Read/write bytes not printed on big packets.
 - Signal quality (RSSI) traced to log network problems.
 - Dismissed AT data is traced.
 - Modem type and firmware version are traced.

Network registration returns NotRegistered instead of StatusNotAvailable,
because that's not in 3GPP TS 27.007.
2018-11-19 02:55:43 -08:00
Michal Paszta e53ee631f9 Greentea netsocket and network tests improvements
Added smarter rounding of times in recv_timeout and increased the delta by one, to allow "off-by-one" errors.
Reverted commit 88eea6a, reducing TESTS_TIMEOUT back to 480.
Introduced a 100ms timeout for waiting on asynchronous DNS resolution.
Improved error handling on disconnects.
2018-11-19 08:58:14 +01:00
Teppo Järvelin a3589ed41f Fixed cellular backward compatiblity. 2018-11-19 09:04:22 +02:00
Senthil Ramakrishnan f59b99d889 Removing support for printing error-report after reboot and other minor fixes 2018-11-18 22:42:37 -06:00
Senthil Ramakrishnan a0e42fa21e Removing config option to print report to terminal on reboot, as it conflicts with current implementation of mbed_error_printf 2018-11-18 20:45:23 -06:00
Senthil Ramakrishnan 2d58f2374c Added more details around crc field and updated document with terminologies used 2018-11-18 20:40:41 -06:00
Senthil Ramakrishnan a87043fd74 Add function to reset the reboot count 2018-11-18 20:40:41 -06:00
Senthil Ramakrishnan 3ffa78ed41 Change phrasing and tense 2018-11-18 20:40:41 -06:00
Senthil Ramakrishnan 340099c9ea Fix code style issues and fix typos in diagrams 2018-11-18 20:40:40 -06:00
Senthil Ramakrishnan 0b9cd601de Updated with crash report region info and new diagrams added 2018-11-18 20:40:40 -06:00
Senthil Ramakrishnan 8c48a24ad4 Fix tab issues in TOC 2018-11-18 20:40:40 -06:00
Senthil Ramakrishnan 108483d5cb Updated TOC 2018-11-18 20:40:40 -06:00
Senthil Ramakrishnan a721158cd6 Boot sequence diagram added 2018-11-18 20:40:39 -06:00
Senthil Ramakrishnan c3d2c446d0 Fixed sentences and context 2018-11-18 20:40:39 -06:00
Senthil Ramakrishnan a6e76049be Adding usage scenarios 2018-11-18 20:40:39 -06:00
Senthil Ramakrishnan 28a0b4554b Updated design doc 2018-11-18 20:40:39 -06:00
Senthil Ramakrishnan 5489eacb18 Crash reporting design doc 2018-11-18 20:40:39 -06:00
Senthil Ramakrishnan d4fc8fe66c Crash Reporting Design 2018-11-18 20:40:38 -06:00
c_jin 5a15f810a6 Error modification 2018-11-19 09:41:17 +08:00
chao_king 787cdbe6ee
Delete added information (GD32F307VG) 2018-11-18 20:51:37 +08:00
chao_king 36a27326c2
Delete startup_gd32f30x_cl.s 2018-11-18 20:37:22 +08:00
chao_king 2b90f34ed7
Delete startup_gd32f30x_cl.s 2018-11-18 20:37:06 +08:00
chao_king db27eab41c
Delete startup_gd32f30x_cl.s 2018-11-18 20:36:43 +08:00
chao_king 612662117c
Delete startup_gd32f30x_cl.s 2018-11-18 20:36:00 +08:00
c_jin 2b9071afe6 conflicts resolve 2018-11-18 20:19:19 +08:00
chao_king 9ee4af6096 Remove the "device_name": "GD32F307VG"
Our MCU is not in CMSIS Pack and later I will submit a PR that adds back the value with the data from the released CMSIS Pack.
2018-11-18 19:42:13 +08:00
chao_king b6e455c428 Add it to replace startup_gd32f30x_cl.s 2018-11-18 19:31:45 +08:00
chao_king 16ff28db31 Add it to replace startup_gd32f30x_cl.s 2018-11-18 19:31:45 +08:00
chao_king 0728dde170 Add it to replace startup_gd32f30x_cl.s 2018-11-18 19:31:45 +08:00
chao_king c8cadd6f12 Add it to replace startup_gd32f30x_cl.s 2018-11-18 19:30:32 +08:00
chao_king d2779a6a3b Delete a button definition 2018-11-18 19:30:32 +08:00
chao_king bb1e4a72d8 Add support for GD32F307VG
Add GD32F307VG MCU information to target.json
2018-11-18 19:30:31 +08:00
chao_king 61d3bc804c Update licence 2018-11-18 19:30:17 +08:00
chao_king d2e731bcf5 Update licence 2018-11-18 19:30:07 +08:00
chao_king 9131b3f9ec Update licence 2018-11-18 19:29:43 +08:00
chao_king 700f3a2c69 Add EMAC driver for GD32_F307VG 2018-11-18 19:26:04 +08:00
c_jin e20ddacfc3 Delete added information (GD32F307VG) 2018-11-18 19:26:04 +08:00
chao_king 1afb50d7a7 Re add target support for GD32F307VG
1. Mainly change TARGET_Gigadevice --> TARGET_GigaDevice
2. Add license header
2018-11-18 19:26:04 +08:00