Skip to content

Release candidate for mbed-os-5.10.2 #8479

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 263 commits into from
Oct 19, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
263 commits
Select commit Hold shift + click to select a range
9f1b4ed
Add nu_busy_wait_us
ccli8 Aug 13, 2018
faa7c90
Add nu_delay_cycle_x4
ccli8 Aug 13, 2018
d8b35fe
Fix HAL sleep test failure with lp_ticker
ccli8 Aug 13, 2018
bb38750
Fix serial corruption due to deep sleep
ccli8 Aug 13, 2018
0faad50
Fix hal_deepsleep with serial_can_deep_sleep
ccli8 Sep 3, 2018
d9d737f
Update secure library/executable
ccli8 Sep 10, 2018
266dff0
STM32L1 ADC update for internal channels
jeromecoutant Sep 14, 2018
758c37e
Version check not needed as driver in part of mbed-os
Sep 5, 2018
3ec1f7c
Add required header file and namespace element instead add all
Sep 5, 2018
103fa52
STM32L4: Fix sleep implementation
MSiglreithmaierRB Aug 13, 2018
442ec4a
STM32L4: Use HAL layer functions for sleep implementation
MSiglreithmaierRB Sep 26, 2018
31dcbc6
Removing default flow control for BL652
Aug 22, 2018
758fca4
Removed cellular PIN code print from debug log.
Sep 10, 2018
882642c
NRF52: Ensure that we configure hardware after flow control changes
Sep 4, 2018
9236006
Improve Flash iap driver of Renesas
TomoYamanaka Sep 11, 2018
29aa222
Support large Flash in Flash iap driver of Renesas
TomoYamanaka Sep 20, 2018
9894c50
Revise the value of return value of flash_get_page_size()
TomoYamanaka Sep 27, 2018
1fdf672
Added usticker feature
Sep 17, 2018
41875b2
Implemented us_ticker free()
Sep 18, 2018
c70943b
Change update file format to binary to all targets
Sep 18, 2018
3283034
DISCO_L496AG : enable ADC
jeromecoutant Sep 18, 2018
9adc663
STM32: add missing IAR exporters
bcostm Sep 18, 2018
2a15601
Fix the CMSIS macro ARM_MPU_RASR
c1728p9 Sep 18, 2018
f16cdf4
Add missing SIM PIN configuration item
Sep 19, 2018
cfa654e
Add license file for secure library/executable
ccli8 Sep 20, 2018
ab3fb43
Add README.md for secure library/executable
ccli8 Sep 21, 2018
2cd2292
Copy edit REAMDE.md
Oct 4, 2018
584f54f
Makes mbedgt-netsocket cases to accept port 0 as destination
Sep 25, 2018
80fc146
Makes mbedgt-network-wifi case to skip channel number check
Sep 25, 2018
976c54b
Drops removed mbedgt-netsocket cases from test specification
Sep 25, 2018
334dab3
Fixed pwmout & serial fuart
Sep 25, 2018
2ca0f74
Fix WIFI_CONNECT_PARAMS_CHANNEL_FAIL testcase.
Sep 25, 2018
8346498
Cellular: Fix greentea network set credentials test case
Sep 27, 2018
00f9347
tools, NRF51-post-build: Use paths to hex files
theotherjimmy Sep 27, 2018
b44bf98
tools: Make "file" key in notifications consistant
theotherjimmy Sep 27, 2018
3453063
STM32: Fix I2C stop condition
bcostm Sep 27, 2018
bff5c3b
Cellular: Fix AT_CellularStack unittest
Oct 3, 2018
5e105dd
Cellular: Fix ATHandler_stub compiler warnings
Oct 3, 2018
b3d935c
Fix for pinmap & usticker free() to TMPM3H6
Oct 4, 2018
a191140
Tools: Fix Python3 + firmware header traeback
theotherjimmy Oct 4, 2018
8f95eb5
Adding back blockdevice example after removing it for PR #7774. Targe…
Oct 4, 2018
95c46b5
STM32 RTC : write RTC time while LPTICKER is enabled
jeromecoutant Sep 28, 2018
e9f845b
Clear error programming flags before erase & program operations
Sep 26, 2018
b3a69c5
Remove redundant error flag clearing operation
Oct 2, 2018
6844a05
mcr20a use core_util_critical_section functions
Sep 25, 2018
6b0133d
Adjust stack & heap for IAR on STM32F412xG
Sep 24, 2018
4c63e4a
platform timer: Call timer start in enable
Sep 21, 2018
19cd207
nrf_ble: Expose configuration of max number of characteristics and de…
pi-anl Aug 31, 2018
7a07bc8
Guard Atmel RF driver build by DEVICE_I2C
Oct 4, 2018
67638a0
Tests: SleepManager: extend test suite
Jul 18, 2018
dd710fa
Tests: SleepManager: update concurrent test docs
Jul 20, 2018
375f746
HAL: SleepManager: Update header file
Jul 23, 2018
a55ee97
Tests: SleepManager: Add test for new check() fun
Aug 28, 2018
aa09d7b
Tests: SleepManager: Fix test suite setup
Aug 30, 2018
b385dc2
Tests: SleepManager: Update test_check() test
Sep 24, 2018
24767e4
Tests: Sleep: Extract test utility functions
Oct 9, 2018
d1b6666
Tests: SleepManager: Fix sleep_auto test
Oct 9, 2018
0721a76
Improve the config adjustment script for ENTROPY_NV_SEED
TomoYamanaka Aug 24, 2018
e2e25e9
travis: add MBED BOT to the astyle job
0xc0170 Aug 27, 2018
776b97a
SiLabs: Fix alignment of execute region to 8-byte boundary
Sep 19, 2018
68c7665
Nuvoton: Fix alignment of execute region to 8-byte boundary
Sep 19, 2018
ae87e36
Nordic: Fix alignment of execute region to 8-byte boundary
Sep 19, 2018
a71dc82
Toshiba: Fix alignment of execute region to 8-byte boundary
Sep 19, 2018
cc12ada
Atmel: Fix alignment of execute region to 8-byte boundary
Sep 19, 2018
d97b960
Maxim: Fix alignment of execute region to 8-byte boundary
Sep 19, 2018
9cbde92
ARM: Fix alignment of execute region to 8-byte boundary
Sep 19, 2018
b3e27ce
Renesas: Fix alignment of execute region to 8-byte boundary
Sep 19, 2018
0814875
Analog Devices: Fix alignment of execute region to 8-byte boundary
Sep 19, 2018
409f3a5
Onsemi: Fix alignment of execute region to 8-byte boundary
Sep 19, 2018
1882df9
Wiznet: Fix alignment of execute region to 8-byte boundary
Sep 19, 2018
710ec90
Realtek: Fix alignment of execute region to 8-byte boundary
Sep 19, 2018
2969394
Ublox: Fix alignment of execute region to 8-byte boundary
Sep 19, 2018
0271b33
tools/utils: Fix issue with loading json files as ascii on python3 linux
pi-anl Sep 19, 2018
4395ed4
Freescale: Fix alignment of execute region to 8-byte boundary
Sep 19, 2018
7b18b61
NXP: Fix alignment of execute region to 8-byte boundary
Sep 19, 2018
c1eadcf
Reset channel settings back to default
Oct 2, 2018
6d74947
Tools: Fix Microbit releases
theotherjimmy Oct 2, 2018
0a362ef
Update remaining default_lib usage in arm compiler
theotherjimmy Oct 9, 2018
fffbab1
Avoid assigning self.libraries
theotherjimmy Aug 30, 2018
8c72bd5
unittests: Added tests for netsocket classes
michalpasztamobica Oct 1, 2018
81c8520
choose which lpc1768 timer to use for us_ticker.c
Sep 13, 2018
cdfefd9
Enabled the removal of a trailing slash when sourcing examples from e…
Sep 26, 2018
ed26851
STM32F1 RTC : save values in register
jeromecoutant Sep 21, 2018
a1de6c0
Fix overflow in disk_get_sector_size()
Aug 27, 2018
42f1b4e
Restore disk_get_sector_size() to return WORD
Aug 28, 2018
0969c0f
Style correction
Sep 19, 2018
258b281
Adding check for ongoing automatic-uplink
Sep 19, 2018
80d07ff
Adding QOS handling and fixing bugs for Class C
Sep 19, 2018
d776f5c
Making sure that RX slots open after state change
Sep 20, 2018
c42b790
TX post-process for CONFIRMED UL in no-reception case
Sep 20, 2018
925d514
Proper handling of RX1 frequency in rx_config
Sep 21, 2018
70ad11e
Fixing coverity findings
Sep 21, 2018
7759077
STM32 EMAC : lock deep sleep
jeromecoutant Sep 21, 2018
b9f8c95
Fix warnings in block devices
Sep 26, 2018
866019f
Cellular: Fix compile warnings for CellularNetwork
Sep 26, 2018
6772e09
Tools: Ensure vtor reserved bits are all 0
theotherjimmy Sep 27, 2018
a9afbb6
Update mbed-coap to version 4.7.0
Sep 27, 2018
564eb9f
Remove mbed-os-example-client
adbridge Oct 10, 2018
66edc69
Convert to a set in win2unix
theotherjimmy Sep 25, 2018
762cf03
Revert "Merge pull request #8183 from hasnainvirk/QOS_impl"
Oct 11, 2018
3edb04a
Fixed colorama Python package Colorama package being at the top of th…
Oct 11, 2018
7bef43a
Storage: Add required header file and namespace element instead add all
Sep 5, 2018
32031fc
Export, nb: Use same path for cpp as the rest of the tools
theotherjimmy Sep 27, 2018
6e801e2
Removing GCC_CR from target supported_toolchains
bridadan Oct 2, 2018
648f6d8
Removing GCC_CR mention from settings.py
bridadan Oct 2, 2018
652147d
Remove references to GCC_CR from the rest of the tools
bridadan Oct 2, 2018
f1bc2b0
PR template: add "docs update"
0xc0170 Sep 25, 2018
f4eaa60
PR template: add "test update"
0xc0170 Sep 25, 2018
0c4c3c4
Change MTU2 channel number for LPTicker of GR-LYCHEE
TomoYamanaka Sep 25, 2018
8556573
Modify typo of return value at mbed_get_a9_tick_irqn().
TomoYamanaka Sep 25, 2018
8fb705d
mbed dm: Check for missing payload and give a better error message
theotherjimmy Oct 5, 2018
dfa1b54
Improve unit testing instructions.
lorjala Sep 24, 2018
72842bb
Edit README.md
Sep 26, 2018
56667a3
align github's issue template with pull request's look&feel.
ithinuel Sep 21, 2018
5878740
poll: Un-doxygen internal comment
kjbracey Sep 18, 2018
36198f1
improve can documentation
aashishc1988 Oct 11, 2018
5c2ae7b
fix critical bug where I was hiding a lot more class members than i s…
aashishc1988 Oct 12, 2018
c03f3e5
fixed a mistake where I was adding "can not supprted" error at wrong …
aashishc1988 Oct 12, 2018
ab1a397
improve mutex doc
aashishc1988 Oct 11, 2018
56f365e
improve mutex doc
aashishc1988 Oct 11, 2018
60eb38e
mutex doc changes
aashishc1988 Oct 12, 2018
49989d3
Edit Mutex.h
Oct 12, 2018
691061d
Fix minor typo
kegilbert Oct 11, 2018
88977dc
QSPI: Remove protected member functions from rendering on docs site, …
Oct 11, 2018
20effcb
Add QSPI header file in mbed.h
Oct 11, 2018
14d247c
Correct the param descritions of QSPI
Oct 11, 2018
2ef7fec
Adding doxygen comments for mem trace enum
SenRamakri Oct 11, 2018
f145945
Copy edit changes to mbed_mem_trace.h
Oct 12, 2018
5f68d26
improve ticker doc
aashishc1988 Oct 11, 2018
7200bb8
Edit Ticker.h
Oct 12, 2018
7126f1e
InterruptIn: Remove protected attributes from rendering on docs site
Oct 11, 2018
01448df
InterruptIn.h: Update comments
Oct 11, 2018
9e7b67f
Edit InterruptIn.h
Oct 12, 2018
6074252
Updating stats doc comments
bridadan Oct 11, 2018
437d4cf
Edit mbed_stats.h
Oct 12, 2018
14d776f
Updated doxygen comments
Oct 12, 2018
15f7b6f
Edit DeviceKey.h
Oct 12, 2018
9435179
Timer.h: Remove protected attributes from rendering on docs site
Oct 12, 2018
d612a1b
Timer.h: Update comments
Oct 12, 2018
2fbb66e
Copy edit Timer.h
Oct 12, 2018
51fba0d
MCUXpresso: Add Flash support for KL43Z, KL82Z, KW41Z, K22F
mmahadevan108 Oct 3, 2018
62c0b40
Fix for issue #8214
mprse Sep 24, 2018
5df269b
Alignment of 8 is not required for additional header
Sep 5, 2018
711c673
Signature to track memory allocations by wrapper functions.
Sep 10, 2018
bdc63c8
Added usticker feature
Sep 25, 2018
abd5f21
Tools, memap: Silence warnings that we handled correctly
theotherjimmy Sep 27, 2018
f427af2
Check LPUART clock source in STOP mode
Eman869 Sep 27, 2018
888ef5f
error handling for socket create
mudassar-ublox Oct 8, 2018
c61bbdc
DISCO_F413ZH : set default Wifi module SPI state to inactive
jeromecoutant Oct 11, 2018
e698722
DISCO_F413ZH : explicit WIFI pins name
jeromecoutant Oct 11, 2018
69595dd
Improve frequency setting proc of Renesas SPI driver
TomoYamanaka Oct 11, 2018
7b4d7a9
Added bootloader bin license and config for DISCO_L475VG_IOT01A
brianesquilona Oct 12, 2018
d8c4d2c
wich->which
kegilbert Oct 12, 2018
60ab5d6
Copy edit mbed_rtc_time.h
Oct 12, 2018
bf99311
Remove protected class from EventQueue Doxy
kegilbert Oct 12, 2018
55a5e85
Doc changes and rephrasing
Oct 12, 2018
71248e8
Edit ATCmdParser.md
Oct 12, 2018
5d79577
Remove protected members from doxy in Analog/Digital classes
kegilbert Oct 12, 2018
6404d94
Making cancel_sending() API robust
Oct 2, 2018
50dd1eb
Fix hard-fault when socket created using accept() is closed
sentinelt Oct 6, 2018
ca20767
Fixing the order of component if more than one is included for a targ…
Oct 3, 2018
4e019a6
Removing nvstore. adding back the option for configuration as in the …
Oct 10, 2018
cc09e06
Fixing unicode error in IAR compilation
Oct 14, 2018
78246e4
Change Mbed TLS platform error code and value
Oct 15, 2018
28538fb
Fix LED_GREEN naming error
ccli8 Oct 15, 2018
9da1d4c
Improve ARMCC linker script for Renesas boards
TomoYamanaka Oct 11, 2018
344ff0f
STM32: fix issue with serial_is_tx_ongoing function
bcostm Oct 12, 2018
1731900
STM32: typo corrections
bcostm Oct 15, 2018
a02f73d
STM32L4 : sleep issue
jeromecoutant Oct 15, 2018
29e0e65
Added Support for TOSHIBA TMPM4G9
Aug 29, 2018
ae18077
Implemented us_ticker free() & modified IAR stack
Sep 18, 2018
aff0b2d
Removed IAR definition for TMPM4G9
Oct 15, 2018
c648c7f
Style correction
Sep 19, 2018
0413129
Adding check for ongoing automatic-uplink
Sep 19, 2018
a126099
Adding QOS handling and fixing bugs for Class C
Sep 19, 2018
cee09b6
Making sure that RX slots open after state change
Sep 20, 2018
a72d832
TX post-process for CONFIRMED UL in no-reception case
Sep 20, 2018
13530d1
Proper handling of RX1 frequency in rx_config
Sep 21, 2018
15187b9
Fixing coverity findings
Sep 21, 2018
f6d50cc
Unit Test Fixes for LoRaWAN
Oct 12, 2018
fa1a6d2
Unit test fix for cancel_send()
Oct 16, 2018
f306241
PortIn.h: Documentation improvements only * Improve function and para…
TacoGrandeTX Oct 12, 2018
51f7f07
MCUXpresso: Fix for the TRNG HAL driver
mmahadevan108 Oct 15, 2018
8377966
Added line in python testing to print pip modules in use
Oct 16, 2018
a3c248a
Pinned urllib3 version as something with 1.24 appears to be breaking …
Oct 16, 2018
74832b3
Framework: Add required header file and namespace element instead add…
Sep 5, 2018
9c8c736
Nanostack: Add required header file and namespace element instead add…
Sep 5, 2018
1898894
Netsocket: Add required header file and namespace element instead add…
Sep 5, 2018
f3e12fa
Greentea: Add required header file and namespace element instead add all
Oct 8, 2018
4f3ad7d
Resolve build issues in test
Oct 15, 2018
42da703
Use wait_ms instead of wait(n)
Oct 2, 2018
8108da4
Fix SW2/SW3 interchange error in NUMAKER_IOT_M487
ccli8 Oct 15, 2018
d8771a5
Allow overriding build timestamp from env
kaidokert Oct 10, 2018
d014fb4
Added missing define in drivers/SerialWireOutput.h
welaZat Oct 16, 2018
3e24f25
Fixed lorawan unittests valgrind issues
Oct 17, 2018
92a4bef
Added missing _mutex->unlock() to FileBase::lookup().
Oct 17, 2018
7b843a7
Correct mesh network connection status callback functionality. Now th…
KariHaapalehto Oct 16, 2018
16ce2c0
Reduced SPIF Block Device for Boot Loader
Oct 9, 2018
097452f
json formatted and include remarks removed
Oct 16, 2018
ab19a82
Remove extra e in deepsleep
kegilbert Oct 17, 2018
591b7a1
underlyng->underlying
kegilbert Oct 17, 2018
e7f30ac
Minor mbed_assert doxy typos patch
kegilbert Oct 17, 2018
4e1d66f
locable->lockable
kegilbert Oct 17, 2018
8532efc
Infered->Inferred Signiture->Signature
kegilbert Oct 17, 2018
74018b5
funtion->function
kegilbert Oct 17, 2018
12c191a
Copy edit mbed_rtc_time.h
Oct 17, 2018
33d3e0e
Add support for NXP Rapid IoT prototyping kit
Aug 3, 2018
8585f7a
MCUXpresso Flash Driver: Update Flash driver to support RAPIDIOT
mmahadevan108 Sep 27, 2018
ed2db01
tools: Raise NotSupported when target definition is incomplete
theotherjimmy Oct 1, 2018
729f645
Fix status sequence and reporting for LWIP stack
michalpasztamobica Oct 9, 2018
915b71b
Update doxygens to be in sync
c1728p9 Oct 13, 2018
c304740
This PR retrieves the TimerSync function to fix the lockup issue
AdamZhang0124 Oct 12, 2018
a001022
PortOut.h: Documentation improvements only * Improve function and par…
TacoGrandeTX Oct 12, 2018
bdf153a
mbedgt-network-wifi WIFI CONNECT TC - check for empty passwd
Oct 18, 2018
f88075d
MCUXpresso: Ensure the RTC OSC is running at bootup on Kinetis platforms
mmahadevan108 Sep 27, 2018
c15ce39
Adding Laird BL654 as a new MTB target
Oct 17, 2018
2ebd07f
Addressing comments w.r.t alignments
Oct 17, 2018
88d4572
QSPI pins added
Oct 18, 2018
914a7e6
Update Mbed version block
adbridge Oct 19, 2018
e6bf494
[ST]: Fix alignment of execute region to 8-byte boundary in ARM linke…
Sep 5, 2018
b6826d9
Add a minimum requirements HAL test
c1728p9 Oct 9, 2017
0d5166c
Set ISR stack and heap sizes for low end devices
Sep 19, 2018
07b0e84
Set main thread stack size as 3K for constrained targets
Sep 28, 2018
db70070
Reposition heap at the end of RAM to be 4K aligned
Sep 28, 2018
8c14749
adding TARGET MTS_DRAGONFLY_L471QG
cedrickkukela-cd Jun 8, 2018
4866d9c
Ublox and PinName fixes
cedrickkukela-cd Jun 15, 2018
c98f402
target fix
cedrickkukela-cd Jun 15, 2018
72901a9
fixing onboard modem init bug on mts dragonfly l471
cedrickkukela-cd Jun 22, 2018
b917133
change startup and s file names to match target
cedrickkukela-cd Jun 23, 2018
c43c8cf
delete file
cedrickkukela-cd Jun 23, 2018
5b83ad8
remove blanks
cedrickkukela-cd Jun 23, 2018
6e97d7e
changes to support mts dragonfly nano ppp
cedrickkukela-cd Jun 23, 2018
dd07f51
Rev c pin name fix
cedrickkukela-cd Jul 18, 2018
4ba937c
REV D change for modem on
cedrickkukela-cd Aug 29, 2018
7f2684f
target changes
cedrickkukela-cd Aug 29, 2018
37fa8a7
Fix rev D radio init/power/reset and add back bootloader capability
felser Aug 29, 2018
686d3e6
Fixed spacing/tabs and clean up targets.json
felser Sep 4, 2018
c9729bc
Remove commented out code
felser Sep 4, 2018
8a778bd
Rebased on master mbed-os 9/7/18
felser Sep 10, 2018
fcdac9e
Rebase and changes for Dragonfly nano support
felser Sep 19, 2018
4161688
Decrease heap size in IAR linker so tests compile and use SRAM2 for I…
felser Sep 24, 2018
b0b2e75
Fix so building for other targets does not fail
felser Sep 24, 2018
aa56ea4
Remove LOWPOWERTIMER as it has been replaced by LPTICKER
felser Sep 25, 2018
89bddfe
Fix rebase conflict file
felser Sep 26, 2018
9c7df2f
Fix broken cellular_device test and delete commented code
felser Sep 27, 2018
fef9fb0
Add header so cellular_power tests compile and run
felser Sep 27, 2018
f5cd8f5
Delete commented out merge conflict resolution
felser Oct 1, 2018
c80a2ac
Configure IAR stack size to 1KB
felser Oct 2, 2018
44b0091
Fixed merge problem
Oct 11, 2018
0b850b9
Update mbed-coap to version 4.7.1
Oct 12, 2018
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
  •  
  •  
  •  
25 changes: 11 additions & 14 deletions .github/issue_template.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
### Description
<!--

<!--
Required
Add detailed description of what you are reporting.
Good example: https://os.mbed.com/docs/latest/reference/workflow.html
Expand All @@ -13,19 +14,15 @@


### Issue request type
<!--
Required
Please add only one X to one of the following types. Do not fill multiple types. (Split the issue otherwise.)
Please note this is not a GitHub task list; indenting the boxes or changing the format to add a '.' or '*' in front
of them changes the meaning incorrectly. The only changes to make are to add a description under the
description heading and to add an 'x' to the correct box.

[X] Question
[ ] Enhancement
[ ] Bug
<!--
Required
Please add only one X to one of the following types. Do not fill multiple types (split the issue otherwise.)
Please note this is not a GitHub task list, indenting the boxes or changing the format to add a '.' or '*' in front
of them would change the meaning incorrectly. The only changes to be made are to add a description text under the
description heading and to add a 'x' to the correct box.
-->

[ ] Question
[ ] Enhancement
[ ] Bug
[ ] Question
[ ] Enhancement
[ ] Bug

2 changes: 2 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,7 @@
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ matrix:

- arm-none-eabi-gcc --version
- python --version
- pip list --verbose
script:
# Run local testing on tools
- PYTHONPATH=. coverage run -a -m pytest tools/test
Expand Down Expand Up @@ -132,10 +133,10 @@ matrix:
# update status if we succeeded, compare with master if possible
- |
CURR=$(cat astyle-branch.out | grep Formatted | wc -l)
PREV=$(curl https://api.github.com/repos/$TRAVIS_REPO_SLUG/status/master \
PREV=$(curl -u "$MBED_BOT" https://api.github.com/repos/$TRAVIS_REPO_SLUG/status/master \
| jq -re "select(.sha != \"$TRAVIS_COMMIT\")
| .statuses[] | select(.context == \"travis-ci/$NAME\").description
| capture(\", (?<files>[0-9]+) files\").warnings" \
| capture(\", (?<files>[0-9]+) files\").files" \
|| echo 0)

STATUSM="Passed, ${CURR} files"
Expand Down
2 changes: 1 addition & 1 deletion TESTS/host_tests/rtc_reset.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class RtcResetTest(BaseHostTest):
"""

"""Start of the RTC"""
START_TIME = 50000
START_TIME = 1537789823 # GMT: Monday, 24 September 2018 11:50:23
START_TIME_TOLERANCE = 10
"""Time to delay after sending reset"""
DELAY_TIME = 5.0
Expand Down
1 change: 1 addition & 0 deletions TESTS/lorawan/loraradio/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@


using namespace utest::v1;
using namespace mbed;

static LoRaRadio *radio = NULL;
rtos::Semaphore event_sem(0);
Expand Down
71 changes: 71 additions & 0 deletions TESTS/mbed_hal/minimum_requirements/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
/* mbed Microcontroller Library
* Copyright (c) 2017 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.
*/

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

#include "mbed.h"

using namespace utest::v1;

/**
* This test is intended to gate devices that do not have enough RAM to run
* Mbed os. Devices passing this test should have enough RAM to run all
* other Mbed OS tests.
*
* If your device does not pass this test, then you should determine the
* cause of high memory usage and fix it. If you cannot free enough memory,
* then you should turn off Mbed OS support for this device.
*/

#define MIN_HEAP_SIZE 2048
#define MIN_DATA_SIZE 2048

volatile uint8_t test_buffer[MIN_DATA_SIZE];

static void minimum_heap_test()
{
void *mem = malloc(MIN_HEAP_SIZE);
TEST_ASSERT_NOT_EQUAL(NULL, mem);
free(mem);
}

static void minimum_data_test()
{
// Use test buffer so it is not optimized away
for (int i = 0; i < MIN_DATA_SIZE; i++) {
test_buffer[i] = i & 0xFF;
}
}


utest::v1::status_t greentea_test_setup(const size_t number_of_cases)
{
GREENTEA_SETUP(30, "default_auto");
return greentea_test_setup_handler(number_of_cases);
}

Case cases[] = {
Case("Minimum heap test", minimum_heap_test),
Case("Minimum data test", minimum_data_test),
};

Specification specification(greentea_test_setup, cases, greentea_test_teardown_handler);

int main() {
Harness::run(specification);
}
84 changes: 1 addition & 83 deletions TESTS/mbed_hal/sleep/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,26 +25,9 @@
#include "greentea-client/test_env.h"
#include "mbed_lp_ticker_wrapper.h"

#include "sleep_test_utils.h"
#include "sleep_api_tests.h"

#define US_PER_S 1000000

/* Flush serial buffer before deep sleep
*
* Since deepsleep() may shut down the UART peripheral, we wait for some time
* to allow for hardware serial buffers to completely flush.
*
* Take NUMAKER_PFM_NUC472 as an example:
* Its UART peripheral has 16-byte Tx FIFO. With baud rate set to 9600, flush
* Tx FIFO would take: 16 * 8 * 1000 / 9600 = 13.3 (ms). So set wait time to
* 20ms here for safe.
*
* This should be replaced with a better function that checks if the
* hardware buffers are empty. However, such an API does not exist now,
* so we'll use the busy_wait_ms() function for now.
*/
#define SERIAL_FLUSH_TIME_MS 20

using namespace utest::v1;

static char info[512] = {0};
Expand All @@ -67,71 +50,6 @@ static const uint32_t sleep_mode_delta_us = (10 + 4 + 5);
* delta = default 10 ms + worst ticker resolution + extra time for code execution */
static const uint32_t deepsleep_mode_delta_us = (10000 + 125 + 5);

unsigned int ticks_to_us(unsigned int ticks, unsigned int freq)
{
return (unsigned int)((unsigned long long) ticks * US_PER_S / freq);
}

unsigned int us_to_ticks(unsigned int us, unsigned int freq)
{
return (unsigned int)((unsigned long long) us * freq / US_PER_S);
}

unsigned int overflow_protect(unsigned int timestamp, unsigned int ticker_width)
{
unsigned int counter_mask = ((1 << ticker_width) - 1);

return (timestamp & counter_mask);
}

bool compare_timestamps(unsigned int delta_ticks, unsigned int ticker_width, unsigned int expected, unsigned int actual)
{
const unsigned int counter_mask = ((1 << ticker_width) - 1);

const unsigned int lower_bound = ((expected - delta_ticks) & counter_mask);
const unsigned int upper_bound = ((expected + delta_ticks) & counter_mask);

if (lower_bound < upper_bound) {
if (actual >= lower_bound && actual <= upper_bound) {
return true;
} else {
return false;
}
} else {
if ((actual >= lower_bound && actual <= counter_mask) || (actual >= 0 && actual <= upper_bound)) {
return true;
} else {
return false;
}
}
}

void busy_wait_ms(int ms)
{
const ticker_info_t *info = us_ticker_get_info();
uint32_t mask = (1 << info->bits) - 1;
int delay = (int)((uint64_t)ms * info->frequency / 1000);

uint32_t prev = us_ticker_read();
while (delay > 0) {
uint32_t next = us_ticker_read();
delay -= (next - prev) & mask;
prev = next;
}
}

void us_ticker_isr(const ticker_data_t *const ticker_data)
{
us_ticker_clear_interrupt();
}

#ifdef DEVICE_LPTICKER
void lp_ticker_isr(const ticker_data_t *const ticker_data)
{
lp_ticker_clear_interrupt();
}
#endif

/* Test that wake-up time from sleep should be less than 10 us and
* high frequency ticker interrupt can wake-up target from sleep. */
void sleep_usticker_test()
Expand Down
114 changes: 114 additions & 0 deletions TESTS/mbed_hal/sleep/sleep_test_utils.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
/* mbed Microcontroller Library
* Copyright (c) 2017 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.
*/

/**
* @addtogroup hal_sleep_test_utils
* @{
*/

#ifndef MBED_SLEEP_TEST_UTILS_H
#define MBED_SLEEP_TEST_UTILS_H

#include "hal/ticker_api.h"
#include "hal/us_ticker_api.h"
#include "hal/lp_ticker_api.h"

/* Flush serial buffer before deep sleep
*
* Since deepsleep() may shut down the UART peripheral, we wait for some time
* to allow for hardware serial buffers to completely flush.
*
* Take NUMAKER_PFM_NUC472 as an example:
* Its UART peripheral has 16-byte Tx FIFO. With baud rate set to 9600, flush
* Tx FIFO would take: 16 * 8 * 1000 / 9600 = 13.3 (ms). So set wait time to
* 20ms here for safe.
*
* This should be replaced with a better function that checks if the
* hardware buffers are empty. However, such an API does not exist now,
* so we'll use the busy_wait_ms() function for now.
*/
#define SERIAL_FLUSH_TIME_MS 20

#define US_PER_S 1000000

unsigned int ticks_to_us(unsigned int ticks, unsigned int freq)
{
return (unsigned int) ((unsigned long long) ticks * US_PER_S / freq);
}

unsigned int us_to_ticks(unsigned int us, unsigned int freq)
{
return (unsigned int) ((unsigned long long) us * freq / US_PER_S);
}

unsigned int overflow_protect(unsigned int timestamp, unsigned int ticker_width)
{
unsigned int counter_mask = ((1 << ticker_width) - 1);

return (timestamp & counter_mask);
}

bool compare_timestamps(unsigned int delta_ticks, unsigned int ticker_width, unsigned int expected, unsigned int actual)
{
const unsigned int counter_mask = ((1 << ticker_width) - 1);

const unsigned int lower_bound = ((expected - delta_ticks) & counter_mask);
const unsigned int upper_bound = ((expected + delta_ticks) & counter_mask);

if (lower_bound < upper_bound) {
if (actual >= lower_bound && actual <= upper_bound) {
return true;
} else {
return false;
}
} else {
if ((actual >= lower_bound && actual <= counter_mask) || (actual >= 0 && actual <= upper_bound)) {
return true;
} else {
return false;
}
}
}

void busy_wait_ms(int ms)
{
const ticker_info_t *info = us_ticker_get_info();
uint32_t mask = (1 << info->bits) - 1;
int delay = (int) ((uint64_t) ms * info->frequency / 1000);

uint32_t prev = us_ticker_read();
while (delay > 0) {
uint32_t next = us_ticker_read();
delay -= (next - prev) & mask;
prev = next;
}
}

void us_ticker_isr(const ticker_data_t * const ticker_data)
{
us_ticker_clear_interrupt();
}

#ifdef DEVICE_LPTICKER
void lp_ticker_isr(const ticker_data_t * const ticker_data)
{
lp_ticker_clear_interrupt();
}
#endif

#endif

/** @}*/
Loading