Skip to content

Commit da3f9ea

Browse files
committed
Recompile variants and core on 3.2.0
1 parent 8daef4b commit da3f9ea

File tree

238 files changed

+38969
-23300
lines changed

Some content is hidden

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

238 files changed

+38969
-23300
lines changed

Diff for: cores/arduino/mbed/connectivity/cellular/include/cellular/framework/AT/AT_CellularDevice.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class AT_CellularDevice : public CellularDevice {
6767
};
6868

6969
public:
70-
AT_CellularDevice(FileHandle *fh);
70+
AT_CellularDevice(FileHandle *fh, char *delim = "\r");
7171
virtual ~AT_CellularDevice();
7272

7373
virtual nsapi_error_t clear();

Diff for: cores/arduino/mbed/connectivity/drivers/emac/TARGET_ARM_SSG/COMPONENT_SMSC9220/smsc9220_emac_config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
#define FLAG_RX 1U
3737
#define LINK_STATUS_THREAD_PRIORITY (osPriorityNormal)
3838
#define LINK_STATUS_THREAD_STACKSIZE 512U
39-
#define LINK_STATUS_TASK_PERIOD_MS 200U
39+
#define LINK_STATUS_TASK_PERIOD_MS 200ms
4040
#define PHY_STATE_LINK_DOWN false
4141
#define PHY_STATE_LINK_UP true
4242
#define CRC_LENGTH_BYTES 4U

Diff for: cores/arduino/mbed/connectivity/drivers/wifi/esp8266-driver/ESP8266/ESP8266.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -455,9 +455,10 @@ class ESP8266 {
455455
/**
456456
* Stop board's and ESP8266's UART flow control
457457
*
458+
* @param board_only true to apply to board only, false to apply both
458459
* @return true if started
459460
*/
460-
bool stop_uart_hw_flow_ctrl();
461+
bool stop_uart_hw_flow_ctrl(bool board_only = false);
461462

462463
/*
463464
* From AT firmware v1.7.0.0 onwards enables TCP passive mode

Diff for: cores/arduino/mbed/connectivity/lorawan/include/lorawan/LoRaRadio.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ typedef struct radio_fsk_packet_handler {
200200
/**
201201
* Storage for RSSI value of the received signal.
202202
*/
203-
int8_t rssi_value;
203+
int16_t rssi_value;
204204

205205
/**
206206
* Automated frequency correction value.
@@ -333,7 +333,7 @@ typedef struct radio_lora_packet_handler {
333333
/**
334334
* RSSI value in dBm for the received packet.
335335
*/
336-
int8_t rssi_value;
336+
int16_t rssi_value;
337337

338338
/**
339339
* Size of the transmitted or received packet.

Diff for: cores/arduino/mbed/connectivity/lorawan/system/lorawan_data_structures.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ typedef struct {
908908
*
909909
* Provides a certain QOS level set by network server in LinkADRReq MAC
910910
* command. The device will transmit the given UNCONFIRMED message nb_trials
911-
* time with same frame counter until a downlink is received. Standard defined
911+
* time with the same frame counter OR until a downlink is received. Standard defined
912912
* range is 1:15. Data rates will NOT be adapted according to chapter 18.4.
913913
*/
914914
uint8_t nb_trials;

Diff for: cores/arduino/mbed/connectivity/nanostack/sal-stack-nanostack-eventloop/nanostack-event-loop/eventOS_callback_timer.h

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
/*
2-
* Copyright (c) 2014-2015 ARM Limited. All rights reserved.
2+
* Copyright (c) 2014-2015, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
4-
* Licensed under the Apache License, Version 2.0 (the License); you may
5-
* not use this file except in compliance with the License.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
67
* You may obtain a copy of the License at
78
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9+
* http://www.apache.org/licenses/LICENSE-2.0
910
*
1011
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an AS IS BASIS, WITHOUT
12-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1314
* See the License for the specific language governing permissions and
1415
* limitations under the License.
1516
*/

Diff for: cores/arduino/mbed/connectivity/nanostack/sal-stack-nanostack-eventloop/nanostack-event-loop/eventOS_event.h

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
/*
2-
* Copyright (c) 2014-2015 ARM Limited. All rights reserved.
2+
* Copyright (c) 2014-2015, 2017, 2019-2020, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
4-
* Licensed under the Apache License, Version 2.0 (the License); you may
5-
* not use this file except in compliance with the License.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
67
* You may obtain a copy of the License at
78
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9+
* http://www.apache.org/licenses/LICENSE-2.0
910
*
1011
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an AS IS BASIS, WITHOUT
12-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1314
* See the License for the specific language governing permissions and
1415
* limitations under the License.
1516
*/

Diff for: cores/arduino/mbed/connectivity/nanostack/sal-stack-nanostack-eventloop/nanostack-event-loop/eventOS_event_timer.h

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
/*
2-
* Copyright (c) 2014-2015 ARM Limited. All rights reserved.
2+
* Copyright (c) 2014-2015, 2017, 2020, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
4-
* Licensed under the Apache License, Version 2.0 (the License); you may
5-
* not use this file except in compliance with the License.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
67
* You may obtain a copy of the License at
78
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9+
* http://www.apache.org/licenses/LICENSE-2.0
910
*
1011
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an AS IS BASIS, WITHOUT
12-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1314
* See the License for the specific language governing permissions and
1415
* limitations under the License.
1516
*/

Diff for: cores/arduino/mbed/connectivity/nanostack/sal-stack-nanostack-eventloop/nanostack-event-loop/eventOS_scheduler.h

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
/*
2-
* Copyright (c) 2014-2015 ARM Limited. All rights reserved.
2+
* Copyright (c) 2014-2016, 2020, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
4-
* Licensed under the Apache License, Version 2.0 (the License); you may
5-
* not use this file except in compliance with the License.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
67
* You may obtain a copy of the License at
78
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9+
* http://www.apache.org/licenses/LICENSE-2.0
910
*
1011
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an AS IS BASIS, WITHOUT
12-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1314
* See the License for the specific language governing permissions and
1415
* limitations under the License.
1516
*/

Diff for: cores/arduino/mbed/connectivity/nanostack/sal-stack-nanostack-eventloop/nanostack-event-loop/platform/arm_hal_timer.h

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
/*
2-
* Copyright (c) 2014-2015 ARM Limited. All rights reserved.
2+
* Copyright (c) 2014-2017, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
4-
* Licensed under the Apache License, Version 2.0 (the License); you may
5-
* not use this file except in compliance with the License.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
67
* You may obtain a copy of the License at
78
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9+
* http://www.apache.org/licenses/LICENSE-2.0
910
*
1011
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an AS IS BASIS, WITHOUT
12-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1314
* See the License for the specific language governing permissions and
1415
* limitations under the License.
1516
*/

Diff for: cores/arduino/mbed/connectivity/nanostack/sal-stack-nanostack-eventloop/nanostack-event-loop/platform/eventloop_config.h

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
/*
2-
* Copyright (c) 2014-2015 ARM Limited. All rights reserved.
2+
* Copyright (c) 2014-2017, 2019, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
4-
* Licensed under the Apache License, Version 2.0 (the License); you may
5-
* not use this file except in compliance with the License.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
67
* You may obtain a copy of the License at
78
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9+
* http://www.apache.org/licenses/LICENSE-2.0
910
*
1011
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an AS IS BASIS, WITHOUT
12-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1314
* See the License for the specific language governing permissions and
1415
* limitations under the License.
1516
*/

Diff for: cores/arduino/mbed/connectivity/nanostack/sal-stack-nanostack-eventloop/source/event.h

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
/*
2-
* Copyright (c) 2017 ARM Limited. All rights reserved.
2+
* Copyright (c) 2017, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
4-
* Licensed under the Apache License, Version 2.0 (the License); you may
5-
* not use this file except in compliance with the License.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
67
* You may obtain a copy of the License at
78
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9+
* http://www.apache.org/licenses/LICENSE-2.0
910
*
1011
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an AS IS BASIS, WITHOUT
12-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1314
* See the License for the specific language governing permissions and
1415
* limitations under the License.
1516
*/

Diff for: cores/arduino/mbed/connectivity/nanostack/sal-stack-nanostack-eventloop/source/ns_timer.h

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
/*
2-
* Copyright (c) 2014-2015 ARM Limited. All rights reserved.
2+
* Copyright (c) 2014-2017, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
4-
* Licensed under the Apache License, Version 2.0 (the License); you may
5-
* not use this file except in compliance with the License.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
67
* You may obtain a copy of the License at
78
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9+
* http://www.apache.org/licenses/LICENSE-2.0
910
*
1011
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an AS IS BASIS, WITHOUT
12-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1314
* See the License for the specific language governing permissions and
1415
* limitations under the License.
1516
*/

Diff for: cores/arduino/mbed/connectivity/nanostack/sal-stack-nanostack-eventloop/source/timer_sys.h

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
/*
2-
* Copyright (c) 2014-2015 ARM Limited. All rights reserved.
2+
* Copyright (c) 2014-2015, 2017, Pelion and affiliates.
33
* SPDX-License-Identifier: Apache-2.0
4-
* Licensed under the Apache License, Version 2.0 (the License); you may
5-
* not use this file except in compliance with the License.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
67
* You may obtain a copy of the License at
78
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9+
* http://www.apache.org/licenses/LICENSE-2.0
910
*
1011
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an AS IS BASIS, WITHOUT
12-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1314
* See the License for the specific language governing permissions and
1415
* limitations under the License.
1516
*/

Diff for: cores/arduino/mbed/connectivity/nanostack/sal-stack-nanostack/nanostack/net_interface.h

+2
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ typedef enum arm_library_event_type_e {
9999
#define SOCKET_NO_RAM (10 << 4)
100100
/** TCP connection problem indication (RFC 1122 R1) */
101101
#define SOCKET_CONNECTION_PROBLEM (11 << 4)
102+
/** Socket is busy or Radio is returning CCA failure */
103+
#define SOCKET_BUSY (12 << 4)
102104

103105
#define SOCKET_BIND_DONE SOCKET_CONNECT_DONE /**< Backward compatibility */
104106
#define SOCKET_BIND_FAIL SOCKET_CONNECT_FAIL /**< Backward compatibility */

Diff for: cores/arduino/mbed/connectivity/nanostack/sal-stack-nanostack/nanostack/socket_api.h

+1
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ extern "C" {
115115
* | | | TCP: some data acknowledged (d_len = data remaining in send queue) |
116116
* | SOCKET_NO_RAM | 0xA0 | No RAM available. |
117117
* | SOCKET_CONNECTION_PROBLEM | 0xB0 | TCP connection is retrying. |
118+
* | SOCKET_BUSY | 0xC0 | Socket is busy or Radio channel is returning CCA failure. |
118119
*
119120
*
120121
* \section socket-tcp How to use TCP sockets:

Diff for: cores/arduino/mbed/connectivity/nanostack/sal-stack-nanostack/nanostack/ws_bbr_api.h

+66-3
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,22 @@ typedef struct bbr_timezone_configuration {
8888
* "bit xxxxxxxxxxxxxxxS" 0 = false 1 = true Daylight saving time status*/
8989
uint16_t status;
9090
} bbr_timezone_configuration_t;
91+
92+
93+
/**
94+
* \brief Border router configuration.
95+
*/
96+
typedef struct bbr_configuration_s {
97+
uint32_t dhcp_address_lifetime; /**< DHCP address lifetime in seconds minimum 2 hours and maximum few days*/
98+
uint32_t rpl_default_lifetime; /**< RPL default lifetime value from 30 minutes to 16 hours*/
99+
uint16_t dag_max_rank_increase; /**< DIO Max rank increase. Range 0-2048 */
100+
uint16_t min_hop_rank_increase; /**< DIO Min hop rank increase. range 32-256 */
101+
uint16_t options; /**< Border router configuration options */
102+
uint8_t dio_interval_min; /**< DIO interval min. range 1-255 */
103+
uint8_t dio_interval_doublings; /**< DIO interval doublings. range 1-8 */
104+
uint8_t dio_redundancy_constant; /**< DIO redundancy constant. Range 0-10 */
105+
} bbr_configuration_t;
106+
91107
/**
92108
* Start backbone border router service.
93109
*
@@ -270,7 +286,52 @@ int ws_bbr_eapol_node_limit_set(int8_t interface_id, uint16_t limit);
270286
int ws_bbr_ext_certificate_validation_set(int8_t interface_id, uint8_t validation);
271287

272288
/**
273-
* Sets RPL parameters
289+
* Sets Border router configuration
290+
*
291+
* Sets the configuration to the border router. Use ws_configuration_get to get
292+
* the settings and modify wanted parameters.
293+
*
294+
* Minor validation is done to parameters, but full validation must be done
295+
* at application level
296+
*
297+
* \param interface_id Network interface ID.
298+
* \param configuration_ptr Configuration structure.
299+
*
300+
* \return 0, Configuration parameters set.
301+
* \return <0 Parameter set failed.
302+
*/
303+
int ws_bbr_configuration_set(int8_t interface_id, bbr_configuration_t *configuration_ptr);
304+
305+
/**
306+
* Get Border router configuration
307+
*
308+
* Gets the current configuration to the border router.
309+
*
310+
* \param interface_id Network interface ID.
311+
* \param configuration_ptr Configuration structure.
312+
*
313+
* \return 0, Configuration parameters set.
314+
* \return <0 Parameter set failed.
315+
*/
316+
int ws_bbr_configuration_get(int8_t interface_id, bbr_configuration_t *configuration_ptr);
317+
318+
/**
319+
* validate Border router configuration
320+
*
321+
* Minor validation is done to parameters.
322+
* Full validation must be done at application level.
323+
*
324+
* \param interface_id Network interface ID.
325+
* \param configuration_ptr Configuration structure.
326+
*
327+
* \return 0, Configuration parameters set.
328+
* \return <0 Parameter set failed.
329+
*/
330+
int ws_bbr_configuration_validate(int8_t interface_id, bbr_configuration_t *configuration_ptr);
331+
332+
/**
333+
* Sets RPL parameters (DEPRECATED)
334+
* Use ws_bbr_configuration_set instead.
274335
*
275336
* Sets RPL DIO trickle parameters.
276337
*
@@ -285,7 +346,8 @@ int ws_bbr_ext_certificate_validation_set(int8_t interface_id, uint8_t validatio
285346
int ws_bbr_rpl_parameters_set(int8_t interface_id, uint8_t dio_interval_min, uint8_t dio_interval_doublings, uint8_t dio_redundancy_constant);
286347

287348
/**
288-
* Gets RPL parameters
349+
* Gets RPL parameters (DEPRECATED)
350+
* Use ws_bbr_configuration_get instead.
289351
*
290352
* Gets RPL DIO trickle parameters.
291353
*
@@ -300,7 +362,8 @@ int ws_bbr_rpl_parameters_set(int8_t interface_id, uint8_t dio_interval_min, uin
300362
int ws_bbr_rpl_parameters_get(int8_t interface_id, uint8_t *dio_interval_min, uint8_t *dio_interval_doublings, uint8_t *dio_redundancy_constant);
301363

302364
/**
303-
* Validate RPL parameters
365+
* Validate RPL parameters (DEPRECATED)
366+
* Use ws_bbr_configuration_validate instead.
304367
*
305368
* Validates RPL DIO trickle parameters.
306369
*

0 commit comments

Comments
 (0)