Skip to content

Commit c0585c3

Browse files
authored
Merge pull request #3080 from ARMmbed/release-candidate
Release candidate for mbed-os-5.2-rc4
2 parents 873686c + 457aef7 commit c0585c3

File tree

47 files changed

+562
-258
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+562
-258
lines changed

TESTS/mbed_drivers/lp_timeout/main.cpp

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,18 @@ void lp_timeout_1s_deepsleep(void)
4343
{
4444
complete = false;
4545

46-
/*
47-
* We use here lp_ticker_read() instead of us_ticker_read() for start and
46+
/*
47+
* Since deepsleep() may shut down the UART peripheral, we wait for 10ms
48+
* to allow for hardware serial buffers to completely flush.
49+
50+
* This should be replaced with a better function that checks if the
51+
* hardware buffers are empty. However, such an API does not exist now,
52+
* so we'll use the wait_ms() function for now.
53+
*/
54+
wait_ms(10);
55+
56+
/*
57+
* We use here lp_ticker_read() instead of us_ticker_read() for start and
4858
* end because the microseconds timer might be disable during deepsleep.
4959
*/
5060
timestamp_t start = lp_ticker_read();

TESTS/mbed_hal/lp_ticker/main.cpp

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,22 @@ void lp_ticker_1s_deepsleep()
6565
complete = false;
6666
uint32_t delay_ts;
6767

68+
/*
69+
* Since deepsleep() may shut down the UART peripheral, we wait for 10ms
70+
* to allow for hardware serial buffers to completely flush.
71+
72+
* This should be replaced with a better function that checks if the
73+
* hardware buffers are empty. However, such an API does not exist now,
74+
* so we'll use the wait_ms() function for now.
75+
*/
76+
wait_ms(10);
77+
6878
ticker_set_handler(lp_ticker_data, cb_done);
6979
ticker_remove_event(lp_ticker_data, &delay_event);
7080
delay_ts = lp_ticker_read() + 1000000;
7181

72-
/*
73-
* We use here lp_ticker_read() instead of us_ticker_read() for start and
82+
/*
83+
* We use here lp_ticker_read() instead of us_ticker_read() for start and
7484
* end because the microseconds timer might be disable during deepsleep.
7585
*/
7686
timestamp_t start = lp_ticker_read();

features/FEATURE_LWIP/lwip-interface/lwip_stack.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -698,8 +698,9 @@ static int mbed_lwip_socket_accept(nsapi_stack_t *stack, nsapi_socket_t server,
698698
netconn_set_recvtimeout(ns->conn, 1);
699699
*(struct lwip_socket **)handle = ns;
700700

701-
(void) netconn_peer(ns->conn, (ip_addr_t *)addr->bytes, port);
702-
addr->version = NSAPI_IPv4;
701+
ip_addr_t peer_addr;
702+
(void) netconn_peer(ns->conn, &peer_addr, port);
703+
convert_lwip_addr_to_mbed(addr, &peer_addr);
703704

704705
return 0;
705706
}

features/mbedtls/VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8e004104020dd4328434e8a207245b0327bbb9b1
1+
mbedtls-2.4.0

features/mbedtls/importer/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@
2727
#
2828

2929
# Set the mbed TLS release to import (this can/should be edited before import)
30-
MBED_TLS_RELEASE ?= a592dcc1c6277bb191269e709cdd3d5593e593ed
30+
MBED_TLS_RELEASE ?= mbedtls-2.4.0
3131

3232
# Translate between mbed TLS namespace and mbed namespace
3333
TARGET_PREFIX:=../
3434
TARGET_SRC:=$(TARGET_PREFIX)src
3535
TARGET_INC:=$(TARGET_PREFIX)inc
3636

3737
# mbed TLS source directory - hidden from mbed via TARGET_IGNORE
38-
MBED_TLS_URL:=https://github.com/ARMmbed/mbedtls.git
38+
MBED_TLS_URL:=https://github.com/ARMmbed/mbedtls-restricted.git
3939
MBED_TLS_DIR:=TARGET_IGNORE/mbedtls
4040
MBED_TLS_API:=$(MBED_TLS_DIR)/include/mbedtls
4141
MBED_TLS_GIT_CFG=$(MBED_TLS_DIR)/.git/config

features/mbedtls/inc/mbedtls/version.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@
3838
* Major, Minor, Patchlevel
3939
*/
4040
#define MBEDTLS_VERSION_MAJOR 2
41-
#define MBEDTLS_VERSION_MINOR 3
41+
#define MBEDTLS_VERSION_MINOR 4
4242
#define MBEDTLS_VERSION_PATCH 0
4343

4444
/**
4545
* The single version number has the following structure:
4646
* MMNNPP00
4747
* Major version | Minor version | Patch version
4848
*/
49-
#define MBEDTLS_VERSION_NUMBER 0x02030000
50-
#define MBEDTLS_VERSION_STRING "2.3.0"
51-
#define MBEDTLS_VERSION_STRING_FULL "mbed TLS 2.3.0"
49+
#define MBEDTLS_VERSION_NUMBER 0x02040000
50+
#define MBEDTLS_VERSION_STRING "2.4.0"
51+
#define MBEDTLS_VERSION_STRING_FULL "mbed TLS 2.4.0"
5252

5353
#if defined(MBEDTLS_VERSION_C)
5454

File renamed without changes.

features/nanostack/FEATURE_NANOSTACK/clone_nanostack.sh

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ clean() {
5858
rm -rf $dir
5959
done
6060
clean_nanostack_binaries
61+
clean_nanostack_licenses
6162
}
6263

6364
clone() {
@@ -80,12 +81,23 @@ export_repos() {
8081
}
8182

8283
copy_nanostack_binaries() {
83-
mkdir -p ../nanostack-binaries
84-
mv sal-stack-nanostack/FEATURE_* ../nanostack-binaries/
84+
mv sal-stack-nanostack/FEATURE_* ../
8585
}
8686

8787
clean_nanostack_binaries() {
88-
rm -rf ../nanostack-binaries
88+
for binaries in ../FEATURE_*; do
89+
if [ "$binaries" != "../FEATURE_NANOSTACK" ]; then
90+
rm -rf $binaries
91+
fi
92+
done
93+
}
94+
95+
copy_nanostack_licenses() {
96+
mv sal-stack-nanostack/LICENSE* ../
97+
}
98+
99+
clean_nanostack_licenses() {
100+
rm -rf ../LICENSE*
89101
}
90102

91103
case "${1-}" in
@@ -99,6 +111,7 @@ case "${1-}" in
99111
export)
100112
export_repos
101113
copy_nanostack_binaries
114+
copy_nanostack_licenses
102115
;;
103116
*)
104117
print_usage

0 commit comments

Comments
 (0)