Skip to content

Commit fc18365

Browse files
authored
Merge pull request #4463 from ARMmbed/release-candidate
Release candidate for mbed-os-5.4.7
2 parents 5fff7e1 + e850fae commit fc18365

File tree

27 files changed

+719
-101
lines changed

27 files changed

+719
-101
lines changed

TESTS/mbed_drivers/race_test/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include "SingletonPtr.h"
2323
#include <stdio.h>
2424

25-
#ifndef MBED_RTOS_SINGLE_THREAD
25+
#ifdef MBED_RTOS_SINGLE_THREAD
2626
#error [NOT_SUPPORTED] test not supported for single threaded enviroment
2727
#endif
2828

TESTS/mbed_hal/flash/functional_tests/main.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525
#include "mbed.h"
2626
#include "flash_api.h"
27-
#include "flash_data.h"
2827

2928
using namespace utest::v1;
3029

cmsis/TOOLCHAIN_IAR/cmain.S

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,27 @@
33
* Part two of the system initialization code, contains C-level
44
* initialization, thumb-2 only variant.
55
*
6-
* Copyright 2006 IAR Systems. All rights reserved.
7-
*
86
* $Revision: 59783 $
97
*
108
**************************************************/
9+
/* Copyright 2008-2017, IAR Systems AB.
10+
This source code is the property of IAR Systems. The source code may only
11+
be used together with the IAR Embedded Workbench. Redistribution and use
12+
in source and binary forms, with or without modification, is permitted
13+
provided that the following conditions are met:
14+
- Redistributions of source code, in whole or in part, must retain the
15+
above copyright notice, this list of conditions and the disclaimer below.
16+
- IAR Systems name may not be used to endorse or promote products
17+
derived from this software without specific prior written permission.
1118
19+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
20+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
21+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
22+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
23+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
24+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
25+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
26+
*/
1227

1328
; --------------------------------------------------
1429
; Module ?cmain, C-level initialization.

features/FEATURE_COMMON_PAL/mbed-coap/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Change Log
22

3+
## [v4.0.4](https://github.com/ARMmbed/mbed-coap/releases/tag/v4.0.4)
4+
5+
-[Full Changelog](https://github.com/ARMmbed/mbed-coap/compare/v4.0.3...v4.0.4)
6+
7+
**Closed issues:**
8+
- https://github.com/ARMmbed/mbed-client/issues/481 - Obs Con blockwise fails to transmit 2nd block
9+
310
## [v4.0.3](https://github.com/ARMmbed/mbed-coap/releases/tag/v4.0.3)
411

512
-[Full Changelog](https://github.com/ARMmbed/mbed-coap/compare/v4.0.2...v4.0.3)

features/FEATURE_COMMON_PAL/mbed-coap/module.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mbed-coap",
3-
"version": "4.0.3",
3+
"version": "4.0.6",
44
"description": "COAP library",
55
"keywords": [
66
"coap",

features/FEATURE_COMMON_PAL/mbed-coap/source/include/sn_coap_protocol_internal.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ struct sn_coap_hdr_;
7171
#define SN_COAP_MAX_ALLOWED_RESENDING_BUFF_SIZE_BYTES 512 /**< Maximum allowed size of re-sending buffer */
7272
#define SN_COAP_MAX_ALLOWED_RESPONSE_TIMEOUT 40 /**< Maximum allowed re-sending timeout */
7373

74-
#define RESPONSE_RANDOM_FACTOR 1 /**< Resending random factor, value is specified in IETF CoAP specification */
74+
#define RESPONSE_RANDOM_FACTOR 1.5 /**< Resending random factor, value is specified in IETF CoAP specification */
7575

7676
/* * For Message duplication detecting * */
7777

@@ -113,9 +113,12 @@ struct sn_coap_hdr_;
113113
#define SN_COAP_MAX_BLOCKWISE_PAYLOAD_SIZE 0 /**< Must be 2^x and x is at least 4. Suitable values: 0, 16, 32, 64, 128, 256, 512 and 1024 */
114114
#endif
115115

116+
#ifdef MBED_CONF_MBED_CLIENT_SN_COAP_BLOCKWISE_MAX_TIME_DATA_STORED
117+
#define SN_COAP_BLOCKWISE_MAX_TIME_DATA_STORED MBED_CONF_MBED_CLIENT_SN_COAP_BLOCKWISE_MAX_TIME_DATA_STORED
118+
#endif
116119

117120
#ifndef SN_COAP_BLOCKWISE_MAX_TIME_DATA_STORED
118-
#define SN_COAP_BLOCKWISE_MAX_TIME_DATA_STORED 10 /**< Maximum time in seconds of data (messages and payload) to be stored for blockwising */
121+
#define SN_COAP_BLOCKWISE_MAX_TIME_DATA_STORED 60 /**< Maximum time in seconds of data (messages and payload) to be stored for blockwising */
119122
#endif
120123

121124
#ifdef YOTTA_CFG_COAP_MAX_INCOMING_BLOCK_MESSAGE_SIZE
@@ -156,16 +159,13 @@ typedef NS_LIST_HEAD(coap_send_msg_s, link) coap_send_msg_list_t;
156159
/* Structure which is stored to Linked list for message duplication detection purposes */
157160
typedef struct coap_duplication_info_ {
158161
uint32_t timestamp; /* Tells when duplication information is stored to Linked list */
159-
160-
uint8_t addr_len;
161-
uint8_t *addr_ptr;
162-
uint16_t port;
163-
164162
uint16_t msg_id;
165-
163+
uint16_t packet_len;
164+
uint8_t *packet_ptr;
166165
struct coap_s *coap; /* CoAP library handle */
167-
168-
ns_list_link_t link;
166+
sn_nsdl_addr_s *address;
167+
void *param;
168+
ns_list_link_t link;
169169
} coap_duplication_info_s;
170170

171171
typedef NS_LIST_HEAD(coap_duplication_info_s, link) coap_duplication_info_list_t;

features/FEATURE_COMMON_PAL/mbed-coap/source/sn_coap_parser.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -280,11 +280,6 @@ static int8_t sn_coap_parser_options_parse(struct coap_s *handle, uint8_t **pack
280280
/* Get option length WITHOUT extensions */
281281
uint16_t option_len = (**packet_data_pptr & 0x0F);
282282

283-
/* Option number length 15 is reserved for the future use - ERROR */
284-
if (option_len == 15) {
285-
return -1;
286-
}
287-
288283
/* Resolve option delta */
289284
uint16_t option_number = (**packet_data_pptr >> COAP_OPTIONS_OPTION_NUMBER_SHIFT);
290285

@@ -313,6 +308,10 @@ static int8_t sn_coap_parser_options_parse(struct coap_s *handle, uint8_t **pack
313308
option_len += (*(*packet_data_pptr + 1) << 8) + 269;
314309
(*packet_data_pptr) += 2;
315310
}
311+
/* Option number length 15 is reserved for the future use - ERROR */
312+
else if (option_len == 15) {
313+
return -1;
314+
}
316315

317316
message_left = packet_len - (*packet_data_pptr - packet_data_start_ptr);
318317

0 commit comments

Comments
 (0)