Commit Graph

12621 Commits (e20d35df27059e8ab5ea0289cf4cb74bb0616a25)

Author SHA1 Message Date
Russ Butler 110213ad09 Prevent DeepSleepLock from leaving sleep locked
Add _lock_count to DeepSleepLock and use this to prevent deep sleep
from staying locked when the DeepSleepLock objected is destroyed after
an unbalanced number of calls to lock and unlock.
2017-10-06 14:12:48 +01:00
Juhani Puurula 8dbedf6bc0 Nanostack v6.2.2 2017-10-06 14:12:48 +01:00
Russ Butler c4822ecd07 Revert #5006 - Extends test set for Ticker class
This commit reverts commit c1c0f1ea57
because it causes nightly builds to fail. This is because extra tests
added in tests-mbed_drivers-ticker fail on some targets, such as the
KL46Z, MAX32625MBED, MAX32630FTHR, NCS36510, NRF51 and NRF52_DK.
2017-10-06 14:12:47 +01:00
Russ Butler 8a683a4ccc Fix sleep lock underflow in LowPowerTimer
If a LowPowerTimer is started and then goes out of scope then a
deep sleep lock underflow can occur. This is because the
the variable '_lock_deepsleep' is checked when starting the timer
but is not checked in the destructor, which unconditionally releases
the deep sleep lock.
2017-10-06 14:12:47 +01:00
Mahadevan Mahesh 95b6acd095 Change LPC54608 to LPC546XX to include support for LPC54608/18/28
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-10-06 14:12:47 +01:00
jeromecoutant fc41c055f9 STM32F7 : RTC Wake Up Timer issue 2017-10-06 14:12:47 +01:00
Andrzej Puzdrowski 61ecc3ae0a Fix: DigitalIn of nRF5x was allocating GPIOTE channel
The allocation of GPIOTE channels for DigitalIn is unwanted behavior.
This caused early run-out of channels for InterruptPin.
This patch replacing input configuration that is using gpiote driver by configuration that is
using gpio hal.
2017-10-06 14:12:47 +01:00
Russ Butler 495c657e98 Remove direct use of us ticker from platform
Update platform code to use the ticker common layer rather than using
HAL us ticker directly. This both ensures that the underlying ticker
is properly initialized and that the value read is in microseconds with
full 32-bit range.
2017-10-06 14:12:47 +01:00
Russ Butler b5fe12942a Initialize the HAL ticker on first read
Initialize the ticker on the first call to ticker_read* if the
ticker has not been initialized already.
2017-10-06 14:12:47 +01:00
bcostm 3f8097dc63 Add FREEZE_TIMER_ON_DEBUG condition
In order to give the choice to enable or not the timer freeze on stop/breakpoint.
This has to be defined in the mbed_app.json file for example.
2017-10-06 14:12:47 +01:00
bcostm 485b4e8ce8 Add freeze timer on debug for all STM32 devices
This is a continuation of the work done on the STM32F401xE devices only.
2017-10-06 14:12:47 +01:00
Deepika 8c44554a6c Added RTX5 context switcher files 2017-10-06 14:12:46 +01:00
Maciej Bocianski 651e3fceb9 Doxygen comment fix for Thread class 2017-10-06 14:12:46 +01:00
jeromecoutant 02fccf3b9a STM32 : Disable HSE XTAL choice from the default clock source 2017-10-06 14:12:46 +01:00
Jimmy Brisson 4d20eb5998 Move IAR flag passing to constructor 2017-10-06 14:12:46 +01:00
Jimmy Brisson d5893d1ef4 Check for flag passing in toolchain constructor 2017-10-06 14:12:46 +01:00
Martin Kojtal 8c8ac1cfd9 EFM32: fix fire interrupt (set flags)
There's overflow counter that needs to be 0, and
CC0 flag set.

Fixes #5051
2017-10-06 14:12:46 +01:00
Mahadevan Mahesh 982eb08e19 RTC HAL: Allow writing 0 to the seconds register
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-10-06 14:12:46 +01:00
Mahadevan Mahesh ee2c0c8811 LPC54608: Swap LED pin connections to match naming on the board
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-10-06 14:12:46 +01:00
Viller Hsiao ab85fd710e Enable access to kernel tick information in ISR
The osKernelGetTickCount() is the only function to get kernel tick information,
however it's not allowed to access in ISR.

It's already enabled in API v2.1.1.
2017-10-06 14:12:46 +01:00
mbedNoobNinja b0e7e6e2b2 "ds5_5 & e2studio export fix" 2017-10-06 14:12:46 +01:00
Mika Leppänen 7170882077 Mapped lwip buffer error to nsapi no memory error 2017-10-06 14:12:46 +01:00
Kevin Gilbert 908e134912 Adjust whitespace in Odin PinNames file to fit verbose LED pin mappings 2017-10-06 14:12:46 +01:00
Maciej Bocianski 617341a797 Extends test set for Ticker class 2017-10-06 14:12:46 +01:00
Przemyslaw Stekiel 141fb38184 Enable deepsleep for low power Ticker and low power Timer.
Fix for issue #5076.
2017-10-06 14:12:46 +01:00
Kevin Bracey b51c369846 UARTSerial: Avoid readable() ambiguity
UARTSerial inherits both FileHandle::readable() [public] and
SerialBase::readable() [private], so calling readable() on a UARTSerial
object produces an ambiguous member error.

Add using declarations to direct towards the FileHandle versions of
readable and writable.

There's currently no ambiguity for writable, as SerialBase uses the
spelling 'writeable', but add a using directive for that anyway, in case
SerialBase gains 'writable' later.
2017-10-06 14:12:46 +01:00
Sarah Marsh 47372eeaec update domain name to os.mbed.com 2017-10-06 14:12:46 +01:00
Sarah Marsh e23567ece5 Turn off Odin testing by default 2017-10-06 14:12:45 +01:00
Sarah Marsh 36274a0307 Add new Odin configuraiton to remove emac device_has 2017-10-06 14:12:45 +01:00
Sarah Marsh fddd81f96d Use ethernet as default test configuration for Odin netsocket tests 2017-10-06 14:12:45 +01:00
Sarah Marsh 135061c051 Add copyright headers and use mbed error to skip tests without network config files 2017-10-06 14:12:45 +01:00
Sarah Marsh 4da41d7fb8 Remove LWIP tests 2017-10-06 14:12:45 +01:00
Sarah Marsh 174ed07013 Move test config keys out of targets.json
Change TestConfig class methods to module methods
2017-10-06 14:12:45 +01:00
Sarah Marsh 22138f31ee Add ETHERNET and ODIN_WIFI to odin device has. Add odin WiFi test configuration 2017-10-06 14:12:45 +01:00
Sarah Marsh c4d0357646 Use default mbed-os test configuration if no app_config is supplied 2017-10-06 14:12:45 +01:00
Sarah Marsh 47f02e7972 Use only one flag for test configuration file
Tools will figure out if user passed in a custom path (to indicate configration file for module) or whether they used a keyword (to indicate they'd like to use an mbed OS configuration)
2017-10-06 14:12:45 +01:00
Sarah Marsh 67589d53f3 Add option to add a configuration file for modules 2017-10-06 14:12:45 +01:00
Sarah Marsh d7e380e4db Allow tools to use networkinterface configs in tests 2017-10-06 14:12:45 +01:00
Sarah Marsh d7080f49d4 Add netsocket tests 2017-10-06 14:12:45 +01:00
Jimmy Brisson d3d27a9631 Exclude libraries and tests from coverage numbers 2017-10-06 14:12:45 +01:00
Przemyslaw Stekiel 77bc5c80f5 Move clock() function from mbed_rtc_time.cpp to mbed_retarget.cpp. 2017-10-06 14:12:45 +01:00
Martin Kojtal cfe6497080 InterruptIn: callback to NULL clean-up
As we can check if callback was attached, we use NULL assigment.
2017-10-06 14:12:45 +01:00
mbedNoobNinja 26c552d1d0 CAN Extended mode fix 2017-10-06 14:12:45 +01:00
Maciej Bocianski da84e114c0 Ticker class description update - small interval warning 2017-10-06 14:12:45 +01:00
Akos Kiss 2fd13bffca Add flush to the BLE UART Service
If only buffer-full events and LF characters trigger the flush of
the send buffer then only line-based communication can be
implemented over the BLE UART Service. This patch extends the
service API by adding an explicit `flush` method to force sending
the buffer contents, thus enabling protocols with short (e.g.,
single character) messages.
2017-10-06 14:12:44 +01:00
Christopher Haster 93d78c6218 fs: Fix dir open during failure condition
Should leave the Dir in an openable state, currently does not
since it thinks it's in use by the fs it failed to open on.
2017-10-06 14:12:44 +01:00
jeromecoutant 27e5586b32 STM32L432KC: increase RAM size from 48k to 64k
WARNING: you have to update ST-Link FW to V2J29M18
http://www.st.com/en/development-tools/stsw-link007.html
2017-10-06 14:12:44 +01:00
Laurent MEUNIER f598165485 STM32: Lock / Unlock flash for each operation
Rather than Unlocking flash during flash object creation, and leaving
the flash possibly continuously unlocked a(s object might bever be freed),
we decide to Unlock then Lock again at each erase or program call.
2017-10-06 14:12:44 +01:00
Christopher Haster af22fd3147 cb: Fixed uninitialized memory used for equality check
Fixed by zeroing the memory. A more "c++ correct" approach
may be to add an additional op for equality, and use the "=="
operator on the F type in the generate function. But this adds
the requirement that F supports equality.
2017-10-06 14:12:44 +01:00
Martin Kojtal a659094f01 PWMOut: lock deesleep addition
As PWMOut in most cases depend on high speed freq clock, it should lock deepsleep while active.
2017-10-06 14:12:44 +01:00