Skip to content

Commit f4864dc

Browse files
authored
Merge pull request #3930 from ARMmbed/release-candidate
Release candidate for mbed-os-5.4.1
2 parents 305f5c4 + c035144 commit f4864dc

File tree

123 files changed

+2073
-3631
lines changed

Some content is hidden

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

123 files changed

+2073
-3631
lines changed

drivers/FileSystemLike.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class FileSystemLike : public FileBase {
114114
* 0 on success or un-needed,
115115
* -1 on error
116116
*/
117-
virtual int stat(const char *name, struct stat *st) = 0;
117+
virtual int stat(const char *name, struct stat *st) { return -1; };
118118
};
119119

120120
} // namespace mbed

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/hal_patch/sleep.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,6 @@ void hal_sleep(void)
6666

6767
void hal_deepsleep(void)
6868
{
69-
sleep();
69+
hal_sleep();
7070
// NRF_POWER->SYSTEMOFF=1;
7171
}

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/sdk/source/drivers_nrf/pstorage/config/pstorage_platform.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ static __INLINE uint32_t pstorage_flash_page_end()
6666

6767
#define PSTORAGE_FLASH_PAGE_END pstorage_flash_page_end()
6868

69+
#ifndef PSTORAGE_NUM_OF_PAGES
6970
#define PSTORAGE_NUM_OF_PAGES 1 /**< Number of flash pages allocated for the pstorage module excluding the swap page, configurable based on system requirements. */
71+
#endif
72+
7073
#define PSTORAGE_MIN_BLOCK_SIZE 0x0010 /**< Minimum size of block that can be registered with the module. Should be configured based on system requirements, recommendation is not have this value to be at least size of word. */
7174

7275
#define PSTORAGE_DATA_START_ADDR ((PSTORAGE_FLASH_PAGE_END - PSTORAGE_NUM_OF_PAGES - 1) \

features/FEATURE_LWIP/TESTS/mbedmicro-net/gethostbyname/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ void test_dns_literal_pref() {
9191

9292
// Test setup
9393
utest::v1::status_t test_setup(const size_t number_of_cases) {
94-
GREENTEA_SETUP(20, "default_auto");
94+
GREENTEA_SETUP(60, "default_auto");
9595
net_bringup();
9696
return verbose_test_setup_handler(number_of_cases);
9797
}

features/FEATURE_LWIP/TESTS/mbedmicro-net/tcp_echo/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ void prep_buffer(char *tx_buffer, size_t tx_size) {
2929
}
3030

3131
int main() {
32-
GREENTEA_SETUP(20, "tcp_echo");
32+
GREENTEA_SETUP(60, "tcp_echo");
3333

3434
EthernetInterface eth;
3535
eth.connect();

features/FEATURE_LWIP/TESTS/mbedmicro-net/tcp_echo_parallel/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Echo echoers[MBED_CFG_TCP_CLIENT_ECHO_THREADS];
8888

8989

9090
int main() {
91-
GREENTEA_SETUP(20, "tcp_echo");
91+
GREENTEA_SETUP(60, "tcp_echo");
9292

9393
int err = net.connect();
9494
TEST_ASSERT_EQUAL(0, err);

features/FEATURE_LWIP/TESTS/mbedmicro-net/tcp_hello_world/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ bool find_substring(const char *first, const char *last, const char *s_first, co
3636
}
3737

3838
int main() {
39-
GREENTEA_SETUP(20, "default_auto");
39+
GREENTEA_SETUP(60, "default_auto");
4040

4141
bool result = false;
4242
EthernetInterface eth;

features/FEATURE_LWIP/TESTS/mbedmicro-net/udp_dtls_handshake/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ int udp_dtls_handshake_pattern[] = {MBED_CFG_UDP_DTLS_HANDSHAKE_PATTERN};
2828
const int udp_dtls_handshake_count = sizeof(udp_dtls_handshake_pattern) / sizeof(int);
2929

3030
int main() {
31-
GREENTEA_SETUP(20, "udp_shotgun");
31+
GREENTEA_SETUP(60, "udp_shotgun");
3232

3333
EthernetInterface eth;
3434
int err = eth.connect();

features/FEATURE_LWIP/TESTS/mbedmicro-net/udp_echo/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ void prep_buffer(char *tx_buffer, size_t tx_size) {
3434
}
3535

3636
int main() {
37-
GREENTEA_SETUP(20, "udp_echo");
37+
GREENTEA_SETUP(60, "udp_echo");
3838

3939
EthernetInterface eth;
4040
eth.connect();

features/FEATURE_LWIP/TESTS/mbedmicro-net/udp_echo_parallel/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Echo echoers[MBED_CFG_UDP_CLIENT_ECHO_THREADS];
9999

100100

101101
int main() {
102-
GREENTEA_SETUP(20, "udp_echo");
102+
GREENTEA_SETUP(60, "udp_echo");
103103

104104
int err = net.connect();
105105
TEST_ASSERT_EQUAL(0, err);

features/filesystem/bd/BlockDevice.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,15 +117,15 @@ class BlockDevice
117117
*
118118
* @return Size of the underlying device in bytes
119119
*/
120-
virtual bd_size_t size() = 0;
120+
virtual bd_size_t size() const = 0;
121121

122122
/** Convenience function for checking block read validity
123123
*
124124
* @param addr Address of block to begin reading from
125125
* @param size Size to read in bytes
126126
* @return True if read is valid for underlying block device
127127
*/
128-
bool is_valid_read(bd_addr_t addr, bd_size_t size)
128+
bool is_valid_read(bd_addr_t addr, bd_size_t size) const
129129
{
130130
return (
131131
addr % get_read_size() == 0 &&
@@ -139,7 +139,7 @@ class BlockDevice
139139
* @param size Size to write in bytes
140140
* @return True if program is valid for underlying block device
141141
*/
142-
bool is_valid_program(bd_addr_t addr, bd_size_t size)
142+
bool is_valid_program(bd_addr_t addr, bd_size_t size) const
143143
{
144144
return (
145145
addr % get_program_size() == 0 &&
@@ -153,7 +153,7 @@ class BlockDevice
153153
* @param size Size to erase in bytes
154154
* @return True if erase is valid for underlying block device
155155
*/
156-
bool is_valid_erase(bd_addr_t addr, bd_size_t size)
156+
bool is_valid_erase(bd_addr_t addr, bd_size_t size) const
157157
{
158158
return (
159159
addr % get_erase_size() == 0 &&

features/filesystem/bd/ChainingBlockDevice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ bd_size_t ChainingBlockDevice::get_erase_size() const
190190
return _erase_size;
191191
}
192192

193-
bd_size_t ChainingBlockDevice::size()
193+
bd_size_t ChainingBlockDevice::size() const
194194
{
195195
return _size;
196196
}

features/filesystem/bd/ChainingBlockDevice.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class ChainingBlockDevice : public BlockDevice
140140
*
141141
* @return Size of the underlying device in bytes
142142
*/
143-
virtual bd_size_t size();
143+
virtual bd_size_t size() const;
144144

145145
protected:
146146
BlockDevice **_bds;

features/filesystem/bd/HeapBlockDevice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ bd_size_t HeapBlockDevice::get_erase_size() const
7777
return _erase_size;
7878
}
7979

80-
bd_size_t HeapBlockDevice::size()
80+
bd_size_t HeapBlockDevice::size() const
8181
{
8282
return _count * _erase_size;
8383
}

features/filesystem/bd/HeapBlockDevice.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class HeapBlockDevice : public BlockDevice
119119
*
120120
* @return Size of the underlying device in bytes
121121
*/
122-
virtual bd_size_t size();
122+
virtual bd_size_t size() const;
123123

124124
private:
125125
bd_size_t _read_size;

features/filesystem/bd/SlicingBlockDevice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ bd_size_t SlicingBlockDevice::get_erase_size() const
108108
return _bd->get_erase_size();
109109
}
110110

111-
bd_size_t SlicingBlockDevice::size()
111+
bd_size_t SlicingBlockDevice::size() const
112112
{
113113
return _stop - _start;
114114
}

features/filesystem/bd/SlicingBlockDevice.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class SlicingBlockDevice : public BlockDevice
138138
*
139139
* @return Size of the underlying device in bytes
140140
*/
141-
virtual bd_size_t size();
141+
virtual bd_size_t size() const;
142142

143143
protected:
144144
BlockDevice *_bd;

features/mbedtls/VERSION.txt

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

features/mbedtls/importer/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#
2828

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

3232
# Translate between mbed TLS namespace and mbed namespace
3333
TARGET_PREFIX:=../

features/mbedtls/inc/mbedtls/cmac.h

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,13 @@ struct mbedtls_cmac_context_t
5858
/**
5959
* \brief Set the CMAC key and prepare to authenticate the input
6060
* data.
61-
* Should be called with an initialised cipher context.
61+
* Should be called with an initialized cipher context.
6262
*
63-
* \param ctx Cipher context
63+
* \param ctx Cipher context. This should be a cipher context,
64+
* initialized to be one of the following types:
65+
* MBEDTLS_CIPHER_AES_128_ECB, MBEDTLS_CIPHER_AES_192_ECB,
66+
* MBEDTLS_CIPHER_AES_256_ECB or
67+
* MBEDTLS_CIPHER_DES_EDE3_ECB.
6468
* \param key CMAC key
6569
* \param keybits length of the CMAC key in bits
6670
* (must be acceptable by the cipher)
@@ -115,7 +119,7 @@ int mbedtls_cipher_cmac_finish( mbedtls_cipher_context_t *ctx,
115119
int mbedtls_cipher_cmac_reset( mbedtls_cipher_context_t *ctx );
116120

117121
/**
118-
* \brief Output = Generic_CMAC( hmac key, input buffer )
122+
* \brief Output = Generic_CMAC( cmac key, input buffer )
119123
*
120124
* \param cipher_info message digest info
121125
* \param key CMAC key

features/mbedtls/inc/mbedtls/compat-1.3.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2453,7 +2453,6 @@
24532453
#define ssl_set_arc4_support mbedtls_ssl_conf_arc4_support
24542454
#define ssl_set_authmode mbedtls_ssl_conf_authmode
24552455
#define ssl_set_bio mbedtls_ssl_set_bio
2456-
#define ssl_set_bio mbedtls_ssl_set_bio_timeout
24572456
#define ssl_set_ca_chain mbedtls_ssl_conf_ca_chain
24582457
#define ssl_set_cbc_record_splitting mbedtls_ssl_conf_cbc_record_splitting
24592458
#define ssl_set_ciphersuites mbedtls_ssl_conf_ciphersuites

0 commit comments

Comments
 (0)