Commit Graph

16852 Commits (6e71c4ceba8b07766353ea17ec0b0e9749ead62c)

Author SHA1 Message Date
Przemyslaw Stekiel 6b9f91a519 Use lp_ticker.c for NRF51 and NRF52 boards 2018-06-29 17:10:17 +01:00
Przemyslaw Stekiel b3de87b62e Use common_rtc.h for NRF51 and NRF52 boards 2018-06-29 17:10:17 +01:00
Przemyslaw Stekiel 1f0f9c2257 NRF5x: Increase lp us ticker interrupt priority
Set the second highest user level, leaving the highest for UART (we are having constant overflows) and two levels below for everything else.
This should increase the timer accuracy.
2018-06-29 17:10:17 +01:00
Przemyslaw Stekiel 1e49e4d45c NRF5x: Add bug fix for the first timer read.
It has been noticed that first read value can not be trusted.
2018-06-29 17:10:17 +01:00
Przemyslaw Stekiel d6b7367bac Use common us_ticker.c for NRF51 and NRF52 boards 2018-06-29 17:10:17 +01:00
Przemyslaw Stekiel 80b100eef5 NRF51, NRF52: Implement us_ticker_free() function. 2018-06-29 17:10:17 +01:00
Przemyslaw Stekiel 9ecbc5b02b common_rtc_set_interrupt: Wrap <ticks_count> before comparisons
RTC counter is 24-bit. Upper layer handles counter size and wraps ticks count when interrupt is to be fired before passing it to common_rtc_set_interrupt(), but for consistency and safety reasons we can wrap it again in the NRF driver.
2018-06-29 17:10:17 +01:00
Przemyslaw Stekiel 97b4f65216 NRF5x: Remove duplicate lp ticker initialization from I2C, flash, trng. 2018-06-29 17:10:17 +01:00
Przemyslaw Stekiel ae5848e29a NRF52_DK: Use 32 bit counter for us ticker (instead 16 bit counter) 2018-06-29 17:10:17 +01:00
Qinghao Shi fa8ceef3bb add comments about TIMER modes and set TIMER2 off by default 2018-06-29 17:10:17 +01:00
Qinghao Shi e23bde94ac change us_ticker_inited to static 2018-06-29 17:10:17 +01:00
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