Commit Graph

19288 Commits (9a91e340042cd0786989eb50b34cf8dfcc71b62c)

Author SHA1 Message Date
kert d8771a57a3 Allow overriding build timestamp from env 2018-10-19 11:46:55 +01:00
ccli8 8108da4924 Fix SW2/SW3 interchange error in NUMAKER_IOT_M487 2018-10-19 11:46:55 +01:00
Janne Kiiskila 42da703998 Use wait_ms instead of wait(n)
Small space savings, the casting from int to float will bloat
the code a bit. Using wait(1.0f) for example would avoid it,
but seems a bit silly to use floats for anything unless
really needed (in embedded products).
2018-10-19 11:46:55 +01:00
Deepika 4f3ad7db35 Resolve build issues in test
mbed.h was added in test, via greentea and utest header files. 'mbed.h' is removed
from header files and required header file and namespace is added to CPP/C files
2018-10-19 11:46:55 +01:00
deepikabhavnani f3e12fab11 Greentea: Add required header file and namespace element instead add all
1. RTOS is needed only for Stack stats

Move+Add all required header files for RTOS into MBED_STACK_STATS_ENABLED
define. Also added 'using namespace'

2.  Add heap stats only when MBED_HEAP_STATS_ENABLED
2018-10-19 11:46:55 +01:00
Deepika 189889446b Netsocket: Add required header file and namespace element instead add all 2018-10-19 11:46:55 +01:00
Deepika 9c8c736e88 Nanostack: Add required header file and namespace element instead add all 2018-10-19 11:46:55 +01:00
Deepika 74832b3edd Framework: Add required header file and namespace element instead add all 2018-10-19 11:46:55 +01:00
Cruz Monrreal II a3c248a3af Pinned urllib3 version as something with 1.24 appears to be breaking other modules 2018-10-19 11:46:55 +01:00
Cruz Monrreal II 8377966f88 Added line in python testing to print pip modules in use 2018-10-19 11:46:55 +01:00
Mahesh Mahadevan 51f7f07ae8 MCUXpresso: Fix for the TRNG HAL driver
Apply the fix from K64F TRNG HAL driver.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-10-19 11:46:55 +01:00
RFulchiero f306241269 PortIn.h: Documentation improvements only * Improve function and parameter descriptions * Improve clarity of the example 2018-10-19 11:46:55 +01:00
Hasnain Virk fa1a6d27b8 Unit test fix for cancel_send()
PR 8299 went in but correct unit tests were not there.
This commit is adding proper unittests for 8299.
2018-10-19 11:46:55 +01:00
Hasnain Virk f6d50cc55d Unit Test Fixes for LoRaWAN
Missing methods are added.
Logic was broken at various places which needed to be fixed.
2018-10-19 11:46:55 +01:00
Hasnain Virk 15187b98a6 Fixing coverity findings
A couple of the coverity analysis findings are being treated here. For
the rest there will be a separate PR.
2018-10-19 11:46:55 +01:00
Hasnain Virk 13530d1feb Proper handling of RX1 frequency in rx_config
Previously, we weren't filling in RX1 frequecny in rx_window1_config
structure. However, everything worked as in LoRaPHY::rx_config() API
there was a check which filled in correct RX1 frequency.
Now we are filling in RX1 freq. properly while we are computing
parameters for RX1 window.
2018-10-19 11:46:55 +01:00
Hasnain Virk a72d83287d TX post-process for CONFIRMED UL in no-reception case
The idea behind the method post_process_no_reception() is to post
process any outgoing TX but we shouldn't do that if a CONFIRMED message
is outgoing and there are still some retries left.
2018-10-19 11:46:55 +01:00
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