Skip to content

Release candidate for mbed-os-5.8.3 #6697

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 110 commits into from
Apr 24, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
5282d37
Add new target
Feb 13, 2018
d2fd74b
Fix assembly file extension
Apr 4, 2018
bb56e15
Adding USI WM-BN-BM-22 as a new target
Mar 29, 2018
4dbd77a
Remove irrelevant comments
Mar 29, 2018
ad411b9
Use temporarily MSI or HSI when exiting Deep Sleep
LMESTM Mar 28, 2018
55f1851
Add delay to let clock stabilize when out of deep sleep
LMESTM Apr 6, 2018
4946802
Style fix
LMESTM Apr 6, 2018
da353a6
Code::Blocks project file exporter
Mar 27, 2018
ff488cf
some modifications from review
Mar 27, 2018
e006e27
remove NCS36510 specific changes from this branch
Mar 27, 2018
73a52eb
copy ncs36510addfib.py into project root, because it cannot be relied…
Mar 27, 2018
0b11c62
skip -c, sort compiler options and file list
Apr 3, 2018
60becff
exporter: properly export libraries
Apr 4, 2018
b0ed381
proper compile flags for Release target; add fib/trim files to .mbedi…
Apr 5, 2018
f60cc14
generate .mbedignore files in bin and obj to prevent mbed compile fro…
Apr 6, 2018
0e49953
Correct armc6 detection logic
theotherjimmy Apr 5, 2018
0b402f9
Add an NV_SEED test to the config adjustment script
Mar 29, 2018
1a52909
Move the new check into the end of the previous line
Mar 29, 2018
cd2477f
cellular: ATHandler send delay
Apr 9, 2018
6a5cd54
cellular: doxygen correction
Apr 9, 2018
f3afbae
remove MODULE_UBLOX_ODIN_W2 from targets.json
Mar 29, 2018
a4f44c4
replace tab with spaces
Apr 9, 2018
12eaf40
add ADC_AN0-2 mapped on PA_0-2
ithinuel Apr 5, 2018
b2ace04
Remove MPS2 M1
theotherjimmy Apr 5, 2018
41050c1
Fixed Travis rate-limit issue with Github requests
geky Apr 7, 2018
26e647e
DISCO_F769NI: set clock_source to USE_PLL_HSE_EXTC
bcostm Apr 9, 2018
5286b78
CM3DS: enable TRNG with open-source TZ-TRNG driver
hug-dev Dec 13, 2017
2e1c8ca
PR template: fix tick definition
0xc0170 Apr 12, 2018
4129825
Setting up channels for AU915
Apr 11, 2018
f6a3f63
Update mbed-coap to version 4.4.2
Apr 12, 2018
9692f40
Add iar export support for STM32L151CC
Apr 13, 2018
49bd2db
rtl8195am - fix excessive compiler warnings
tung7970 Apr 13, 2018
dc2be3a
Cellular: fixed athandler unit tests.
Apr 12, 2018
0f908e4
Switch to using ip_addr_isany_val
Apr 13, 2018
d224665
Initial work was for unsigned-signed comparison fix. Current work fix…
Apr 11, 2018
7166aa7
Revert to original fix concentrating on type correctness
Apr 12, 2018
fe2d60a
Drop usage of ilen, just use len and cast it to int32_t as appropriate
Apr 13, 2018
59e09ed
Make the atomic_clr_u32 conditional use raw values rather than comput…
Apr 13, 2018
e9d510b
Extend changes to other STM32 devices that have the PCD_WriteEmptyTxF…
Apr 13, 2018
d86cb5d
Rework us_ticker and rtc_api/lp_ticker
Apr 9, 2018
fac4ed0
Remove automatic I2C stop after each read
Apr 9, 2018
a6cc79f
Rework us_ticker and rtc_api/lp_ticker | Fix compiler warnings for sp…
Mar 9, 2018
3a0b1db
Revert "Rework us_ticker and rtc_api/lp_ticker | Fix compiler warning…
Apr 12, 2018
e522543
Rework us_ticker and rtc_api/lp_ticker
Apr 12, 2018
1be90c2
Fix compiler warning for spi_api
Apr 12, 2018
684671c
Add new target MTB_ADV_WISE_1530.
KariHaapalehto Apr 11, 2018
9a2b701
STM32 : correct compilation warnings
Mar 10, 2018
ad99b88
STM32F0 : correct compilation warnings
jeromecoutant Apr 11, 2018
7e68d28
STM32F1 : correct compilation warnings
jeromecoutant Apr 11, 2018
48a56ba
STM32F2 : correct compilation warnings
jeromecoutant Apr 11, 2018
d505425
STM32F3 : correct compilation warnings
jeromecoutant Apr 11, 2018
3fdee88
STM32F4 : correct compilation warnings
jeromecoutant Apr 11, 2018
452dbbc
STM32F7 : correct compilation warnings
jeromecoutant Apr 11, 2018
8fb7cbe
STM32L0 : correct compilation warnings
jeromecoutant Apr 11, 2018
cc5b957
STM32L1 : correct compilation warnings
jeromecoutant Apr 11, 2018
d9f9750
STM32L4 : correct compilation warnings
jeromecoutant Apr 11, 2018
815f382
LPC4088: Fix hardfault occuring after power-cycle
arebert Apr 11, 2018
62eab1e
Add mbed5 build support for LPC11C24
Apr 3, 2018
54ce719
Change detault output_ext for LPC11C24 to hex (for flashmagic)
Apr 9, 2018
24496cb
Introduce SPI_ENABLE_SYNC/SPI_DISABLE_SYNC to simplify enable/disable…
ccli8 Mar 26, 2018
cbdf061
Use vector rather than SPI_CTL_SPIEN_Msk to judge if asynchronous tra…
ccli8 Mar 26, 2018
f0b037d
Fix SPI DMA transfer
ccli8 Mar 26, 2018
a35d547
Refine SPI code
ccli8 Mar 26, 2018
b5f23ec
Remove dead code with '#if 0' in SPI
ccli8 Apr 9, 2018
5db1bfc
MCUXpresso: Fix deepsleep implementation for Kinetis parts
mmahadevan108 Mar 26, 2018
89dd8e2
LPC546XX: Fix deepsleep implementation
mmahadevan108 Mar 26, 2018
07974e7
MCUXpresso: Update Kinetis flash driver
mmahadevan108 Mar 27, 2018
42eb2c7
Adding @deprecated functions to the inline documentation of deprecate…
Mar 29, 2018
cac4cea
Fix Travis CI docs issues
Apr 2, 2018
3617101
Cleanup get_config imports
theotherjimmy Apr 9, 2018
7b1cb6d
Remove needless _exit call
theotherjimmy Apr 9, 2018
74469ef
Simplify config param printing logic
theotherjimmy Apr 9, 2018
b9c1fe4
Print macros in a readable way
theotherjimmy Apr 9, 2018
c1e24d8
Heed filters in macro printing
theotherjimmy Apr 9, 2018
6dda709
Shorten lines in get config
theotherjimmy Apr 9, 2018
44cbc0c
Improve SPI block write
Apr 9, 2018
65f8786
Fix indentation
Apr 12, 2018
779374a
Use pyelftools for Realtek post-build script
theotherjimmy Apr 12, 2018
64fdeae
STM32L496AG: Add IAR export
bcostm Apr 13, 2018
387ab11
MCUXpresso: Fix SDK LPC driver
mmahadevan108 Apr 16, 2018
bd5b9e1
MCUXpresso: Fix LPC I2C driver for byte operations
mmahadevan108 Apr 16, 2018
b1e12fa
Add BUTTON pin names for EV_COG_AD4050LZ and EV_COG_AD3029LZ
Apr 17, 2018
87381de
Optional hardware flow control for STDOUT
Apr 11, 2018
d611d7b
rtl8195am - fix i2c_api.c warnings
tung7970 Apr 17, 2018
80ca6ee
rtl8195am - fix log_uart_api.c warnings
tung7970 Apr 17, 2018
781829c
rtl8195am - fix pwmout_api.c warnings
tung7970 Apr 17, 2018
de59cce
rtl8195am - fix spi_api.c warnings
tung7970 Apr 17, 2018
b6c18a2
rtl8195am - fix osdep_service.c warnings
tung7970 Apr 17, 2018
2873f2c
rtl8195am - fix wifi_conf.c warnings
tung7970 Apr 17, 2018
c6279e2
rtl8195am - fix rtw_emac.cpp warnings
tung7970 Apr 17, 2018
04a2e92
rtl8195am - fix tcm_heap.c warnings
tung7970 Apr 17, 2018
e87cc1f
rtl8195am - fix lwip_intf.c warnings
tung7970 Apr 17, 2018
574f602
rtl8195am - fix wifi_promisc.c warnings
tung7970 Apr 17, 2018
fed1786
rtl8195am - fix dhcps.c warnings
tung7970 Apr 17, 2018
7f10afc
rtl8195am - fix wifi_util.c warnings
tung7970 Apr 17, 2018
72e7d60
LPC546XX: Add TRNG support
mmahadevan108 Feb 26, 2018
be172ab
Enable flow control in Greentea
Apr 17, 2018
0bfc5ca
Explicitly ignore return value or bare expression (macro expands to a…
Apr 11, 2018
1e4e656
Cellular: Updated doxygen for deprecated API's.
Apr 17, 2018
a716084
Copy edit CellularInterface.h
Apr 17, 2018
5499b37
Copy edit OnboardCellularInterface.h
Apr 17, 2018
6431ae2
Copy edit PPPCellularInterface.h
Apr 17, 2018
0286455
Copy edit UARTCellularInterface.h
Apr 17, 2018
790ca4d
littlefs: Fixed issue with lookahead trusting old lookahead blocks
geky Apr 6, 2018
86d049d
littlefs: Fixed lookahead overflow and removed unbounded lookahead po…
geky Apr 10, 2018
751d38f
Allow library configs to override target configs
theotherjimmy Apr 17, 2018
a89c821
Return correct configuration dict
theotherjimmy Apr 18, 2018
5ad1002
Use passed in target data everywhere when doing lib config
theotherjimmy Apr 18, 2018
ae62a9c
Update Mbed version block for patch release
adbridge Apr 20, 2018
ed4df0b
Merge pull request #6703 from 0xc0170/fix_kl27z_flash
Apr 23, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@

<!--
Required
Please tick only one of the following types. Do not tick more or change the layout.
Please add only one X to one of the following types. Do not fill multiple types (split the pull request otherwise) or
change the layout.

[X] Fix
[ ] Refactor
Expand Down
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ matrix:
# update status if we succeeded, compare with master if possible
- |
CURR=$(grep -o '[0-9]\+ cycles' prof | awk '{sum += $1} END {print sum}')
PREV=$(curl https://api.github.com/repos/$TRAVIS_REPO_SLUG/status/master \
PREV=$(curl -u "$MBED_BOT" https://api.github.com/repos/$TRAVIS_REPO_SLUG/status/master \
| jq -re "select(.sha != \"$TRAVIS_COMMIT\")
| .statuses[] | select(.context == \"travis-ci/$NAME\").description
| capture(\"runtime is (?<runtime>[0-9]+)\").runtime" \
Expand Down Expand Up @@ -193,7 +193,7 @@ matrix:
# update status if we succeeded, compare with master if possible
- |
CURR=$(tail -n1 sizes | awk '{print $1}')
PREV=$(curl https://api.github.com/repos/$TRAVIS_REPO_SLUG/status/master \
PREV=$(curl -u "$MBED_BOT" https://api.github.com/repos/$TRAVIS_REPO_SLUG/status/master \
| jq -re "select(.sha != \"$TRAVIS_COMMIT\")
| .statuses[] | select(.context == \"travis-ci/$NAME\").description
| capture(\"code size is (?<size>[0-9]+)\").size" \
Expand Down
6 changes: 6 additions & 0 deletions features/FEATURE_COMMON_PAL/mbed-coap/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

## [v4.4.2](https://github.com/ARMmbed/mbed-coap/releases/tag/v4.4.2)
**Closed issues:**
- IOTCLT-2469 CoAP UDP retransmission does not work for blocks after first one for requests (Eg. registration POST)

-[Full Changelog](https://github.com/ARMmbed/mbed-coap/compare/v4.4.1...v4.4.2)

## [v4.4.1](https://github.com/ARMmbed/mbed-coap/releases/tag/v4.4.1)
**Closed issues:**
- IOTCLT-2539 Block wise messaging call-backs not working logically
Expand Down
2 changes: 1 addition & 1 deletion features/FEATURE_COMMON_PAL/mbed-coap/module.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mbed-coap",
"version": "4.4.1",
"version": "4.4.2",
"description": "COAP library",
"keywords": [
"coap",
Expand Down
13 changes: 11 additions & 2 deletions features/FEATURE_COMMON_PAL/mbed-coap/source/sn_coap_protocol.c
Original file line number Diff line number Diff line change
Expand Up @@ -1732,8 +1732,17 @@ static sn_coap_hdr_s *sn_coap_handle_blockwise_message(struct coap_s *handle, sn
}

sn_coap_builder_2(dst_ack_packet_data_ptr, src_coap_blockwise_ack_msg_ptr, handle->sn_coap_block_data_size);

handle->sn_coap_tx_callback(dst_ack_packet_data_ptr, dst_packed_data_needed_mem, src_addr_ptr, param);

#if ENABLE_RESENDINGS
uint32_t resend_time = sn_coap_calculate_new_resend_time(handle->system_time, handle->sn_coap_resending_intervall, 0);
sn_coap_protocol_linked_list_send_msg_store(handle, src_addr_ptr,
dst_packed_data_needed_mem,
dst_ack_packet_data_ptr,
resend_time, param);
#endif

handle->sn_coap_protocol_free(dst_ack_packet_data_ptr);
dst_ack_packet_data_ptr = 0;

Expand Down Expand Up @@ -2053,13 +2062,13 @@ static sn_coap_hdr_s *sn_coap_handle_blockwise_message(struct coap_s *handle, sn
handle->sn_coap_tx_callback(dst_ack_packet_data_ptr,
dst_packed_data_needed_mem, src_addr_ptr, param);

#if ENABLE_RESENDINGS
#if ENABLE_RESENDINGS
uint32_t resend_time = sn_coap_calculate_new_resend_time(handle->system_time, handle->sn_coap_resending_intervall, 0);
sn_coap_protocol_linked_list_send_msg_store(handle, src_addr_ptr,
dst_packed_data_needed_mem,
dst_ack_packet_data_ptr,
resend_time, param);
#endif
#endif
handle->sn_coap_protocol_free(dst_ack_packet_data_ptr);
dst_ack_packet_data_ptr = 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@ void HAL_ETH_MspDeInit(ETH_HandleTypeDef* heth)
/* Disable the Ethernet global Interrupt */
NVIC_DisableIRQ(ETH_IRQn);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ void HAL_ETH_MspDeInit(ETH_HandleTypeDef* heth)
/* Disable the Ethernet global Interrupt */
NVIC_DisableIRQ(ETH_IRQn);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,4 @@ uint8_t mbed_otp_mac_address(char *mac)
memcpy(mac, _macAddr, 6);

return 1;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@ void HAL_ETH_MspDeInit(ETH_HandleTypeDef* heth)
/* Disable the Ethernet global Interrupt */
NVIC_DisableIRQ(ETH_IRQn);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@ void HAL_ETH_MspDeInit(ETH_HandleTypeDef* heth)
/* Disable the Ethernet global Interrupt */
NVIC_DisableIRQ(ETH_IRQn);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ void HAL_ETH_MspDeInit(ETH_HandleTypeDef* heth)
/* Disable the Ethernet global Interrupt */
NVIC_DisableIRQ(ETH_IRQn);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ void HAL_ETH_MspDeInit(ETH_HandleTypeDef* heth)
/* Disable the Ethernet global Interrupt */
NVIC_DisableIRQ(ETH_IRQn);
}
}
}
6 changes: 3 additions & 3 deletions features/FEATURE_LWIP/lwip-interface/lwip_stack.c
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ nsapi_error_t mbed_lwip_bringup_2(bool dhcp, bool ppp, const char *ip, const cha
if (lwip_blocking) {
if (sys_arch_sem_wait(&lwip_netif_linked, 15000) == SYS_ARCH_TIMEOUT) {
if (ppp) {
ppp_lwip_disconnect();
(void)ppp_lwip_disconnect();
}
return NSAPI_ERROR_NO_CONNECTION;
}
Expand All @@ -872,7 +872,7 @@ nsapi_error_t mbed_lwip_bringup_2(bool dhcp, bool ppp, const char *ip, const cha
if (!mbed_lwip_get_ip_addr(true, &lwip_netif)) {
if (sys_arch_sem_wait(&lwip_netif_has_any_addr, DHCP_TIMEOUT * 1000) == SYS_ARCH_TIMEOUT) {
if (ppp) {
ppp_lwip_disconnect();
(void)ppp_lwip_disconnect();
}
return NSAPI_ERROR_DHCP_FAILURE;
}
Expand Down Expand Up @@ -1135,7 +1135,7 @@ static nsapi_error_t mbed_lwip_socket_bind(nsapi_stack_t *stack, nsapi_socket_t
return NSAPI_ERROR_PARAMETER;
}

if (!ip_addr_isany(&ip_addr) && !mbed_lwip_is_local_addr(&ip_addr)) {
if (!ip_addr_isany_val(ip_addr) && !mbed_lwip_is_local_addr(&ip_addr)) {
return NSAPI_ERROR_PARAMETER;
}

Expand Down
1 change: 1 addition & 0 deletions features/cellular/UNITTESTS/at/athandler/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ TEST_SRC_FILES = \
../../stubs/mbed_poll_stub.cpp \
../../stubs/Timer_stub.cpp \
../../stubs/equeue_stub.cpp \
../../stubs/Kernel.cpp \

include ../../MakefileWorker.mk

Expand Down
2 changes: 1 addition & 1 deletion features/cellular/UNITTESTS/stubs/ATHandler_stub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ device_err_t ATHandler_stub::device_err_value;
Callback<void()> ATHandler_stub::callback = NULL;
uint8_t ATHandler_stub::resp_info_true_counter = false;

ATHandler::ATHandler(FileHandle *fh, EventQueue &queue, int timeout, const char *output_delimiter) :
ATHandler::ATHandler(FileHandle *fh, EventQueue &queue, int timeout, const char *output_delimiter, uint16_t send_delay) :
_nextATHandler(0),
_fileHandle(fh),
_queue(queue)
Expand Down
25 changes: 25 additions & 0 deletions features/cellular/UNITTESTS/stubs/Kernel.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Copyright (c) , Arm Limited and affiliates.
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "Kernel.h"

namespace rtos {

uint64_t Kernel::get_ms_count()
{
return 20;
}
}
20 changes: 19 additions & 1 deletion features/cellular/framework/AT/ATHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#ifdef MBED_CONF_RTOS_PRESENT
#include "rtos/Thread.h"
#endif
#include "Kernel.h"

using namespace mbed;
using namespace events;
Expand Down Expand Up @@ -58,7 +59,7 @@ static const uint8_t map_3gpp_errors[][2] = {
{ 146, 46 }, { 178, 65 }, { 179, 66 }, { 180, 48 }, { 181, 83 }, { 171, 49 },
};

ATHandler::ATHandler(FileHandle *fh, EventQueue &queue, int timeout, const char *output_delimiter) :
ATHandler::ATHandler(FileHandle *fh, EventQueue &queue, int timeout, const char *output_delimiter, uint16_t send_delay) :
_nextATHandler(0),
_fileHandle(fh),
_queue(queue),
Expand All @@ -68,6 +69,8 @@ ATHandler::ATHandler(FileHandle *fh, EventQueue &queue, int timeout, const char
_oobs(NULL),
_at_timeout(timeout),
_previous_at_timeout(timeout),
_at_send_delay(send_delay),
_last_response_stop(0),
_fh_sigio_set(false),
_processing(false),
_ref_count(1),
Expand Down Expand Up @@ -893,6 +896,8 @@ void ATHandler::resp_stop()
set_tag(&_resp_stop, OK);
// Reset info resp prefix
memset(_info_resp_prefix, 0, sizeof(_info_resp_prefix));

_last_response_stop = rtos::Kernel::get_ms_count();
}

void ATHandler::information_response_stop()
Expand Down Expand Up @@ -936,8 +941,21 @@ const char* ATHandler::mem_str(const char* dest, size_t dest_len, const char* sr

void ATHandler::cmd_start(const char* cmd)
{

if (_at_send_delay) {
uint64_t current_time = rtos::Kernel::get_ms_count();
uint64_t time_difference = current_time - _last_response_stop;

if (time_difference < (uint64_t)_at_send_delay) {
wait_ms((uint64_t)_at_send_delay - time_difference);
tr_debug("AT wait %llu %llu", current_time, _last_response_stop);
}
}

tr_debug("AT> %s", cmd);



if (_last_err != NSAPI_ERROR_OK) {
return;
}
Expand Down
6 changes: 5 additions & 1 deletion features/cellular/framework/AT/ATHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@ class ATHandler
* @param queue Event queue used to transfer sigio events to this thread
* @param timeout Timeout when reading for AT response
* @param output_delimiter delimiter used when parsing at responses, "\r" should be used as output_delimiter
* @param send_delay the minimum delay in ms between the end of last response and the beginning of a new command
*/
ATHandler(FileHandle *fh, events::EventQueue &queue, int timeout, const char *output_delimiter);
ATHandler(FileHandle *fh, events::EventQueue &queue, int timeout, const char *output_delimiter, uint16_t send_delay = 0);
~ATHandler();

/** Return used file handle.
Expand Down Expand Up @@ -196,6 +197,9 @@ class ATHandler
uint32_t _at_timeout;
uint32_t _previous_at_timeout;

uint16_t _at_send_delay;
uint64_t _last_response_stop;

bool _fh_sigio_set;

bool _processing;
Expand Down
7 changes: 6 additions & 1 deletion features/cellular/framework/AT/AT_CellularDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ ATHandler* AT_CellularDevice::get_at_handler(FileHandle *fileHandle)
atHandler = atHandler->_nextATHandler;
}

atHandler = new ATHandler(fileHandle, _queue, _default_timeout, "\r");
atHandler = new ATHandler(fileHandle, _queue, _default_timeout, "\r", get_send_delay());
if (atHandler) {
if (_modem_debug_on) {
atHandler->enable_debug(_modem_debug_on);
Expand Down Expand Up @@ -225,6 +225,11 @@ void AT_CellularDevice::set_timeout(int timeout)
}
}

uint16_t AT_CellularDevice::get_send_delay()
{
return 0;
}

void AT_CellularDevice::modem_debug_on(bool on)
{
_modem_debug_on = on;
Expand Down
2 changes: 2 additions & 0 deletions features/cellular/framework/AT/AT_CellularDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ class AT_CellularDevice : public CellularDevice

virtual void set_timeout(int timeout);

virtual uint16_t get_send_delay();

virtual void modem_debug_on(bool on);

virtual NetworkStack *get_stack();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,9 @@ CellularNetwork *TELIT_HE910::open_network(FileHandle *fh)
}
return _network;
}

uint16_t TELIT_HE910::get_send_delay()
{
return DEFAULT_DELAY_BETWEEN_AT_COMMANDS;
}

4 changes: 4 additions & 0 deletions features/cellular/framework/targets/TELIT/HE910/TELIT_HE910.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@

#include "AT_CellularDevice.h"

//the delay between sending AT commands
#define DEFAULT_DELAY_BETWEEN_AT_COMMANDS 20

namespace mbed {

class TELIT_HE910 : public AT_CellularDevice
Expand All @@ -32,6 +35,7 @@ class TELIT_HE910 : public AT_CellularDevice
public: // from CellularDevice
virtual CellularPower *open_power(FileHandle *fh);
virtual CellularNetwork *open_network(FileHandle *fh);
virtual uint16_t get_send_delay();
};
} // namespace mbed
#endif /* CELLULAR_TARGETS_TELIT_HE910_TELIT_HE910_H_ */
Loading