Commit Graph

19121 Commits (cee09b665600e353168cf2be39f7e8fa6d595ee3)

Author SHA1 Message Date
Hasnain Virk cee09b6656 Making sure that RX slots open after state change
After transmission we should change the state before invoking opening of
slots as we may start receiving in the rx slots and the state would
suddenly change from SENDING to RECEIVING without going through the
ACK_WAIT state (in case of CONFIRMED messages). Tests show that after
this slight adjustment, our number of ack retries have significantly
reduced.
2018-10-19 11:46:55 +01:00
Hasnain Virk a1260998b4 Adding QOS handling and fixing bugs for Class C
LinkADRReq mac command can be used by the network server to set a
certain level of QOS using NbTrans field which is applicable to
Unconfirmed traffic only for 1.0.2 spec.
This commit introduces mechanisms to facilitate this QOS. It means to
repeat an outgoing unconfirmed message NbTrans times without changing
its frame counter.

For class C, we have retired the ack_expiry_timer_for_class_c and have
replaced it with another timer which mimics the RX2 closure as in Class
A but doesn't actually close RX2 window. It's just a mechanism by which
the state machine is informed that the you can proceed forward, we have
not received anything in RX2 window either. This is needed as RX2
doesn't timeout in class C (i.e., the radio remains in continuous mode).
In addition to that we need to close any pending timers for Receive
windows after the MIC has passed and the Duplicate counter check has
also been passed.
2018-10-19 11:46:55 +01:00
Hasnain Virk 0413129fbf Adding check for ongoing automatic-uplink
Before going after an automatic uplink, we should check if there was an
automatic uplink already ongoing, i.e., the ack for the previous
automatic uplink cycle has not been received.
If there is we shouldn't queue the new automatic uplink and wait for
the previous Ack cycle to complete.
2018-10-19 11:46:55 +01:00
Hasnain Virk c648c7f011 Style correction
LinkADRReq parameters and certain parameters used camel case
which is not the recommended style.
2018-10-19 11:46:55 +01:00
Ganesh Ramachandran aff0b2d434 Removed IAR definition for TMPM4G9
TMPM4G9 device was added in IAR 8.30. Based on this, exporters should be disabled for now (not supported in 7.x version).
2018-10-19 11:46:55 +01:00
Ganesh Ramachandran ae18077a99 Implemented us_ticker free() & modified IAR stack 2018-10-19 11:46:55 +01:00
Ganesh Ramachandran 29e0e65b1f Added Support for TOSHIBA TMPM4G9 2018-10-19 11:46:55 +01:00
jeromecoutant a02f73d948 STM32L4 : sleep issue 2018-10-19 11:46:55 +01:00
bcostm 173190068b STM32: typo corrections 2018-10-19 11:46:55 +01:00
bcostm 344ff0f4ba STM32: fix issue with serial_is_tx_ongoing function 2018-10-19 11:46:55 +01:00
TomoYamanaka 9da1d4c975 Improve ARMCC linker script for Renesas boards
For Arm toolchain build, Mbed 2(classic) programs occur an unexpected error if there is "#include "mem_XXXX.h"" in the script file.
It seems that the linker script can't find the include file because "mem_XXXX.h" file is not in the same path with the linker script.
(Refer to Issue #6975.)
To address this issue, I remove inclusion processing and define the related macros at ARMCC linker script file.
2018-10-19 11:46:55 +01:00
ccli8 28538fb7ca Fix LED_GREEN naming error 2018-10-19 11:46:55 +01:00
Ron Eldor 78246e46d1 Change Mbed TLS platform error code and value
Change error from `MBEDTLS_PLATFORM_HW_FAILED` to
`MBEDTLS_PLATFORM_HW_ACCEL_FAILED` and the value to 0x70,
as the previous value cannot be used as a low level error code.
2018-10-19 11:46:55 +01:00
Yossi Levy cc09e069a0 Fixing unicode error in IAR compilation 2018-10-19 11:46:55 +01:00
Yossi Levy 4e019a646a Removing nvstore. adding back the option for configuration as in the external repo 2018-10-19 11:46:55 +01:00
Yossi Levy ca2076709d Fixing the order of component if more than one is included for a target. Revert deprecation of FlashIAPBlockDevice 2 argument constructor has this was a breaking change. This follows a similar change in the external flashiap-driver repo. 2018-10-19 11:46:55 +01:00
Sławek Piotrowski 50dd1eb950 Fix hard-fault when socket created using accept() is closed
When socket created  using accept() is closed by calling the close()
method, "delete this" is executed which triggers the destructor call
on TCPSocket which in turn calls close() once again. Because _stack
is already 0 this results in a hard-fault.

Add a check that skips the rest of the close() method is the _stack
is already 0.
2018-10-19 11:46:55 +01:00
Hasnain Virk 6404d94dce Making cancel_sending() API robust
If the packet is already handed over to the PHY layer, we shouldn't be
able to cancel that particular transmission. In addition to that if the
backoff timer is either not applied or has been deactivated, should end
up in no-op rather than having normal termination. A new error code has
been introduced to cover no-op cases. This error code replaces the
compliance test related error code which is no longer relevant.
clear_tx_pipe() does nothing if:
	- The stack cannot cancel TX (already handed over to PHY)
        - The backoff timer is not active at all
        - The event is disaptched to schedule

stop_sending() will only post process ongoin TX if the pipe was
definitely cleared.
2018-10-19 11:46:55 +01:00
kegilbert 5d795775da Remove protected members from doxy in Analog/Digital classes
- Add example snippets to Analog/Digital read/write overrides
2018-10-19 11:46:55 +01:00
Amanda Butler 71248e8769 Edit ATCmdParser.md
Make minor grammar and spelling edits.
2018-10-19 11:46:55 +01:00
deepikabhavnani 55a5e85aae Doc changes and rephrasing 2018-10-19 11:46:55 +01:00
Kevin Gilbert bf9931155a Remove protected class from EventQueue Doxy 2018-10-19 11:46:55 +01:00
Amanda Butler 60ab5d64ec Copy edit mbed_rtc_time.h
Copy edit existing text for U.S. spelling and consistent capitalization.
2018-10-19 11:46:55 +01:00
Kevin Gilbert d8c4d2c36b wich->which 2018-10-19 11:46:55 +01:00
Brian Esquilona 7b4d7a9110 Added bootloader bin license and config for DISCO_L475VG_IOT01A 2018-10-19 11:46:55 +01:00
TomoYamanaka 69595ddfc5 Improve frequency setting proc of Renesas SPI driver
If the specified frequency exceeds the upper limit and lower limit at SPI driver, an error is output, but this does not match policy with other renesas drivers. Thus I revises the processing as follows.
- If "hz" is maximum over, it is rounded by the maximum value.
- If "hz" is minimum under, it is rounded by the minimum value.
2018-10-19 11:46:55 +01:00
jeromecoutant e698722621 DISCO_F413ZH : explicit WIFI pins name 2018-10-19 11:46:55 +01:00
jeromecoutant c61bbdc1dd DISCO_F413ZH : set default Wifi module SPI state to inactive 2018-10-19 11:46:55 +01:00
mudassar-ublox 888ef5f6d8 error handling for socket create 2018-10-19 11:46:55 +01:00
Eman869 f427af229d Check LPUART clock source in STOP mode
Check LPUART clock source before enable it in STOP mode, only LSE could be enabled in STOP mode.
2018-10-19 11:46:55 +01:00
Jimmy Brisson abd5f21b73 Tools, memap: Silence warnings that we handled correctly
### Description

Memap will create a bunch of warnings about "Unknown object name" when
parsing a map file created for the RZ_A1H and the GR_Peach. Theses
warnings are sperious; the information in these sections does not belong
to an object file. This PR silences these warnings.

Fixes #6258

### Pull request type

    [x] Fix
    [ ] Refactor
    [ ] Target update
    [ ] Functionality change
    [ ] Breaking change
2018-10-19 11:46:55 +01:00
Ganesh Ramachandran bdc63c81a0 Added usticker feature 2018-10-19 11:46:55 +01:00
deepikabhavnani 711c67303a Signature to track memory allocations by wrapper functions.
Compilers allocate some section of memory without using wrapper function,
which is later freed when wrappers were initialized. Since the allocated
memory didn;t contain wrapper header the pointer got corrupt when calling to free.

This implementation of signature addition during malloc and signature check during
free helps in freeing the memory allocated by wrapper functions properly and
also the internal memory allocated by compilers (without malloc wrappers).
2018-10-19 11:46:55 +01:00
Deepika 5df269b50a Alignment of 8 is not required for additional header
malloc guarantees aligned memory. If we add an alignment here, we are adding
additonal unused 4 bytes. Each allocator has its own 4/8 byte header
(GGC / ARM have 4 bytes).

So if user request for 8 bytes of memory stats will add 8 + allocator 8.
However if we remove the alignment in stats header, allocator will consider
add 4 bytes to 12 byte request and zero padding.

It will be beneficial to leave the padding to allocator.
2018-10-19 11:46:55 +01:00
Przemyslaw Stekiel 62c0b409e5 Fix for issue #8214
Change the base time value to more realistic:
START_TIME = 1537789823 # GMT: Monday, 24 September 2018 11:50:23

This fix has been proposed by STM in order to enhance test efficiency.
Current test version did not detect problem with RTC reset on F1 family boards since the base time was too small.
2018-10-19 11:46:55 +01:00
Mahesh Mahadevan 51fba0d9a0 MCUXpresso: Add Flash support for KL43Z, KL82Z, KW41Z, K22F
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-10-19 11:46:55 +01:00
Amanda Butler 2fbb66e4d9 Copy edit Timer.h
Copy edit existing text for minor grammar issues.
2018-10-19 11:46:55 +01:00
Naveen Kaje d612a1be00 Timer.h: Update comments 2018-10-19 11:46:55 +01:00
Naveen Kaje 9435179d16 Timer.h: Remove protected attributes from rendering on docs site 2018-10-19 11:46:55 +01:00
Amanda Butler 15f7b6f010 Edit DeviceKey.h
Standardize tense across documents, and edit some existing text for phrasing.
2018-10-19 11:46:55 +01:00
deepikabhavnani 14d776f79e Updated doxygen comments 2018-10-19 11:46:55 +01:00
Amanda Butler 437d4cfdf9 Edit mbed_stats.h
Capitalize ID for consistency.
2018-10-19 11:46:55 +01:00
Brian Daniels 6074252049 Updating stats doc comments 2018-10-19 11:46:55 +01:00
Amanda Butler 9e7b67f778 Edit InterruptIn.h
Make minor grammar edits.
2018-10-19 11:46:55 +01:00
Naveen Kaje 01448df55a InterruptIn.h: Update comments 2018-10-19 11:46:55 +01:00
Naveen Kaje 7126f1e2b5 InterruptIn: Remove protected attributes from rendering on docs site 2018-10-19 11:46:55 +01:00
Amanda Butler 7200bb8918 Edit Ticker.h
Make minor copy edits to existing text.
2018-10-19 11:46:55 +01:00
Aashish chaddha 5f68d26950 improve ticker doc 2018-10-19 11:46:55 +01:00
Amanda Butler f145945e46 Copy edit changes to mbed_mem_trace.h
Delete extra spaces.
2018-10-19 11:46:55 +01:00
Senthil Ramakrishnan 2ef7fec409 Adding doxygen comments for mem trace enum 2018-10-19 11:46:55 +01:00