Skip to content

Feature wifi rebase #2699

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 192 commits into from
Sep 14, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
192 commits
Select commit Hold shift + click to select a range
8de9f71
Create Jenkinsfile
miklis Aug 8, 2016
0da2ada
Update Jenkinsfile
miklis Aug 8, 2016
4e8bc3a
Update Jenkinsfile
miklis Aug 8, 2016
81b4af1
Update Jenkinsfile
miklis Aug 9, 2016
a0c8a09
Unify look of argument errors
theotherjimmy Aug 4, 2016
163fa59
Prevent traceback
theotherjimmy Aug 4, 2016
8e8ccee
KSDK: Updated version of the SAI driver to address code-size issues
mmahadevan108 Aug 22, 2016
38aeb4c
KSDK: Updated version for the flexcan driver
mmahadevan108 Aug 22, 2016
284117f
[NUCLEO_F207ZG] Add MBED5 capability
jeromecoutant Aug 23, 2016
6571f20
Refactored Jenkinsfile.
miklis Aug 25, 2016
076515c
Added define guards for SEQUENTIAL_FLASH_JOURNAL_MAX_LOGGED_BLOBS so …
Aug 25, 2016
9a5c152
Update Jenkinsfile
miklis Aug 25, 2016
45d25ed
Added support for cv-qualifiers in Callback class
geky Aug 18, 2016
c71e67f
Updated minor functionality of the Callback class
geky Aug 19, 2016
5c0f39f
Split callback test into multiple tests based on types
geky Aug 25, 2016
756a090
Added explicit void specialization in callbacks
geky Aug 25, 2016
022f821
Rewrote thread deprecation notices to help migration
geky Aug 25, 2016
c9db4ba
[STM32F1] Add asynchronous serial
svastm Aug 11, 2016
a2aadc2
[STM32F1] Enable asynchronous serial
svastm Aug 11, 2016
e68b5f9
[STM32F1] Add tests for asynchronous serial
svastm Aug 11, 2016
c7bf3fa
Allow an empty or mal-formed config to be passed to the config system
theotherjimmy Aug 29, 2016
eb11561
Add smoke test that builds example programs with mbed-cli
theotherjimmy Aug 29, 2016
95ee4f6
Use json for the example to target mapping and print failures
theotherjimmy Aug 29, 2016
78028a9
Move example tests to their own folder
theotherjimmy Aug 29, 2016
f7a1d1f
Move to feature filter for target and toolchain detection; print pass…
theotherjimmy Aug 29, 2016
dd07c52
Fix double free in NanostackInterface
c1728p9 Aug 29, 2016
506aa3d
lwip - Fixed handling of max sockets in socket_accept
geky Aug 29, 2016
db2738f
nsapi - Corrected handling of errors in TCPServer accept
geky Aug 29, 2016
c3130e5
lwip - Added check for previously-bound socket
geky Aug 29, 2016
270780c
Use pre_main symbol instead of software_init_hook
toyowata Aug 30, 2016
691555a
initial github issue and PR templates
Aug 9, 2016
acc3115
Move utest global serial object into a function.
pan- Aug 26, 2016
2bc5c3d
Move global Timeout object from utest_shim in static function.
pan- Aug 26, 2016
8fa239c
Move constant definitions of non POD object into cpp file.
pan- Aug 26, 2016
6d319c5
Construct control_t from a POD struct.
pan- Aug 26, 2016
7a6edda
Enhance compatibility between control_t and base_control_t:
pan- Aug 26, 2016
4bf28d4
Convert case_control to a POD.
pan- Aug 26, 2016
eed52a0
Replace default_handlers value by a reference.
pan- Aug 26, 2016
daa135a
Move defaults and handlers variable into a static function.
pan- Aug 26, 2016
df3e3b2
Fix scope of the serial variable.
pan- Aug 26, 2016
85bce14
Improve compatibility between base_control_t and control_t.
pan- Aug 26, 2016
a9d9987
Fix a rare case of imcompatibility between base_control_t and control_t.
pan- Aug 26, 2016
d889a60
[STM32] clean-up DEVICE features
Jul 8, 2016
dca48d7
[STM32F0] Make device.h a common file
Jul 8, 2016
0ac02a5
[STM32F1] Make device.h a common file
Jul 8, 2016
a5eaf15
[STM32F3] Make device.h a common file
Jul 8, 2016
de74ef1
[STM32F4] Make device.h a common file
Jul 8, 2016
5d25183
[STM32F7] Make device.h a common file
Jul 8, 2016
4f7a654
[STM32L0] Make device.h a common file
Jul 8, 2016
6c36a21
[STM32L1] Make device.h a common file
Jul 8, 2016
62841f3
[STM32L4] Make device.h a common file
Jul 8, 2016
498de9c
[STM32] Move RTC_LSI to macros instead of device_has
Aug 17, 2016
1ef06f5
Set size of callback irq array to IrqCnt
c1728p9 Aug 30, 2016
69431da
Add a test to check for init race conditions
c1728p9 Aug 26, 2016
ef45ef8
Fix GCC locks for lazy object initailization
c1728p9 Aug 26, 2016
6e223e3
Removing threaded_blink test (duplicate of basic rtos test)
bridadan Aug 30, 2016
f6c60d0
Adding timing drift host test
bridadan Aug 30, 2016
e678325
Modifying timing tests to use timing drift host test
bridadan Aug 30, 2016
0194135
[NUC472] Fix heap configuration error with armcc
ccli8 Aug 31, 2016
217b0da
small updates
Aug 31, 2016
cb4a7fa
Use greentea_serial SingletonPtr.
pan- Aug 31, 2016
b56201c
Fix TCPServer constructor
svastm Aug 31, 2016
6aab060
[HAL] Improve memory tracer
neilt6 Aug 31, 2016
284e9f8
[HAL] Fixed "intrinsic is deprecated" warnings
neilt6 Aug 31, 2016
1f0afeb
Allow command-line filtering of toolchains
theotherjimmy Aug 31, 2016
4b1dcd3
Allow filtering by target as well as by features
theotherjimmy Aug 31, 2016
64e71e2
Use IPV6 feature for filtering mesh, client, and sockets
theotherjimmy Aug 31, 2016
41ec0af
Update Docstring
theotherjimmy Aug 31, 2016
ac5c685
Use mbed-os 5 example instead of the mbed 2 one
theotherjimmy Aug 31, 2016
9eafc81
Fixed compiler warning suppression
neilt6 Aug 31, 2016
f983292
Separate the import and compile steps for better integration with Jen…
theotherjimmy Aug 31, 2016
bc4ead5
Adding ON Semiconductor copyright notice.
radhika-raghavendran Sep 1, 2016
07a2355
Reducing number of timeouts to decrease drift
bridadan Sep 1, 2016
4f4112b
Consolidating timer reads to reduce drift
bridadan Sep 1, 2016
3437829
return the number of failures from the script
theotherjimmy Sep 1, 2016
fd9d89a
retarget - fix uvisor header inclusion
0xc0170 Sep 2, 2016
2df2227
alloc wrappers - fix calloc wrapping for uvisor
0xc0170 Sep 2, 2016
cc3a382
Merge pull request #2384 from ARMmbed/jenkinsfile
sg- Sep 2, 2016
aa5990e
Update issue_template.md
jupe Sep 2, 2016
018f205
Update pull_request_template.md
jupe Sep 2, 2016
80f1d97
STM32F4xx - Add support of ADC channels 16, 17, 18
bcostm Aug 23, 2016
2f1fc9b
STM32F4xx - Add one more bit for channels field, declare ADC internal…
bcostm Aug 23, 2016
e294ce7
STM32F4xx - Add ADC_TEMP/VREF/VBAT pins
bcostm Aug 24, 2016
ee624a2
STM32F4xx - Align STM_PIN_DATA and STM_PIN_DATA_EXT macros
bcostm Aug 24, 2016
aa23b64
STM32F4xx - Align STM_PIN_DATA macro on ARCH_MAX too
bcostm Aug 24, 2016
8b9a6dc
Correctly providing directories to build_apis
bridadan Sep 2, 2016
fbf535b
Merge pull request #2607 from 0xc0170/fix_uvisor_memory_tracing
sg- Sep 2, 2016
85d7ff2
[MTM_MTCONNECT04S] Added support for MTM_MTCONNECT04S
bcc6 Sep 5, 2016
afd5070
[NUCLEO_F303ZE] Add CMSIS target
jamike Jul 7, 2016
e94cba3
[NUCLEO_F303ZE]Add Hal Target
jamike Jul 7, 2016
aae0b92
[NUCLEO_F303ZE] Add RTOS support
jamike Jul 7, 2016
c8d08bd
[NUCLEO_F303ZE] test / export scripts update
jamike Jul 7, 2016
9d3e34e
[NUCLEO_F303RE] fix build error
jamike Jul 7, 2016
91bb45b
STM32F2xx - Enable Serial Flow Control
bcostm Sep 5, 2016
5dcd546
Merge pull request #2393 from theotherjimmy/argument-dependencies
bogdanm Sep 5, 2016
83f669f
DISCO_L476VG - Add Serial Flow Control pins + add SERIAL_FC macro
bcostm Sep 5, 2016
d9ad7bb
This commit contains CFSTORE fixes for the following related issues:
simonqhughes Sep 5, 2016
b2f561a
Restoring swap code to cfstore_test_delete_all() after being previous…
simonqhughes Sep 5, 2016
caa4c4f
Use a SingletonPtr for the Timeout object in utest_shim.
pan- Sep 6, 2016
ac11d94
Test names not dependent on disk location of root
sarahmarshy Sep 6, 2016
fc6cd71
Updated USBDevice to use Callback
neilt6 Sep 6, 2016
ae01376
Updated USBHost for library changes
neilt6 Sep 6, 2016
f6a15fd
Refactor export subsystem
sarahmarshy Jul 20, 2016
7e2ca01
Update copyright
theotherjimmy Jul 26, 2016
cccc5f3
Accessing progen exporters directly
sarahmarshy Jul 26, 2016
0016ddf
progen exporter template
sarahmarshy Jul 27, 2016
f4a686f
Requirements update
sarahmarshy Jul 28, 2016
67fae3a
Allow exporting to in-memory zip file
theotherjimmy Jul 28, 2016
3e2526a
Made exporting safer
theotherjimmy Jul 29, 2016
36c750b
Reinstated the zip exporter
theotherjimmy Jul 29, 2016
e5de39e
Fix renaming issues in non-CI ides
theotherjimmy Aug 8, 2016
2196d50
Create projectfiles directory when exporting
sarahmarshy Aug 18, 2016
6686411
Set vpath correctly when exporting to projectfiles directory
theotherjimmy Aug 22, 2016
cadd233
Allow dict in addition to the other types of src_paths
theotherjimmy Aug 23, 2016
c550f9d
Fix some tracebacks, add zip exporter to the CLI
theotherjimmy Aug 23, 2016
b5c1899
Fix include paths for fragmented projects; remove deadcode
theotherjimmy Aug 24, 2016
a6be472
Add repo_dirs, repo_files, lib_builds, and lib_refs to zips
theotherjimmy Aug 24, 2016
7ee6213
Removed projectfiles directory. debug-info default option
sarahmarshy Aug 24, 2016
6564bda
Bump Progen version
theotherjimmy Sep 6, 2016
1473240
Fixing issue in timing host test and wait_us case
bridadan Sep 6, 2016
fb1fadd
add PTEx pins as option for SPI - for SD card on Hexiwear. Amend to …
Aug 30, 2016
2a2cf25
Merge pull request #2588 from bridadan/timing-tests-drift-refactor
sg- Sep 7, 2016
da3b07d
Merge pull request #2245 from theotherjimmy/exporter-refactor
sg- Sep 7, 2016
b49d7e4
Properly handle a thread which terminates itself
c1728p9 Sep 7, 2016
abbd71d
Add test case for thread self termination
c1728p9 Sep 7, 2016
d5e49ea
NUCLEO_F446ZE - Enable mbed5 release version
bcostm Sep 8, 2016
709ef59
Update pull_request_template.md
jupe Sep 8, 2016
cc55173
Use lp_timer to count time in the deepsleep tests
svastm Sep 8, 2016
a6b2731
Merge pull request #2496 from geky/callback-cv
sg- Sep 8, 2016
57ebf8b
Merge pull request #2548 from jamike/NUCLEO_F303ZE
sg- Sep 8, 2016
72b0d46
Merge pull request #2545 from marcuschangarm/flash_blob
sg- Sep 8, 2016
a7248c3
DELTA_DFBM_NQ620 platform porting
TsungtaWu Sep 9, 2016
994cece
[disco_f769ni] adding target
ohagendorf Aug 20, 2016
54adfe1
[disco_f769ni] adding rtos lib
ohagendorf Aug 20, 2016
3598af0
[disco_f769ni] adding to build_travis
ohagendorf Aug 20, 2016
95c5b78
[disco_f769ni] adding gcc_arm exporter definitions
ohagendorf Aug 20, 2016
05fc5f1
disco_f769 some rework ...
ohagendorf Aug 31, 2016
d0e2f1e
disco_f769 some rework ... (part II)
ohagendorf Aug 31, 2016
765aeb0
disco_f769ni adding ethernet init
ohagendorf Sep 8, 2016
6689db1
[MAX326xx] Removed echoing of characters and carriage return.
jeremybrodt Sep 9, 2016
aab1070
Use SingletonPtr for the internal variables defaults and handlers in …
pan- Sep 9, 2016
2c96001
Merge pull request #2575 from theotherjimmy/allow-empty-config
sg- Sep 9, 2016
44edcf5
Merge pull request #2130 from LMESTM/dev_stm32_device_h
sg- Sep 9, 2016
3de19ee
Merge pull request #2419 from svastm/serial_asynch_f1
sg- Sep 9, 2016
6c0ac21
Merge pull request #2521 from jeromecoutant/PR_F207ZG
sg- Sep 9, 2016
b1aebba
Merge pull request #2538 from bcostm/adcintch_stm32f4
sg- Sep 9, 2016
3bb149c
Merge pull request #2549 from geky/thread-clarification
sg- Sep 9, 2016
0128dd2
Merge pull request #2562 from c1728p9/init_race_condition
sg- Sep 9, 2016
b71bfd6
Merge pull request #2576 from theotherjimmy/example-regession
sg- Sep 9, 2016
b10e3a9
Merge pull request #2578 from c1728p9/fix_double_free
sg- Sep 9, 2016
3a35b85
Merge pull request #2583 from ARMmbed/github_template
sg- Sep 9, 2016
9514f1d
Merge pull request #2587 from maclobdell/master
sg- Sep 9, 2016
ae35fae
Merge pull request #2601 from radhika-raghavendran/master
sg- Sep 9, 2016
5ba3ab7
Merge pull request #2613 from bridadan/find-tests-directory-fix
sg- Sep 9, 2016
14f5647
Merge pull request #2643 from c1728p9/fix_thread_self_termination
sg- Sep 9, 2016
7dd1b04
Merge pull request #2651 from svastm/fix_lp_timer_test
sg- Sep 9, 2016
c50b5c6
Tools - Fix fill section size variation
tung7970 Sep 2, 2016
b5b6fdc
[MTM_MTCONNECT04S] Added gcc_arm template for export.
bcc6 Sep 10, 2016
e39932c
Merge pull request #2584 from c1728p9/array_size_count
sg- Sep 10, 2016
c518a61
Merge pull request #2582 from toyowata/master
sg- Sep 10, 2016
fb7ffcb
Merge pull request #2580 from geky/nsapi-bind-again
sg- Sep 10, 2016
a35cd7f
Merge pull request #2579 from geky/nsapi-max-socket-accept
sg- Sep 10, 2016
7198385
Merge pull request #2514 from NXPmicro/Updated_Drivers
sg- Sep 10, 2016
c1ee7fb
Merge pull request #2504 from ohagendorf/disco_f769_ii
sg- Sep 10, 2016
3806c87
Merge pull request #2559 from pan-/utest_globals_optimizations
sg- Sep 10, 2016
3cbfbbf
Merge pull request #2657 from jeremybrodt/serial_mod
sg- Sep 10, 2016
f1dd459
Merge pull request #2654 from TsungtaWu/master
sg- Sep 10, 2016
18ef428
Merge pull request #2645 from bcostm/mbed5_nucleo-f446ze
sg- Sep 10, 2016
bb8ad21
Merge pull request #2634 from neilt6/usbdevice-os-patch
sg- Sep 10, 2016
bf36319
Merge pull request #2633 from neilt6/usbdevice-callback-patch
sg- Sep 10, 2016
da5a19f
Merge pull request #2630 from sarahmarshy/patch-4
sg- Sep 10, 2016
5b90bf7
Merge pull request #2624 from simonqhughes/master
sg- Sep 10, 2016
7c72a22
Add test command switch for app config file
ConorPKeegan Aug 31, 2016
aafcf55
Add app config switch to options.py and make.py
ConorPKeegan Sep 1, 2016
ac51eb6
Add unit tests for app_config
ConorPKeegan Sep 2, 2016
9ac6294
Merge pull request #2623 from bcostm/serialfc_L4
sg- Sep 10, 2016
f6d7ee8
Merge pull request #2617 from bcostm/serialfc_F2
sg- Sep 10, 2016
8d54243
Merge pull request #2615 from bcc6/master
sg- Sep 10, 2016
fe8bd7d
Merge pull request #2597 from neilt6/neilt6-critical-patch
sg- Sep 10, 2016
b2ce50a
Merge pull request #2596 from neilt6/neilt6-memory-tracer-patch
sg- Sep 10, 2016
5c30c0f
Merge pull request #2594 from svastm/fix_tcp_server_constructor
sg- Sep 10, 2016
582da03
Merge pull request #2589 from OpenNuvoton/ccli8
sg- Sep 10, 2016
c3737b4
Merge pull request #2593 from ConorPKeegan/devel_app_config_switch
sg- Sep 10, 2016
e9d0fbd
Merge pull request #2604 from tung7970/fix-tools
sg- Sep 10, 2016
787a21f
Disable RTOS tests for STM32 8K targets
jeromecoutant Sep 12, 2016
2d2a4bc
8K RAM target is too small for RTOS support
jeromecoutant Sep 12, 2016
c3b9a74
travis: revove rtos support for NUCLEO_L053R8
jeromecoutant Sep 12, 2016
a929bbb
Fixing NCS36510 compile on Linux
bridadan Sep 13, 2016
dd5649d
Merge pull request #2678 from bridadan/fix-ncs36510-linux-compile
sg- Sep 13, 2016
24e1218
Merge pull request #2648 from jeromecoutant/PR_8K_RAM
0xc0170 Sep 13, 2016
af0f7e3
Change cthunk implementation + cm7 support
svastm Aug 23, 2016
e014b0f
Merge pull request #2522 from svastm/cthunk_cm7
0xc0170 Sep 14, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
48 changes: 48 additions & 0 deletions .github/issue_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
Note: This is just a template, so feel free to use/remove the unnecessary things

### Description
- Type: Bug | Enhancement | Question
- Related issue: `#abc`
- Priority: Blocker | Major | Minor

---------------------------------------------------------------
## Bug

**Target**
K64F|??

**Toolchain:**
GCC_ARM|ARM|IAR

**Toolchain version:**

**mbed-cli version:**
(`mbed --version`)

**meed-os sha:**
(`git log -n1 --oneline`)

**DAPLink version:**

**Expected behavior**

**Actual behavior**

**Steps to reproduce**

----------------------------------------------------------------
## Enhancement

**Reason to enhance or problem with existing solution**

**Suggested enhancement**

**Pros**

**Cons**

-----------------------------------------------------------------

## Question

**How to?**
39 changes: 39 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
Notes:
* Pull requests will not be accepted until the submitter has agreed to the [contributer agreement](https://github.com/ARMmbed/mbed-os/blob/master/CONTRIBUTING.md).
* This is just a template, so feel free to use/remove the unnecessary things

## Description
A few sentences describing the overall goals of the pull request's commits.


## Status
**READY/IN DEVELOPMENT/HOLD**


## Migrations
If this PR changes any APIs or behaviors, give a short description of what *API users* should do when this PR is merged.

YES | NO


## Related PRs
List related PRs against other branches:

branch | PR
------ | ------
other_pr_production | [link]()
other_pr_master | [link]()


## Todos
- [ ] Tests
- [ ] Documentation


## Deploy notes
Notes regarding the deployment of this PR. These should note any
required changes in the build environment, tools, compilers, etc.


## Steps to test or reproduce
Outline the steps to test or reproduce the PR here.
26 changes: 26 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// List of targets to compile
def targets = [
//"LPC1768",
//"NUCLEO_F401RE",
//"NRF51822",
"K64F"
]

// Map toolchains to compiler labels on Jenkins
def toolchains = [
//ARM: "armcc",
//IAR: "iar_arm",
GCC_ARM: "arm-none-eabi-gcc"
]

// Create a map of predefined build steps
stage "generate build steps for parallel execution"
def parallelSteps = mbed.createParalleSteps("mbed-os", targets, toolchains)

// Run build steps parallel, map as paramater
stage "build all targets"
mbed.compile(parallelSteps)

// Run testapps, mbed-os commit hash or master as parameter
stage "run mbed-os testapps"
mbed.runTestApps("${env.GIT_REVISION}")
106 changes: 106 additions & 0 deletions TESTS/host_tests/timing_drift_auto.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
"""
mbed SDK
Copyright (c) 2011-2013 ARM Limited

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""

from mbed_host_tests import BaseHostTest


class TimingDriftTest(BaseHostTest):
""" This test is reading single characters from stdio
and measures time between their occurrences.
"""
__result = None

# This is calculated later: average_drift_max * number of tick events
total_drift_max = None

average_drift_max = 0.05
ticks = []
start_time = None
finish_time = None
dut_seconds_passed = None
total_time = None
total_drift = None
average_drift = None

def _callback_result(self, key, value, timestamp):
# We should not see result data in this test
self.__result = False

def _callback_end(self, key, value, timestamp):
""" {{end;%s}}} """
self.log("Received end event, timestamp: %f" % timestamp)
self.notify_complete(result=self.result(print_stats=True))


def _callback_tick(self, key, value, timestamp):
""" {{tick;%d}}} """
self.log("tick! %f" % timestamp)
self.ticks.append((key, value, timestamp))


def setup(self):
self.register_callback("end", self._callback_end)
self.register_callback('tick', self._callback_tick)


def result(self, print_stats=True):
self.dut_seconds_passed = len(self.ticks) - 1

if self.dut_seconds_passed < 1:
if print_stats:
self.log("FAIL: failed to receive at least two tick events")
self.__result = False
return self.__result

self.total_drift_max = self.dut_seconds_passed * self.average_drift_max

self.start_time = self.ticks[0][2]
self.finish_time = self.ticks[-1][2]
self.total_time = self.finish_time - self.start_time
self.total_drift = self.total_time - self.dut_seconds_passed
self.average_drift = self.total_drift / self.dut_seconds_passed

if print_stats:
self.log("Start: %f" % self.start_time)
self.log("Finish: %f" % self.finish_time)
self.log("Total time taken: %f" % self.total_time)

total_drift_ratio_string = "Total drift/Max total drift: %f/%f"
self.log(total_drift_ratio_string % (self.total_drift,
self.total_drift_max))

average_drift_ratio_string = "Average drift/Max average drift: %f/%f"
self.log(average_drift_ratio_string % (self.average_drift,
self.average_drift_max))


if abs(self.total_drift) > self.total_drift_max:
if print_stats:
self.log("FAIL: Total drift exceeded max total drift")
self.__result = False
elif self.average_drift > self.average_drift_max:
if print_stats:
self.log("FAIL: Average drift exceeded max average drift")
self.__result = False
else:
self.__result = True

return self.__result


def teardown(self):
pass
29 changes: 0 additions & 29 deletions TESTS/integration/threaded_blinky/main.cpp

This file was deleted.

8 changes: 6 additions & 2 deletions TESTS/mbed_drivers/lp_timeout/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,15 @@ void lp_timeout_1s_deepsleep(void)
{
complete = false;

timestamp_t start = us_ticker_read();
/*
* We use here lp_ticker_read() instead of us_ticker_read() for start and
* end because the microseconds timer might be disable during deepsleep.
*/
timestamp_t start = lp_ticker_read();
lpt.attach(&cb_done, 1);
deepsleep();
while (!complete);
timestamp_t end = us_ticker_read();
timestamp_t end = lp_ticker_read();

/* It takes longer to wake up from deep sleep */
TEST_ASSERT_UINT32_WITHIN(LONG_TIMEOUT, 1000000, end - start);
Expand Down
Loading