Skip to content

NVIC_SystemReset #2768

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

Closed
wants to merge 307 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
307 commits
Select commit Hold shift + click to select a range
a135a9a
Fixed analogout bugs.
jeremybrodt Aug 16, 2016
0c59485
Updated bit-band macros to match latest MXC convention.
jeremybrodt Aug 16, 2016
2e786ba
Added missing register definitions.
jeremybrodt Aug 16, 2016
69d4a92
Synchronizing SPI drivers.
jeremybrodt Aug 16, 2016
5b4a0b4
Stylize utils.py
theotherjimmy Jul 27, 2016
899d8c5
Format bulid_api
theotherjimmy Aug 12, 2016
f65b6d3
Glorify config.py (passes pylint)
theotherjimmy Aug 12, 2016
7600a32
Edit the English of the docstrings
theotherjimmy Aug 12, 2016
5755127
Reveal cumulative attributes from Targets
theotherjimmy Aug 12, 2016
e40d95e
Format targets.py
theotherjimmy Aug 12, 2016
895d717
Expand docstrings in build_api
theotherjimmy Aug 15, 2016
7d733fe
Format and add docstrings to memmap
theotherjimmy Aug 15, 2016
de065ab
Format and document colorize
theotherjimmy Aug 15, 2016
4cdd267
Format paths python module
theotherjimmy Aug 15, 2016
d25230f
Add pylint configuration file
theotherjimmy Aug 15, 2016
c7bc655
Format and document libraries.py
theotherjimmy Aug 15, 2016
efb7cfb
Format detect_targets.py
theotherjimmy Aug 15, 2016
b12ad8e
Format and document hooks.py
theotherjimmy Aug 15, 2016
af5d35d
Format and document options.py
theotherjimmy Aug 15, 2016
6d70a7a
Add pylint testing to Travis
theotherjimmy Aug 15, 2016
26e7a35
Fix remaining issues in targets.py
theotherjimmy Aug 15, 2016
1dc77ac
Made linting a recommendation and raised the bar for printing
theotherjimmy Aug 16, 2016
aa9b5df
Added more well-defined garuntees on deprecation notices in mbed
geky Aug 8, 2016
7b02d53
Updated deprecation notices to match branch names
geky Aug 17, 2016
0b195e8
Added exporting support
ytsuboi Aug 17, 2016
5a78cf3
mbed lib revision - 124
0xc0170 Aug 18, 2016
ec15ee6
targets - KL27Z IAR removal
0xc0170 Aug 19, 2016
d220204
Merge pull request #2499 from ARMmbed/release
0xc0170 Aug 19, 2016
7ca8705
Adding retries to the NIST test.
bridadan Aug 9, 2016
aeeffcc
Move find_tests to where it's has arguments
theotherjimmy Aug 11, 2016
4842f26
Added support for NSAPI_REUSEADDR to the lwip interface
geky Aug 12, 2016
47684de
Add asynchronous serial
svastm Aug 11, 2016
f18f9e1
Enable asynchronous serial
svastm Aug 11, 2016
bdc31ca
Add tests for asynchronous serial
svastm Aug 11, 2016
1c213ae
Add asynchronous serial
svastm Aug 16, 2016
0540aaa
Enable asynchronous serial
svastm Aug 16, 2016
adfb954
Add tests for asynchronous serial
svastm Aug 16, 2016
08e86eb
Fixing issue where GCC fails to report compile errors when non-verbose
bridadan Aug 16, 2016
8238d22
Add ethernet and feature IPV4
svastm Aug 16, 2016
16a6fc0
Enable SPI1 on P6_4 ~ P6_7
komori-t Aug 17, 2016
246b934
KL27Z: Update the SPI driver
mmahadevan108 Aug 17, 2016
2e4d984
KL27Z: Update the ARM linker file
mmahadevan108 Aug 17, 2016
31a410b
Add entropy functions for STM32F4 and STM32F7 family
adustm Jul 26, 2016
814d767
Add documentation + reformat the code
adustm Jul 28, 2016
4ae0fdf
fix build issue by modifying labels
adustm Aug 18, 2016
3d124b2
Fix macros being the exact same when generating mbed_config.h
theotherjimmy Aug 18, 2016
dcc96e7
Print module information in 'table' output format
theotherjimmy Aug 18, 2016
9deafe6
HEXIWEAR: Update I2C pin mapping
mmahadevan108 Aug 19, 2016
2564c4e
LWIP - fix recv blocking send on accepted sockets
c1728p9 Aug 19, 2016
fb3414f
Fix SingletonPtr problems
c1728p9 Aug 19, 2016
daeedf3
Beetle: Implement sleep API
bulislaw Aug 18, 2016
5500190
Fixed link to release page
seppestas Aug 22, 2016
9e3c7e9
HEXIWEAR: Add support to create KDS projects for HEXIWEAR
mmahadevan108 Aug 22, 2016
b9fd1f7
build issues
jeromecoutant Aug 23, 2016
9973860
Fixed recvfrom address in ipv4 nist tests
geky Aug 23, 2016
86a2606
Added check for packet address in ipv4 nist test
geky Aug 23, 2016
64e58b9
uVisor: Update to v0.20.1-alpha
AlessandroA Aug 24, 2016
c9fe22f
uVisor: Minor fix in the README
AlessandroA Aug 24, 2016
77b4eaf
STM32F3 : fix RTOS IAR test not compiling. Thread_stack_main is by de…
jamike Aug 22, 2016
2457bb1
STM32F3 : Fix RTOS GCC_ARM test failed. remove target with RAM too sm…
jamike Aug 24, 2016
36c9092
Introduce uart hardware flow control configuration using mbed configu…
nvlsianpu Aug 24, 2016
5adb51f
K64F/K22F: Implement HAL lp_timer API
bulislaw Aug 16, 2016
da5a269
Add tests for LowPowerTimeout and lp_ticker
bulislaw Aug 17, 2016
050162a
Ticker: Move ticker initialisation to object creation time
bulislaw Aug 23, 2016
568384a
pwmout: remove printf
Aug 26, 2016
e78e023
Readable error when toolchain paths not set.
sarahmarshy Aug 10, 2016
351ff75
Exit non-zero for invalid toolchain path
sarahmarshy Aug 10, 2016
749d4be
Sharing greentea-client's RawSerial with utest and UNITY.
bridadan Aug 12, 2016
000f185
Allow users to set armcc and iccarm in path.
sarahmarshy Aug 10, 2016
0e23649
Fix multiple definition errors in GCC_CR build
toyowata Aug 19, 2016
e9a1501
Add TOOLCHAIN_GCC_CR support
toyowata Aug 19, 2016
59dc540
Fix link error
toyowata Aug 19, 2016
da9d618
Fixes issue #2508. The default compiler(ARMCC) copy constructor for f…
adbridge Aug 22, 2016
58ed74b
Add asynchronous serial
svastm Aug 16, 2016
c9292d6
Enable asynchronous serial
svastm Aug 16, 2016
70a7cb2
Add tests for asynchronous serial
svastm Aug 16, 2016
1311c9c
Fix for IOTCLT-961 for next mbed-os release candidate
Aug 23, 2016
2870ee4
Copying JSON files to pick up config for built libraries
bridadan Aug 16, 2016
5b0f1ca
Fix for https://github.com/ARMmbed/mbed-os-example-client/issues/75
Aug 24, 2016
ac18ffe
Initial release.
jeremybrodt Aug 8, 2016
aaa0811
Cleaned up analogin.
jeremybrodt Aug 24, 2016
6b838d7
Removed constant structure element.
jeremybrodt Aug 24, 2016
68334bc
Added Deep Sleep support with USB.
jeremybrodt Aug 24, 2016
c65465f
Fix NUC472 Ethernet wrong INT status in RX_Action
cyliangtw Aug 25, 2016
73f8cbc
Fix implicit declaration of function 'atexit'
tung7970 Aug 25, 2016
3c02e97
Replaced tab with spaces.
jeremybrodt Aug 25, 2016
786f343
Added support to RTX files.
jeremybrodt Aug 25, 2016
ada4eb1
Adding NCS36510 support in mbed-os5.1
radhika-raghavendran Aug 16, 2016
a5cdb1d
heap and stack test
radhika-raghavendran Aug 24, 2016
10704cc
Adding NCS36510 support in mbed-os5.1
radhika-raghavendran Aug 16, 2016
e417e20
heap and stack test
radhika-raghavendran Aug 24, 2016
57eda10
Use GCC small build for 64K flash STM32
jeromecoutant Aug 24, 2016
bf66d1b
Rebase to replace "default_build" into "default_lib"
jeromecoutant Aug 26, 2016
2339beb
a patch for TY51822r3 to use a change of PR #2535
ytsuboi Aug 26, 2016
5e81f0f
rebasing with mbed-os latest
radhika-raghavendran Aug 26, 2016
8310d41
Formatting code according to ARM guidelines. Ran pylint and astyle. R…
radhika-raghavendran Aug 26, 2016
214cbaa
Add asynchronous serial
svastm Aug 12, 2016
1f80a12
Enable asynchronous serial
svastm Aug 12, 2016
c11c817
Add tests for asynchronous serial
svastm Aug 12, 2016
b363c14
Move page heap after uVisor private data.
niklarm Aug 24, 2016
bd770b5
Update uVisor page allocator
meriac Aug 26, 2016
776e81b
K64F: Revert to hardcoded stack pointer in RTX
AlessandroA Aug 26, 2016
cc99870
Refactored dns-query to match style of the rest of the nsapi
geky Jul 27, 2016
ab9ea1f
Added support for multiple results in a dns-query
geky Aug 9, 2016
3b1e136
Added IPv6 support to DNS query
geky Aug 9, 2016
2f279dc
Removed unnecessary dns_query functions
geky Aug 15, 2016
6c2a82b
Add support for implementation-provided DNS servers
geky Aug 15, 2016
83286c3
Adopted netconn_gethostbyname in the lwip interface
geky Aug 18, 2016
f2df3ee
Restructured nsapi_dns.h to have clear separation between C/C++
geky Aug 26, 2016
b72f967
Check executable
sarahmarshy Aug 26, 2016
8757ffe
Fix failing compilation for mbed-os
Aug 29, 2016
cae74fb
Targets - KL27Z enable IAR
0xc0170 Aug 30, 2016
5e38a9c
mbed lib rev - 125
0xc0170 Aug 30, 2016
bdab10d
Merge pull request #2590 from ARMmbed/release
sg- Sep 1, 2016
269778c
Heap statistics
c1728p9 Aug 13, 2016
c3e30a9
Fix cfstore_test_delete_all by removing swap
c1728p9 Aug 18, 2016
d3d974b
Move utest handlers out of critical section
c1728p9 Aug 19, 2016
4043822
Runtime dynamic memory tracing
Aug 18, 2016
4c5a902
Added tests for the memory tracer
Aug 22, 2016
794ab26
Added thread safety to the tracing mechanism
Aug 23, 2016
b3546c9
retarget - fix uvisor header inclusion
0xc0170 Sep 2, 2016
1f15556
alloc wrappers - fix calloc wrapping for uvisor
0xc0170 Sep 2, 2016
e9032d8
Unify look of argument errors
theotherjimmy Aug 4, 2016
665c48a
Prevent traceback
theotherjimmy Aug 4, 2016
7027d4e
Removing threaded_blink test (duplicate of basic rtos test)
bridadan Aug 30, 2016
88785a5
Adding timing drift host test
bridadan Aug 30, 2016
60bf70f
Modifying timing tests to use timing drift host test
bridadan Aug 30, 2016
61bd50b
Reducing number of timeouts to decrease drift
bridadan Sep 1, 2016
c7c09df
Consolidating timer reads to reduce drift
bridadan Sep 1, 2016
80918a5
Fixing issue in timing host test and wait_us case
bridadan Sep 6, 2016
50c8750
Refactor export subsystem
sarahmarshy Jul 20, 2016
727ac9f
Update copyright
theotherjimmy Jul 26, 2016
37a0edd
Accessing progen exporters directly
sarahmarshy Jul 26, 2016
2affd94
progen exporter template
sarahmarshy Jul 27, 2016
924a0b7
Requirements update
sarahmarshy Jul 28, 2016
5acec67
Allow exporting to in-memory zip file
theotherjimmy Jul 28, 2016
e88346b
Made exporting safer
theotherjimmy Jul 29, 2016
47b76a1
Reinstated the zip exporter
theotherjimmy Jul 29, 2016
d4bfca7
Fix renaming issues in non-CI ides
theotherjimmy Aug 8, 2016
4a7984a
Create projectfiles directory when exporting
sarahmarshy Aug 18, 2016
c541e1c
Set vpath correctly when exporting to projectfiles directory
theotherjimmy Aug 22, 2016
a9b5514
Allow dict in addition to the other types of src_paths
theotherjimmy Aug 23, 2016
8d42764
Fix some tracebacks, add zip exporter to the CLI
theotherjimmy Aug 23, 2016
358643c
Fix include paths for fragmented projects; remove deadcode
theotherjimmy Aug 24, 2016
5677ad0
Add repo_dirs, repo_files, lib_builds, and lib_refs to zips
theotherjimmy Aug 24, 2016
e3225ab
Removed projectfiles directory. debug-info default option
sarahmarshy Aug 24, 2016
676d6a4
Bump Progen version
theotherjimmy Sep 6, 2016
247fcc6
Add CMSIS target
jamike Jul 7, 2016
7779420
Add Hal Target
jamike Jul 7, 2016
f577f0b
Add RTOS support
jamike Jul 7, 2016
05522c9
test / export scripts update
jamike Jul 7, 2016
2ff4951
fix build error
jamike Jul 7, 2016
4b3b8c5
Added define guards for SEQUENTIAL_FLASH_JOURNAL_MAX_LOGGED_BLOBS so …
Aug 25, 2016
fd73280
Allow an empty or mal-formed config to be passed to the config system
theotherjimmy Aug 29, 2016
e8cf363
clean-up DEVICE features
Jul 8, 2016
a1ce300
Make device.h a common file
Jul 8, 2016
2a25183
Make device.h a common file
Jul 8, 2016
e288f10
Make device.h a common file
Jul 8, 2016
6ea6564
Make device.h a common file
Jul 8, 2016
d3e805d
Make device.h a common file
Jul 8, 2016
745d91f
Make device.h a common file
Jul 8, 2016
9b712bf
Make device.h a common file
Jul 8, 2016
2d4183d
Make device.h a common file
Jul 8, 2016
777f53a
Move RTC_LSI to macros instead of device_has
Aug 17, 2016
452fe81
Add asynchronous serial
svastm Aug 11, 2016
1212a77
Enable asynchronous serial
svastm Aug 11, 2016
864b440
Add tests for asynchronous serial
svastm Aug 11, 2016
90988aa
Add MBED5 capability
jeromecoutant Aug 23, 2016
66cf353
STM32F4xx - Add support of ADC channels 16, 17, 18
bcostm Aug 23, 2016
25a01a9
STM32F4xx - Add one more bit for channels field, declare ADC internal…
bcostm Aug 23, 2016
44dc36c
STM32F4xx - Add ADC_TEMP/VREF/VBAT pins
bcostm Aug 24, 2016
9bac8fb
STM32F4xx - Align STM_PIN_DATA and STM_PIN_DATA_EXT macros
bcostm Aug 24, 2016
f228da6
STM32F4xx - Align STM_PIN_DATA macro on ARCH_MAX too
bcostm Aug 24, 2016
ab44c42
Add a test to check for init race conditions
c1728p9 Aug 26, 2016
e47709f
Fix GCC locks for lazy object initailization
c1728p9 Aug 26, 2016
12cb657
Add smoke test that builds example programs with mbed-cli
theotherjimmy Aug 29, 2016
e951732
Use json for the example to target mapping and print failures
theotherjimmy Aug 29, 2016
b7d352d
Move example tests to their own folder
theotherjimmy Aug 29, 2016
98e64bc
Move to feature filter for target and toolchain detection; print pass…
theotherjimmy Aug 29, 2016
33f28e6
Allow command-line filtering of toolchains
theotherjimmy Aug 31, 2016
ffe5aeb
Allow filtering by target as well as by features
theotherjimmy Aug 31, 2016
3a5f541
Use IPV6 feature for filtering mesh, client, and sockets
theotherjimmy Aug 31, 2016
aa23e01
Update Docstring
theotherjimmy Aug 31, 2016
2fd68ba
Use mbed-os 5 example instead of the mbed 2 one
theotherjimmy Aug 31, 2016
72daa77
Separate the import and compile steps for better integration with Jen…
theotherjimmy Aug 31, 2016
522c178
return the number of failures from the script
theotherjimmy Sep 1, 2016
7ff0df7
Fix double free in NanostackInterface
c1728p9 Aug 29, 2016
7356670
initial github issue and PR templates
Aug 9, 2016
d46d7be
small updates
Aug 31, 2016
7e05502
Update issue_template.md
jupe Sep 2, 2016
8f30f26
Update pull_request_template.md
jupe Sep 2, 2016
d710930
Update pull_request_template.md
jupe Sep 8, 2016
abe05cc
add PTEx pins as option for SPI - for SD card on Hexiwear. Amend to r…
Aug 30, 2016
3389a35
Adding ON Semiconductor copyright notice.
radhika-raghavendran Sep 1, 2016
8cb8ee9
Correctly providing directories to build_apis
bridadan Sep 2, 2016
c5104fb
Properly handle a thread which terminates itself
c1728p9 Sep 7, 2016
d64d696
Add test case for thread self termination
c1728p9 Sep 7, 2016
085bd42
Use lp_timer to count time in the deepsleep tests
svastm Sep 8, 2016
163a934
Set size of callback irq array to IrqCnt
c1728p9 Aug 30, 2016
c23f1c0
Use pre_main symbol instead of software_init_hook
toyowata Aug 30, 2016
01c56d4
lwip - Added check for previously-bound socket
geky Aug 29, 2016
db15a26
lwip - Fixed handling of max sockets in socket_accept
geky Aug 29, 2016
5dbc396
nsapi - Corrected handling of errors in TCPServer accept
geky Aug 29, 2016
3322e4a
KSDK: Updated version of the SAI driver to address code-size issues
mmahadevan108 Aug 22, 2016
022a6ec
KSDK: Updated version for the flexcan driver
mmahadevan108 Aug 22, 2016
a05e253
adding target
ohagendorf Aug 20, 2016
85c3774
adding rtos lib
ohagendorf Aug 20, 2016
fa2ff86
adding to build_travis
ohagendorf Aug 20, 2016
5f9492b
adding gcc_arm exporter definitions
ohagendorf Aug 20, 2016
7fb952c
disco_f769 some rework ...
ohagendorf Aug 31, 2016
0241fbf
disco_f769 some rework ... (part II)
ohagendorf Aug 31, 2016
01a2940
disco_f769ni adding ethernet init
ohagendorf Sep 8, 2016
a369122
Move utest global serial object into a function.
pan- Aug 26, 2016
5a2db63
Move global Timeout object from utest_shim in static function.
pan- Aug 26, 2016
a173382
Move constant definitions of non POD object into cpp file.
pan- Aug 26, 2016
99add3e
Construct control_t from a POD struct. Replace const control_t instan…
pan- Aug 26, 2016
fdb105b
Enhance compatibility between control_t and base_control_t:
pan- Aug 26, 2016
b0bca44
Convert case_control to a POD.
pan- Aug 26, 2016
6c1a40f
Replace default_handlers value by a reference.
pan- Aug 26, 2016
6bd43b1
Move defaults and handlers variable into a static function.
pan- Aug 26, 2016
a86c4c3
Fix scope of the serial variable.
pan- Aug 26, 2016
f0fbdbd
Improve compatibility between base_control_t and control_t.
pan- Aug 26, 2016
9bc5adf
Fix a rare case of imcompatibility between base_control_t and control_t.
pan- Aug 26, 2016
3aeba87
Use greentea_serial SingletonPtr.
pan- Aug 31, 2016
8a94c85
Use a SingletonPtr for the Timeout object in utest_shim.
pan- Sep 6, 2016
fdcece8
Use SingletonPtr for the internal variables defaults and handlers in …
pan- Sep 9, 2016
f62a724
Removed echoing of characters and carriage return.
jeremybrodt Sep 9, 2016
b8f041b
DELTA_DFBM_NQ620 platform porting
TsungtaWu Sep 9, 2016
3022bff
NUCLEO_F446ZE - Enable mbed5 release version
bcostm Sep 8, 2016
ec37b59
Updated USBHost for library changes
neilt6 Sep 6, 2016
971397f
Updated USBDevice to use Callback
neilt6 Sep 6, 2016
64943bb
Test names not dependent on disk location of root
sarahmarshy Sep 6, 2016
5c04ee9
This commit contains CFSTORE fixes for the following related issues: …
simonqhughes Sep 5, 2016
c0b0ac6
Restoring swap code to cfstore_test_delete_all() after being previous…
simonqhughes Sep 5, 2016
074a7ee
DISCO_L476VG - Add Serial Flow Control pins + add SERIAL_FC macro
bcostm Sep 5, 2016
892546b
STM32F2xx - Enable Serial Flow Control
bcostm Sep 5, 2016
f9bcf7a
Added support for MTM_MTCONNECT04S
bcc6 Sep 5, 2016
d066a50
Added gcc_arm template for export.
bcc6 Sep 10, 2016
97e9a95
Fixed "intrinsic is deprecated" warnings
neilt6 Aug 31, 2016
e68b08e
Fixed compiler warning suppression
neilt6 Aug 31, 2016
b24c986
Improve memory tracer
neilt6 Aug 31, 2016
4ee629a
Fix TCPServer constructor
svastm Aug 31, 2016
8e960ad
Fix heap configuration error with armcc
ccli8 Aug 31, 2016
9d36809
Add test command switch for app config file
ConorPKeegan Aug 31, 2016
9c05d88
Add app config switch to options.py and make.py
ConorPKeegan Sep 1, 2016
cc8386d
Add unit tests for app_config
ConorPKeegan Sep 2, 2016
1d57ff7
Tools - Fix fill section size variation
tung7970 Sep 2, 2016
064037d
Fixing NCS36510 compile on Linux
bridadan Sep 13, 2016
6caef39
Release mbed-os-5.1.4 and mbed lib v126
adbridge Sep 16, 2016
21dd700
Merge pull request #2714 from adbridge/mbed-os-5.1
sg- Sep 16, 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.
2 changes: 2 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[Format]
max-line-length=80
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ python:

script:
- PYTHONPATH=. python tools/test/config_test/config_test.py
- python tools/test/pylint.py
- py.test tools/test/toolchains/api.py
- python tools/build_travis.py
before_install:
Expand All @@ -17,3 +18,4 @@ install:
- sudo pip install prettytable
- sudo pip install jinja2
- sudo pip install pytest
- sudo pip install pylint
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ mbed OS accelerates the process of creating a connected product by providing a p

Our current release series is mbed OS 5.1:

- [Release Note](https://docs.mbed.com/docs/mbed-os-release-notes/en/latest/5_1/release)
- [Release Note](https://docs.mbed.com/docs/mbed-os-release-notes/en/latest/5_1/release/)

## Getting Started for Developers

Expand All @@ -20,4 +20,4 @@ We have a getting started guide for developers using mbed OS in applications:

We have a getting started guide for contributors working on mbed OS:

- Have a look in the docs directory
- Have a look in the docs directory
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.

136 changes: 136 additions & 0 deletions TESTS/mbed_drivers/lp_timeout/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
/* mbed Microcontroller Library
* Copyright (c) 2016 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.
*/

#if !DEVICE_LOWPOWERTIMER
#error [NOT_SUPPORTED] Low power timer not supported for this target
#endif

#include "utest/utest.h"
#include "unity/unity.h"
#include "greentea-client/test_env.h"

#include "mbed.h"
#include "us_ticker_api.h"

using namespace utest::v1;

volatile static bool complete;
static LowPowerTimeout lpt;

/* Timeouts are quite arbitrary due to large number of boards with varying level of accuracy */
#define LONG_TIMEOUT (100000)
#define SHORT_TIMEOUT (600)

void cb_done() {
complete = true;
}

#if DEVICE_SLEEP
void lp_timeout_1s_deepsleep(void)
{
complete = false;

/*
* 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 = lp_ticker_read();

/* It takes longer to wake up from deep sleep */
TEST_ASSERT_UINT32_WITHIN(LONG_TIMEOUT, 1000000, end - start);
TEST_ASSERT_TRUE(complete);
}

void lp_timeout_1s_sleep(void)
{
complete = false;

timestamp_t start = us_ticker_read();
lpt.attach(&cb_done, 1);
sleep();
while (!complete);
timestamp_t end = us_ticker_read();

TEST_ASSERT_UINT32_WITHIN(LONG_TIMEOUT, 1000000, end - start);
TEST_ASSERT_TRUE(complete);
}
#endif /* DEVICE_SLEEP */

void lp_timeout_us(uint32_t delay_us, uint32_t tolerance)
{
complete = false;

timestamp_t start = us_ticker_read();
lpt.attach_us(&cb_done, delay_us);
while (!complete);
timestamp_t end = us_ticker_read();

/* Using RTC which is less accurate */
TEST_ASSERT_UINT32_WITHIN(tolerance, delay_us, end - start);
TEST_ASSERT_TRUE(complete);
}

void lp_timeout_5s(void)
{
lp_timeout_us(5000000, LONG_TIMEOUT);
}

void lp_timeout_1s(void)
{
lp_timeout_us(1000000, LONG_TIMEOUT);
}

void lp_timeout_1ms(void)
{
lp_timeout_us(1000, SHORT_TIMEOUT);
}

void lp_timeout_500us(void)
{
lp_timeout_us(500, SHORT_TIMEOUT);

}

status_t greentea_failure_handler(const Case *const source, const failure_t reason) {
greentea_case_failure_abort_handler(source, reason);
return STATUS_CONTINUE;
}

Case cases[] = {
Case("500us LowPowerTimeout", lp_timeout_500us, greentea_failure_handler),
Case("1ms LowPowerTimeout", lp_timeout_1ms, greentea_failure_handler),
Case("1sec LowPowerTimeout", lp_timeout_1s, greentea_failure_handler),
Case("5sec LowPowerTimeout", lp_timeout_5s, greentea_failure_handler),
#if DEVICE_SLEEP
Case("1sec LowPowerTimeout from sleep", lp_timeout_1s_sleep, greentea_failure_handler),
Case("1sec LowPowerTimeout from deepsleep", lp_timeout_1s_deepsleep, greentea_failure_handler),
#endif /* DEVICE_SLEEP */
};

status_t greentea_test_setup(const size_t number_of_cases) {
GREENTEA_SETUP(20, "default_auto");
return greentea_test_setup_handler(number_of_cases);
}

Specification specification(greentea_test_setup, cases, greentea_test_teardown_handler);

int main() {
Harness::run(specification);
}
Loading