Commit Graph

17291 Commits (mbed-os-5.9)

Author SHA1 Message Date
Qinghao Shi 341f4b45e3 add disable interrupt function in us_ticker_free() 2018-06-29 17:10:17 +01:00
Qinghao Shi e6c3ad43bb update us_ticker driver and revert CMSDK headers changes 2018-06-29 17:10:17 +01:00
Qinghao Shi 537afa388c Enable new HAL us_ticker API on fast model MPS2 platform 2018-06-29 17:10:17 +01:00
Kari Haapalehto 1b18393b21 Add binary drivers for MTB_MXCHIP_EMW3166 2018-06-29 17:10:17 +01:00
ben 518ac5adb7 update pack index 2018-06-29 17:10:17 +01:00
Laurent MEUNIER 207dbb2ee2 STM32: Reduce HAL_deepsleep stack usage
There are cases where a call hal_deepsleep would overflow the idle task
stack, especially in developper or debug profile.

In order to avoid this case, we split ForceClockOutofDeepSleep
into two separate functions the two structure RCC_ClkInitStruct and
RCC_OscInitStruct are not allocated at the same time.
2018-06-29 17:10:17 +01:00
deepikabhavnani 15553bdf93 Suppress warning for IAR compiler as well 2018-06-29 17:10:17 +01:00
bcostm 9cd91a6868 fix hash alignment of F2, F7, L4 2018-06-29 17:10:17 +01:00
Mika Leppänen 787ea51bad K64F, K66F: Update the ENET PHY driver
PHY init and autonegotation is split into own functions.
2018-06-29 17:10:17 +01:00
Mika Leppänen f1416c76fa Added delay to K64F/K66F ethernet TX when all descriptors are in use
Currently, if all TX descriptors are in use and IP stack calls K64F/K66F
ethernet driver link out, link out drops the packet. Added 10ms delay
to link out to wait for a descriptor to become available before dropping
the packet.
2018-06-29 17:10:17 +01:00
Mika Leppänen 9d062c0352 Non-blocking K64F/K66F ethernet power up
Changed K64F/K66F power up to return without waiting for link up i.e. for
the ethernet cable to be connected. This is needed for non-blocking use
of driver e.g. for using the driver from event queue.
2018-06-29 17:10:17 +01:00
Mika Leppänen 3e4076a5a5 Asynchronous DNS greentea tests
Added tests for asynchronous DNS.
2018-06-29 17:10:17 +01:00
Seppo Takalo 0b7e21a793 Provide default WiFi interface for Ublox EVK ODIN W2 2018-06-29 17:10:17 +01:00
Seppo Takalo e858b98073 Provide default WiFI interface for REALTEK_RTL8195AM 2018-06-29 17:10:17 +01:00
Kevin Bracey 41335ad3e9 IAR: Suppress C "bypasses initialization" warning
By default IAR generates "transfer of control bypasses initialization"
warnings for C code - it's a legal construct that frequently occurs when
doing Linux-style "goto error". Many occurrences in Nanostack.

Suppress the warning for C only, to align with GCC and ARMCC. Have to
take care not to put it in the "common" section, as this would suppress
it for C++, where it actually is illegal.
2018-06-29 17:10:17 +01:00
Jimmy Brisson ed43eab65d Allow hex BL, SD and application merging 2018-06-29 17:10:17 +01:00
Hasnain Virk 600efe9906 Remaining style fixes 2018-06-29 17:10:17 +01:00
Hasnain Virk e8f9f4d9f2 Adding valid frequency check for RXParamSetup cmd
We must check for a valid value of a frequency being sent
by the network server.
2018-06-29 17:10:17 +01:00
Hasnain Virk 6ab0c0b688 Adding port in trace & streamlining continuous RX2 2018-06-29 17:10:17 +01:00
Hasnain Virk 2db1b9a01d Queuing the automatic uplink
If the automatic uplink is sent directly the call-stack becomes larger than 1K
which may cause serious problems in debug builds. Just to have a respite between
RX and TX we queue an event for the automatic uplink rather than directly undergoing
an automatic uplink.
2018-06-29 17:10:17 +01:00
Hasnain Virk d10dee1449 Adding precise timing for receive delays
RX1 and 2 delays needed to be more precise and aggregate tx time was
drifiting because of timing difference between actual tx interrupt and
our processing of that interrupt ever so slightly.

We now take a timestamp of the tx interrupt and take a time diff while
instantiating delay timers. The timestamp is then used to update the aggregate
tx time.

Two new methods are introduced in the LoRaMac class which provide current
timing and current receive slot. These functions are used by LoRaWANStack
for its processing.
2018-06-29 17:10:17 +01:00
David Saada 38e8ac4617 Rename text region in ARM linker file for a few NXP CPUs 2018-06-29 17:10:17 +01:00
Teppo Järvelin 2cadd9d05c Cellular: fixed unit tests after rebase with latest changes. 2018-06-29 17:10:17 +01:00
Teppo Järvelin 33461805cb Cellular: Added power and sim greentea and unit tests. 2018-06-29 17:10:17 +01:00
Seppo Takalo cfe9225e4f Fix typo: WifiInterface -> WiFiInterface and add missing return.
Default WiFiInterface did not even build. And when it was fixed to build,
it was always returning NULL.
2018-06-29 17:10:17 +01:00
Seppo Takalo ecef1f55f7 Fix default interface selection by using correct macro names.
Code was written using MBED_CONF_DEFAULT_* but the mbed_lib.json file
that created these values is prefixed with "nsapi" and therefore
final macros are MBED_CONF_NSAPI_DEFAULT_*
2018-06-29 17:10:17 +01:00
ccli8 e5c9a095c6 Enlarge wait time in Greentea test function test_deepsleep
Original wait time is not enough for UART to flush out before deepsleep on some targets.
2018-06-29 17:10:17 +01:00
Mika Leppänen 3bc03e3f5d Changed DNS global class definitions to singletons
This saves memory on platforms without network interface.
2018-06-29 17:10:17 +01:00
Juho Eskeli 5dcd26503a Make MTB_ADV_WISE_1570 respect MBED_APP_START & enable bootloader 2018-06-29 17:10:17 +01:00
Keyur Hariya a7b8ccc65d Rename files to fix warning
"aes.c" file name conflict in Maxim platform and mbedtls.
2018-06-29 17:10:17 +01:00
Mika Leppänen 50a79a6705 Disabled STM ethernet driver hardware checksum calculation
No need for driver level hardware IPv4/TCP/UDP/ICMP checksum insertion
since LWIP and nanostack handles those already.

Related to issue: https://github.com/ARMmbed/mbed-os/issues/7227
2018-06-29 17:10:17 +01:00
bcostm de5985b4da Remove text related to channel2 2018-06-29 17:10:17 +01:00
bcostm 4094ebc8a6 Add comments for HAL_InitTick function 2018-06-29 17:10:17 +01:00
Jan Jongboom 322a1546c5 Spelling error in fault handler 2018-06-29 17:10:17 +01:00
Edmund Hsu de135d727a Enable COG boards flash algo 2018-06-29 17:10:17 +01:00
Edmund Hsu 6e9d1ac78d Enable COG boards instruction cache 2018-06-29 17:10:17 +01:00
Vincent Coubard 8f29bf5b9e Nordic BLE: Accept connection parameter update
A peer device that sends a connection parameter update may get block if it doesn't receive a response.

This patch accept the peer request unconditionnally. At some point this event will be managed by the application.
2018-06-29 17:10:17 +01:00
Mahesh Mahadevan fa42c72f90 LPC54628: Update the ADC clock divider based on the input clock source
1. Problems were seen on the LPC54628 as the ADC clock source was too
   high
2. Moved the pin configuration to set Analog mode to the end of the
   function

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-06-29 17:10:17 +01:00
Mika Leppänen 9fdb9a1ac7 Added long echo sequence test to EMAC tests
Test echoes 50000 random length ethernet frames between CTP echo
server and device.
2018-06-29 17:10:17 +01:00
Maciej Bocianski cecd0c3171 NRF52_DK: SLEEP enable 2018-06-29 17:10:17 +01:00
Jimmy Brisson 44bf7d6dd5 Force small lib usage when using uARM tc 2018-06-29 17:10:17 +01:00
Jarno Lamsa 8cc8b813f1 Tolerate packet loss up to 30% in udp echo tests 2018-06-29 17:10:17 +01:00
David Saada dc3092fd9a Support erasing of more than one erase unit in the exhaustible block device 2018-06-29 17:10:17 +01:00
Jimmy Brisson 2c4a868734 Correct "defalut" typo 2018-06-29 17:10:17 +01:00
Jimmy Brisson 51708bcd76 Compute ARM_STD and ARM_MICRO labels with target attrs 2018-06-29 17:10:17 +01:00
Jimmy Brisson 2f128459b5 Heed default_lib in arm compiler 2018-06-29 17:10:17 +01:00
Jimmy Brisson ad016f43b9 Correct supported check of uvision to include uARM 2018-06-29 17:10:17 +01:00
Kevin Bracey 1fde01c243 Add API to read Thread EUI-64
Previously get_mac_address on a ThreadInterface returned the EUI-64
reported by the radio driver. This was required for commissioning, but
was inconsistent with other interfaces, and the API concept.

5.9.0 inadvertently changed this so that get_mac_address returned the
actual MAC address used by the radio, which is a hash result of the
EUI-64 for Thread.

The original "return the EUI-64" form was somewhat faulty, as
get_mac_address would not return the EUI-64 set by set_device_eui64() or
another mechanism before connect() was called.

Rather than revert to old behaviour, add a new API to get the device
EUI-64 to ThreadInterface, alongside the existing set API.
2018-06-29 17:10:17 +01:00
Antti Yli-Tokola b60abe1c3b Update mbed-coap to version 4.4.4
Fixes one error: IOTCLT-2638 Hardfault during reconnection retry with Thread
2018-06-29 17:10:17 +01:00
Cruz Monrreal 03196b244e
Merge pull request #7228 from ARMmbed/release-candidate
Release candidate for mbed-os-5.9.1
2018-06-15 16:52:13 -05:00