Skip to content

Feature emac merge test #6635

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 1,243 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1243 commits
Select commit Hold shift + click to select a range
7b2ee2d
Merge pull request #6291 from mirelachirica/bc95_echotest_fixes
cmonr Mar 20, 2018
d7dfab5
Merge pull request #6370 from jeromecoutant/PR_LPT_RTC_OPTIM
cmonr Mar 20, 2018
a3d8c8f
Merge pull request #6363 from deepikabhavnani/seek_fix
cmonr Mar 20, 2018
53adeed
Merge pull request #6350 from u-blox/cellular_test
cmonr Mar 20, 2018
7ab4b06
Merge pull request #6338 from geky/fix-littlefs-dir-chain
cmonr Mar 20, 2018
0b7a9a9
Merge pull request #6333 from mikaleppanen/lwip_tcp_flag_corr
cmonr Mar 20, 2018
6cb6dd9
Merge pull request #6330 from bcostm/fix_pins_nucleo_l433rc_p
cmonr Mar 20, 2018
f3e2a3d
Merge pull request #6357 from anttiylitokola/master
cmonr Mar 20, 2018
2c7f909
Merge pull request #6245 from mbedNoobNinja/Sync_PR
cmonr Mar 20, 2018
53cb6e0
Merge pull request #6279 from AnttiKauppila/master
cmonr Mar 20, 2018
2e9ff47
Add an option to use LowPowerTimer for poll
amq Mar 21, 2018
a294aa0
LoRa: LoRaWANInterface refactored.
Mar 12, 2018
339306e
Ensure DR_6 cannot be selected for IN865 region
Feb 15, 2018
e206c1e
Changed RegionNextChannel function in order to return LoRaMacStatus_t…
Feb 16, 2018
6114f2b
Fix an issue with sequence calls.
Feb 16, 2018
fc1696b
Do only set the MacDone if the MAC is not in class c
Feb 16, 2018
c1ea418
Fix rx slot handling
Feb 16, 2018
256a3a5
Fix calculation of the aggregated time-off.
Feb 16, 2018
591bc7d
Add the possibility to set the default antenna gain.
Feb 16, 2018
a9e1076
Bug fix in RX timeout and RX error handling for class c nodes.
Feb 19, 2018
e097429
Remove unused is_fPort_allowed method
Feb 19, 2018
6c165e0
Changed mcps confirmation ul_frequency to channel
Feb 19, 2018
e1fff2e
Update handling for functions OnRadioRxError and OnRadioRxTimout.
Feb 19, 2018
65b2dbc
Update DevStatusAnd format
Feb 19, 2018
4aba343
Change minimum required channels from 6 to 2 (US915Hybrid)
Feb 19, 2018
a26fca8
Add set_device_class API to change active device class
Feb 20, 2018
32075b9
Fix reception of class C messages
Feb 22, 2018
c6eee4f
Simplify check for pending bit
Feb 28, 2018
fe225a8
Remove redundant event from timer callbacks
Mar 1, 2018
b63c98e
LoRa: LoRaPHY dependency removed from LoRaMacStack
Mar 15, 2018
6b54478
LoRaWANStack is made independent of MAC sublayers
Mar 16, 2018
489eecf
LoRa: LoRaMAC class refactored
Mar 16, 2018
dc98228
LoRa: Struct cleanups
Mar 20, 2018
cbdeb7d
LoRa: Added API break warnings for lorawan_channelplan_t struct and i…
Mar 20, 2018
d76d511
LPC176X: Fix flash program size
toyowata Mar 21, 2018
ef00693
STM32L4 ADC correct internal channel management
jeromecoutant Mar 21, 2018
2dc94b2
rtl8195am: fix LogUART Tx interrupt crash
M-ichae-l Mar 21, 2018
b3eb51a
lwIP: fix some IPv6 errors, eg TCP keepalive
kjbracey Mar 21, 2018
e2d0eaf
PR template: do not use task list
0xc0170 Mar 20, 2018
fbea6f1
Add missing Doxygen descriptions for Nanostack
Mar 8, 2018
c198357
Fix compilance test compilation
Mar 21, 2018
0f2659b
Merge pull request #6392 from OpenNuvoton/nuvoton_fix_uart
0xc0170 Mar 21, 2018
7125c8a
Merge pull request #6344 from tung7970/fix-tools
0xc0170 Mar 21, 2018
7b325f3
Merge pull request #6168 from hug-dev/cm3ds-memory
0xc0170 Mar 21, 2018
895e19a
Restore single-param InterruptIn ctor, to maintain binary compatibili…
bmcdonnell-ionx Mar 21, 2018
8d2214f
linebreaks
bmcdonnell-ionx Mar 21, 2018
a27dd66
Correct get_config imports
theotherjimmy Mar 21, 2018
58f5795
Merge pull request #6378 from geky/events-travis-prof
cmonr Mar 21, 2018
3ddca11
Merge pull request #6368 from kjbracey-arm/atomic_volatile
cmonr Mar 21, 2018
816890d
Merge pull request #6348 from 0xc0170/fix_pr_template
cmonr Mar 21, 2018
fd9a6af
Merge pull request #3 from AnttiKauppila/fix_compliance_test
Mar 22, 2018
f0865f8
[Nuvoton] Fix page size in flash IAP
ccli8 Mar 22, 2018
efe57a0
[M487] Support v3.0 pin map
cyliangtw Mar 22, 2018
04a3635
Merge pull request #6399 from jeromecoutant/PR_L4_TEMP
cmonr Mar 22, 2018
7c272fa
Merge pull request #6412 from jeromecoutant/PR_L4_ADC
cmonr Mar 22, 2018
9932b4c
Merge pull request #6309 from deepikabhavnani/peek_api
cmonr Mar 22, 2018
d3ab5c7
Added SerialWireOutput to mbed namespace
AGlass0fMilk Mar 22, 2018
fa8020e
Modified apt-get retry logic with Travis CI retry feature
cmonr Mar 22, 2018
a604800
Add overloaded get_erase_size API with address parameter to all block…
Mar 20, 2018
758f3b2
add support for the RAK811
ithinuel Feb 8, 2018
495f8e4
add RF_TXCO_EN on PH1 and set HSI calibration to its default value
ithinuel Feb 19, 2018
cd31272
Avoid incorrect config errors on export
theotherjimmy Mar 22, 2018
bac1f00
Remove supertarget
theotherjimmy Mar 23, 2018
26e1275
Merge pull request #6415 from M-ichae-l/rtl8195am-fix-logUART-Tx-inte…
cmonr Mar 23, 2018
ddf70f1
Merge pull request #6377 from scartmell-arm/feature-deep-sleep-tracin…
cmonr Mar 23, 2018
387027d
Merge pull request #6086 from pan-/gatt-client-unit-tests
cmonr Mar 23, 2018
4a5f4aa
Merge pull request #6419 from theotherjimmy/fix-get-config
cmonr Mar 23, 2018
e79060f
Merge pull request #6427 from AGlass0fMilk/SWO-mbed-namespace
cmonr Mar 23, 2018
6dc0c9d
Merge pull request #6388 from davidsaada/david_nvstore_set_alloc_key
cmonr Mar 23, 2018
801f27e
Merge pull request #6239 from bmcdonnell-ionx/interrupt-in-pin-mode
cmonr Mar 23, 2018
cffa1c0
Merge pull request #6437 from OpenNuvoton/nuvoton_fix_flash
cmonr Mar 23, 2018
0a0cc58
Merge pull request #6434 from cmonr/correct-apt-get-retrying
cmonr Mar 23, 2018
bf0393a
Added test for MbedCRC.h
Mar 23, 2018
331620e
Default constructor for template class should be part of header file
Mar 23, 2018
3cd8d3d
[Nuvoton] Remove unnecessary TIMER_Start in the end of lp_ticker_set_…
ccli8 Mar 26, 2018
5d453ed
[Nuvoton] Check timer active flag after enabling timer counting in us…
ccli8 Mar 26, 2018
ccec9d7
[Nuvoton] Add missing delay in lp_ticker
ccli8 Mar 26, 2018
f4fc5e6
Realtek: serial - line ending fix
0xc0170 Mar 26, 2018
4e7e9e9
Added Support for Toshiba TMPM46B
Jan 22, 2018
d7905ab
Modified ESG reset process
Mar 16, 2018
ee1bf13
CI build - case sensitive include header resolved
Mar 21, 2018
609441a
Dynamic vector relocation and formatting changes
Mar 23, 2018
a7d8eae
Low power consumption mode for deepsleep
Mar 26, 2018
afeb306
Revert "BLE: Gatt client unit tests"
0xc0170 Mar 26, 2018
eb806b6
Renaming Ublox library for mbed cellular framework
mudassar-ublox Mar 20, 2018
c07ef92
Adding deprecated warnings for old name
bqam-ublox Mar 26, 2018
d97d55a
Merge pull request #6450 from 0xc0170/fix_#6449
adbridge Mar 26, 2018
c316763
switch to stm32l151cb-a & work around flash size field width.
ithinuel Mar 26, 2018
50773b1
Merge pull request #6440 from theotherjimmy/remove-supertarget
cmonr Mar 26, 2018
c291b4a
Merge pull request #6428 from theotherjimmy/many-source-export
cmonr Mar 26, 2018
e9b234b
Merge pull request #6424 from OpenNuvoton/m487_v3
cmonr Mar 26, 2018
57b48f6
Merge pull request #6416 from kjbracey-arm/lwip_netconntype_fix
cmonr Mar 26, 2018
2673758
Merge pull request #6313 from SeppoTakalo/doxygen
cmonr Mar 26, 2018
062164e
Merge pull request #6452 from ARMmbed/revert-6086-gatt-client-unit-tests
cmonr Mar 26, 2018
c3f8cac
KL82Z: Fix the clock selection for LPUART module
mmahadevan108 Mar 27, 2018
c376e50
Moving deprecated warnings outside the class
bqam-ublox Mar 27, 2018
78d73a1
add the target to travis build script & sw4stm32 export script.
ithinuel Mar 27, 2018
cbba94b
Enable tickless mode on Silicon Labs targets
stevew817 Mar 27, 2018
88a2df7
fix device name (an mixed tab/space)
ithinuel Mar 27, 2018
3acdc81
Add alignment check in the flash_program_page
toyowata Mar 27, 2018
b60729d
Move filter dot into exporter base class
theotherjimmy Mar 27, 2018
c44dba3
Minimize include path size in uvision export
theotherjimmy Mar 27, 2018
e487043
Set up the ISR stack pointer in the right location on ARMCC
stevew817 Mar 27, 2018
25a2d15
Merge pull request #6487 from theotherjimmy/min-uvision-include
0xc0170 Mar 28, 2018
85af9f9
add IAR to the supported toolchain
ithinuel Mar 27, 2018
8b66c4b
[BLE] Fixed inconsistent casing issue for SecurityDb
Mar 28, 2018
773fb90
Merge pull request #6373 from 0xc0170/fix_flash_docs
adbridge Mar 28, 2018
fc412bb
Include LowPowerTimer.h
amq Mar 28, 2018
da96c56
[MAX32620C] Add new target
Feb 13, 2018
603a23f
Merge pull request #6467 from codeauroraforum/Fix_KL82_UART
cmonr Mar 29, 2018
4797b53
Merge pull request #6488 from SiliconLabs/bugfix/armcc_sp
cmonr Mar 29, 2018
f895392
Merge pull request #6413 from toyowata/lpc1768_flash_fix
cmonr Mar 29, 2018
d925a04
remove MODULE_UBLOX_ODIN_W2 from targets.json
Mar 29, 2018
717573f
Add an NV_SEED test to the config adjustment script
Mar 29, 2018
ebb28b3
Move the new check into the end of the previous line
Mar 29, 2018
1df5c02
Adding USI WM-BN-BM-22 as a new target
Mar 29, 2018
62e5dcc
Remove irrelevant comments
Mar 29, 2018
0615111
Merge pull request #5902 from ganesh-ramachandran/master
theotherjimmy Mar 29, 2018
8978859
Merge pull request #6394 from OpenNuvoton/nuvoton_fix_ticker
theotherjimmy Mar 29, 2018
64df0dd
Merge pull request #6408 from davidsaada/david_erase_size_addr
theotherjimmy Mar 29, 2018
eaa31dd
Merge pull request #6475 from SiliconLabs/feature/new/tickless
theotherjimmy Mar 29, 2018
2429d5e
Merge pull request #6494 from donatieng/securitydb_fix_casing
theotherjimmy Mar 29, 2018
24c7b1a
Move Mbed 5 support check so that it affects the exporters
theotherjimmy Mar 29, 2018
c8bd08f
Merge pull request #6043 from ithinuel/add-rak811
cmonr Mar 30, 2018
791e42e
Inrease thread stack size to 1024 bytes in NVStore test for NRF52
Mar 30, 2018
ef6d93e
Fix EV_COG_AD4050LZ `us_ticker_fire_interrupt()` minimal time interval
Apr 1, 2018
04eaabf
Fix EV_COG_AD3029LZ `us_ticker_fire_interrupt()` minimal time interval
Apr 1, 2018
bd47110
Fix IPv4 address parsing due to not-so-portable scanf modifier
forGGe Apr 2, 2018
8fdae13
Update mbed-coap to version 4.4.1
Apr 3, 2018
c837b3d
Test line-ending problems
Apr 3, 2018
10ad173
LoRa: Small fixes
Apr 3, 2018
d8aa587
L1 ST CUBE V1.8.1
bcostm Mar 26, 2018
8c0ff8b
Fix typos causing ARM build error
bcostm Mar 28, 2018
293b3bf
STM32L1: allow redefinition of FLASH_SIZE macro
bcostm Apr 3, 2018
8412807
Update stm32l151xba.h
bcostm Apr 3, 2018
4a5ac14
Merge pull request #6512 from theotherjimmy/export-check-rtos
cmonr Apr 3, 2018
0185964
Exclude files like `.main.cpp` from builds
theotherjimmy Apr 3, 2018
194b89c
Fix doxygen comments to reflect the deprecated functions
SenRamakri Apr 3, 2018
1b58e58
Fix deep sleep locking for Timeout class
c1728p9 Mar 27, 2018
1529ad6
Merge pull request #6518 from marcuschangarm/fix-nvstore-stack
0xc0170 Apr 4, 2018
75cb4d7
Merge pull request #6411 from AnttiKauppila/stack_refactoring
Apr 4, 2018
2bb78d4
Fix assembly file extension
Apr 4, 2018
de4d704
add ADC_AN0-2 mapped on PA_0-2
ithinuel Apr 5, 2018
4eff47f
Remove MPS2 M1
theotherjimmy Apr 5, 2018
f34fedd
Error on invalid mbed_lib JSON
theotherjimmy Apr 5, 2018
d374bb4
Correct armc6 detection logic
theotherjimmy Apr 5, 2018
fff7299
Merge pull request #6533 from c1728p9/timeout_fix
0xc0170 Apr 6, 2018
bbf9c26
Merge pull request #6527 from OPpuolitaival/gitattribute_check
0xc0170 Apr 6, 2018
02d4631
Merge pull request #6528 from anttiylitokola/mbed_coap_4.4.1
0xc0170 Apr 6, 2018
3328ecd
Merge pull request #6531 from SenRamakri/sen_DeprecatedFixes
0xc0170 Apr 6, 2018
54b6aa3
Merge pull request #6490 from li-ho/ev-cog-us-ticker-fire-interrupt
0xc0170 Apr 6, 2018
501953b
Merge pull request #6442 from deepikabhavnani/crc_test
0xc0170 Apr 6, 2018
ca86cbf
Code::Blocks project file exporter
Mar 27, 2018
f53154a
some modifications from review
Mar 27, 2018
209310c
remove NCS36510 specific changes from this branch
Mar 27, 2018
8478ec2
copy ncs36510addfib.py into project root, because it cannot be relied…
Mar 27, 2018
84fe7ed
skip -c, sort compiler options and file list
Apr 3, 2018
7b7d5fc
exporter: properly export libraries
Apr 4, 2018
69d7c53
proper compile flags for Release target; add fib/trim files to .mbedi…
Apr 5, 2018
696a7f5
generate .mbedignore files in bin and obj to prevent mbed compile fro…
Apr 6, 2018
6ef331b
LoRa: Fixed cflist decoding issue
Apr 6, 2018
f331ac3
Merge pull request #6402 from u-blox/cellular_test_target
0xc0170 Apr 6, 2018
acb5318
CM3DS: enable TRNG with open-source TZ-TRNG driver
hug-dev Dec 13, 2017
f5385e7
Merge pull request #6524 from forGGe/fix_address_parsing_
0xc0170 Apr 6, 2018
8007b1d
Use temporarily MSI or HSI when exiting Deep Sleep
LMESTM Mar 28, 2018
3d92af5
Add delay to let clock stabilize when out of deep sleep
LMESTM Apr 6, 2018
65ac615
Merge pull request #6557 from AnttiKauppila/IOTCELL-754
0xc0170 Apr 6, 2018
ad4a250
Style fix
LMESTM Apr 6, 2018
83100d2
Merge pull request #6497 from bcostm/PULL_REQUEST_CUBE_UPDATE_L1_V1.8.1
0xc0170 Apr 6, 2018
89301b1
Merge pull request #6552 from theotherjimmy/error-invalid-lib
theotherjimmy Apr 6, 2018
192a8e5
Merge pull request #6530 from theotherjimmy/exclude-dot-files
theotherjimmy Apr 6, 2018
8766030
Fixed Travis rate-limit issue with Github requests
geky Apr 7, 2018
d1bbd21
LoRa: Improved handling of region selection
Apr 6, 2018
1310392
LoRa: Removed unneeded function and cleaned up some code
Apr 6, 2018
fa062ff
LoRa: Moved connect logic from LoRaWANStack to LoRaMac class
Apr 9, 2018
63b56d5
DISCO_F769NI: set clock_source to USE_PLL_HSE_EXTC
bcostm Apr 9, 2018
db167af
LoRa: Fixed doxygen error, enabled commented out code
Apr 9, 2018
1a86bb3
Removed default values from internal functions
Apr 9, 2018
d796062
cellular: ATHandler send delay
Apr 9, 2018
328919c
cellular: doxygen correction
Apr 9, 2018
96610a6
LoRa: Improved region macro handling
kjbracey Apr 9, 2018
1b2f63a
Merge pull request #6503 from maximmbed/add-platform-MAX32620C
0xc0170 Apr 9, 2018
a3faf58
Merge pull request #6511 from ashok-rao/MTB_USI_BM22
0xc0170 Apr 9, 2018
96084a3
Merge pull request #6561 from LMESTM/Stm32DeepSleepClock
0xc0170 Apr 9, 2018
854e436
Merge pull request #6481 from tsailer/exporter-codeblocks
theotherjimmy Apr 9, 2018
8b2eb20
Merge pull request #6553 from theotherjimmy/stmL4-armc6
0xc0170 Apr 9, 2018
3569d24
replace tab with spaces
Apr 9, 2018
5e62d17
Merge pull request #6566 from AnttiKauppila/stack_cleanup
0xc0170 Apr 10, 2018
f6decc0
Initialize mcps_indication status
Mar 27, 2018
10c269b
Add some debug traces
Mar 27, 2018
01fd880
Fix Coverity warning
Mar 29, 2018
19883f1
Lora: Introduce new receive API which returns port and flags
Apr 10, 2018
67157fc
LoRa: Internal include paths corrected
Apr 10, 2018
495ae06
Merge pull request #6509 from k-stachowiak/nvseed-check
0xc0170 Apr 10, 2018
1c6d485
Merge pull request #6572 from TeemuKultala/at_send_wait
Apr 10, 2018
d9e5c4b
Merge pull request #6505 from netanelgonen/remove_target
Apr 10, 2018
e913e91
Merge pull request #6544 from ithinuel/add_rak811_adc
Apr 10, 2018
96a562a
Merge pull request #6550 from theotherjimmy/remove-m1
Apr 10, 2018
3bc2d2e
Merge pull request #6564 from ARMmbed/g-fix-rate-limit
Apr 10, 2018
1661fc2
Modified state machine, added cellular state and callback.
Mar 6, 2018
83ea9be
temp commit while changing work...
Mar 8, 2018
c26311b
async works. Retry logic needs refining.
Mar 9, 2018
702efc1
Temp commit, not compiling...
Mar 13, 2018
2b14a9e
temp
Mar 13, 2018
d1f2e91
Working version of async registration.
Mar 14, 2018
231458d
Picked Ari's changed to reduce stack size. Removed device info printi…
Mar 15, 2018
b400d18
Wait for modem ready signal in startup sequence.
Mar 16, 2018
f0026e4
review fixed and some minor improvements.
Mar 16, 2018
8984324
Separated context activation from connect, increased stack size to 20…
Mar 20, 2018
f6be35c
Fixed coverity warnings for AT_CellularSMS.cpp
Mar 20, 2018
0ebfa35
Fixed coverity warnings for class CellularConnectionFSM
Mar 20, 2018
af0de8e
Fixed coverity warnings for class AT_CellularDevice.
Mar 20, 2018
12b0bc4
Fixed coverity warnings for AT_CellularStack.
Mar 20, 2018
fa61f09
Fixed coverity warning for class CellularUtil.
Mar 20, 2018
54ab974
Fixed coverity warnings for targets folder. Also fixed one bug while …
Mar 21, 2018
84b445f
Fixed coverity warnings for class ATHandler and removed unnecessary a…
Mar 21, 2018
6072407
Cellular: async FSM updates
Mar 23, 2018
af2890d
Improved registration phase in state machine.
Mar 26, 2018
f6a0403
Fixed build by removing unnecessary include.
Mar 27, 2018
ea9869e
Cellular: Greentea tests for UDP socket
Mar 27, 2018
6f3eebc
Fixed possible crash and removed trace from greentea.
Mar 27, 2018
ac9b882
Fixed bug in state machine registaring phase.
Mar 27, 2018
d52b502
Fix typo with NVStore
ccli8 Apr 11, 2018
d7cabe2
Cellular Greentea tests fixed
Mar 27, 2018
8c019e6
Cellular: Remove excessive destructor declaration to fix compile error
Mar 27, 2018
c82fd31
Removed double attach from EasyCellularConnection.
Mar 28, 2018
dcdb7a5
Fixed state machine to accept roaming as valid registration.
Mar 28, 2018
d828959
Cellular: Greentea test timeouts increased
Mar 28, 2018
c036b66
Doxygen fixes for copy-paste errors.
Mar 28, 2018
9531bbe
BC95 fixes
Mar 28, 2018
3142853
Fixed missing doxygen param.
Mar 29, 2018
12e1f07
modified at timeout while doing attach and connect as it might take u…
Mar 29, 2018
f7f21dc
Cellular: review fixes and fixed unit tests.
Apr 4, 2018
b3226ac
Cellular: Fixed rebase error.
Apr 6, 2018
9c185d9
Cellular: Fixing to skip greentea test if sim pin is not configured.
Apr 9, 2018
a463b07
Merge pull request #6496 from jarvte/async_cellular
0xc0170 Apr 12, 2018
66821da
PR template: fix tick definition
0xc0170 Apr 12, 2018
7f67196
Merge pull request #6595 from OpenNuvoton/nuvoton_fix_nvstore
Apr 12, 2018
e1a63f9
Merge pull request #6587 from AnttiKauppila/include_fix
Apr 12, 2018
94103f9
Merge pull request #6586 from kivaisan/new_receive_method
Apr 12, 2018
5234075
Merge pull request #6567 from bcostm/fix_xtal_disco_f769ni
Apr 12, 2018
339283b
Merge pull request #6418 from amq/poll-lowpowertimer
Apr 12, 2018
641e814
Merge pull request #6169 from hug-dev/cm3ds-trng
Apr 12, 2018
68ebbb0
Merge pull request #6569 from kivaisan/LORAWAN_FEATURE_BRANCH
Apr 12, 2018
cabef4d
Merge pull request #6619 from 0xc0170/fix_pr_x
0xc0170 Apr 13, 2018
547fd10
Test merge of feature-emac with master
kjbracey Apr 13, 2018
03be19e
fixup! Nanostack EMAC implementation
kjbracey Apr 13, 2018
8a259eb
fixup! Networking update: general refactoring, unifying EMAC
kjbracey Apr 13, 2018
7e1c789
fixup! Networking update: general refactoring, unifying EMAC
kjbracey Apr 13, 2018
722db40
fixup! Networking update: general refactoring, unifying EMAC
kjbracey Apr 16, 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
  •  
  •  
  •  
67 changes: 28 additions & 39 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,28 @@
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 and so on.

## Steps to test or reproduce

Outline the steps to test or reproduce the PR here.
### Description

<!--
Required
Add here detailed changes summary, testing results, dependencies
Good example: https://os.mbed.com/docs/latest/reference/guidelines.html#workflow (Pull request template)
-->


### Pull request type

<!--
Required
Please add only one X to one of the following types. Do not fill multiple types (split the pull request otherwise) or
change the layout.

[X] Fix
[ ] Refactor
[ ] New target
[ ] Feature
[ ] Breaking change
-->

[ ] Fix
[ ] Refactor
[ ] New target
[ ] Feature
[ ] Breaking change
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ BUILD/
.mbed
venv/

# Mbedls
.mbedls-mock.lock

# Eclipse Project Files
.cproject
.project
Expand Down Expand Up @@ -44,6 +47,8 @@ pip-log.txt
.coverage
.tox
nosetests.xml
.cache
.hypothesis

# Translations
*.mo
Expand Down Expand Up @@ -72,6 +77,9 @@ debug.log
# Cscope
cscope.*

# Ctags
tags

# vim swap files
*.swp
*~
Expand Down
114 changes: 63 additions & 51 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ python:
env:
global:
- >
STATUS=$'curl -so/dev/null --user $MBED_BOT --request POST
STATUS=$'curl -so/dev/null --user "$MBED_BOT" --request POST
https://api.github.com/repos/$TRAVIS_REPO_SLUG/statuses/${TRAVIS_PULL_REQUEST_SHA:-$TRAVIS_COMMIT}
--data @- << DATA\n{
"state": "$0",
"description": "$1",
"context": "travis-ci/$NAME/$(python --version)",
"context": "travis-ci/$NAME",
"target_url": "https://travis-ci.org/$TRAVIS_REPO_SLUG/jobs/$TRAVIS_JOB_ID"
}\nDATA'

Expand All @@ -30,7 +30,8 @@ before_install:
- sudo ln -s $HOME/.cache/apt /var/cache/apt/archives
# Setup ppa to make sure arm-none-eabi-gcc is correct version
- sudo add-apt-repository -y ppa:team-gcc-arm-embedded/ppa
- sudo apt-get update -qq
# Loop until update succeeds (timeouts can occur)
- travis_retry $(! sudo apt-get update 2>&1 |grep Failed)

after_success:
- bash -c "$STATUS" success "Local $NAME testing has passed"
Expand Down Expand Up @@ -73,10 +74,6 @@ matrix:

- env:
- NAME=tools
python:
- '2.7'
- '3.5'
- '3.6'
install:
# Install dependencies
- sudo apt-get install gcc-arm-embedded
Expand All @@ -88,7 +85,7 @@ matrix:
script:
# Run local testing on tools
- PYTHONPATH=. coverage run -a -m pytest tools/test
- python2 tools/test/pylint.py
- python tools/test/pylint.py
- coverage run -a tools/project.py -S | sed -n '/^Total/p'
- coverage html
after_success:
Expand All @@ -112,8 +109,30 @@ matrix:
# Check that example compiles
- sed -n '/``` cpp/,/```/{/```$/Q;/```/d;p;}' $EVENTS/README.md > main.cpp
- python tools/make.py -t GCC_ARM -m K64F --source=. --build=BUILD/K64F/GCC_ARM -j0
# Check that example compiles without rtos
- sed -n '/``` cpp/,/```/{/```$/Q;/```/d;p;}' $EVENTS/README.md > main.cpp
- rm -r rtos features/cellular features/netsocket features/frameworks BUILD
- python tools/make.py -t GCC_ARM -m DISCO_F401VC --source=. --build=BUILD/DISCO_F401VC/GCC_ARM -j0
# Run local equeue tests
- make -C $EVENTS/equeue test
# Run profiling tests
- make -C $EVENTS/equeue prof | tee prof
after_success:
# update status if we succeeded, compare with master if possible
- |
CURR=$(grep -o '[0-9]\+ cycles' prof | awk '{sum += $1} END {print sum}')
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(\"runtime is (?<runtime>[0-9]+)\").runtime" \
|| echo 0)

STATUSM="Passed, runtime is ${CURR} cycles"
if [ "$PREV" -ne 0 ]
then
STATUSM="$STATUSM ($(python -c "print '%+d' % ($CURR-$PREV)") cycles)"
fi
- bash -c "$STATUS" success "$STATUSM"

- env:
- NAME=littlefs
Expand All @@ -140,17 +159,20 @@ matrix:
- sudo chmod a+rw /dev/loop0
- dd if=/dev/zero bs=512 count=2048 of=DISK
- losetup /dev/loop0 DISK
- CFLAGS="-Werror -Wno-format"
script:
# Check that example compiles
- export CFLAGS="-Werror -Wno-format"
- sed -n '/``` c++/,/```/{/```/d;p;}' $LITTLEFS/README.md > main.cpp
- python tools/make.py -t GCC_ARM -m K82F --source=. --build=BUILD/K82F/GCC_ARM -j0
# Run local littlefs tests
- CFLAGS="-Wno-format" make -C$LITTLEFS/littlefs test QUIET=1
- make -C$LITTLEFS/littlefs test QUIET=1
# Run local littlefs tests with set of variations
- CFLAGS="-Wno-format -DLFS_READ_SIZE=64 -DLFS_PROG_SIZE=64" make -C$LITTLEFS/littlefs test QUIET=1
- CFLAGS="-Wno-format -DLFS_READ_SIZE=1 -DLFS_PROG_SIZE=1" make -C$LITTLEFS/littlefs test QUIET=1
- CFLAGS="-Wno-format -DLFS_READ_SIZE=512 -DLFS_PROG_SIZE=512" make -C$LITTLEFS/littlefs test QUIET=1
- CFLAGS="-Wno-format -DLFS_BLOCK_COUNT=1023 -DLFS_LOOKAHEAD=2048" make -C$LITTLEFS/littlefs test QUIET=1
- make -C$LITTLEFS/littlefs test QUIET=1 CFLAGS+="-DLFS_READ_SIZE=64 -DLFS_PROG_SIZE=64"
- make -C$LITTLEFS/littlefs test QUIET=1 CFLAGS+="-DLFS_READ_SIZE=1 -DLFS_PROG_SIZE=1"
- make -C$LITTLEFS/littlefs test QUIET=1 CFLAGS+="-DLFS_READ_SIZE=512 -DLFS_PROG_SIZE=512"
- make -C$LITTLEFS/littlefs test QUIET=1 CFLAGS+="-DLFS_BLOCK_COUNT=1023 -DLFS_LOOKAHEAD=2048"
- make -C$LITTLEFS/littlefs clean test QUIET=1 CFLAGS+="-DLFS_NO_INTRINSICS"
# Self-hosting littlefs fuzz test with littlefs-fuse
- make -Clittlefs_fuse
- littlefs_fuse/lfs --format /dev/loop0
Expand All @@ -159,43 +181,33 @@ matrix:
- mkdir MOUNT/littlefs
- cp -r $(git ls-tree --name-only HEAD $LITTLEFS/littlefs/) MOUNT/littlefs
- ls MOUNT/littlefs
- CFLAGS="-Wno-format" make -CMOUNT/littlefs -B test_dirs QUIET=1
- CFLAGS="-Wno-format" make -CMOUNT/littlefs -B test_dirs test_files QUIET=1
# Compile and find the code size with smallest configuration
- cd $TRAVIS_BUILD_DIR/$LITTLEFS/littlefs
- make clean size
CC='arm-none-eabi-gcc -mthumb'
OBJ="$(ls lfs*.o | tr '\n' ' ')"
CFLAGS+="-DLFS_NO{ASSERT,DEBUG,WARN,ERROR}"
| tee sizes
after_success:
# update status if we succeeded, compare with master if possible
- |
CURR=$(tail -n1 sizes | awk '{print $1}')
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(\"code size is (?<size>[0-9]+)\").size" \
|| echo 0)

- &mbed-2
env: NAME=mbed2-NXP
install:
# Install dependencies
- export GCC_DIR=$HOME/gcc-arm-none-eabi-6-2017-q2-update
- export GCC_ARCHIVE=$HOME/gcc-arm-none-eabi-6-2017-q2-update-linux.tar.bz2
- export GCC_URL=https://developer.arm.com/-/media/Files/downloads/gnu-rm/6-2017q2/gcc-arm-none-eabi-6-2017-q2-update-linux.tar.bz2?revision=2cc92fb5-3e0e-402d-9197-bdfc8224d8a5?product=GNU%20Arm%20Embedded%20Toolchain,64-bit,,Linux,6-2017-q2-update
- if [ ! -e $GCC_DIR/bin/arm-none-eabi-gcc ]; then wget $GCC_URL -O $GCC_ARCHIVE; tar xfj $GCC_ARCHIVE -C $HOME; fi
- export PATH=$PATH:$GCC_DIR/bin
- pip install -r requirements.txt
# Print versions we use
- arm-none-eabi-gcc --version
- python --version
before_script:
# Create BUILD directory for tests
- mkdir BUILD
STATUSM="Passed, code size is ${CURR}B"
if [ "$PREV" -ne 0 ]
then
STATUSM="$STATUSM ($(python -c "print '%+.2f' % (100*($CURR-$PREV)/$PREV.0)")%)"
fi
- bash -c "$STATUS" success "$STATUSM"

- env:
- NAME=gitattributestest
script:
# Run local mbed 2 testing
- python -u tools/build_travis.py --vendor "${NAME#mbed2-}"
- <<: *mbed-2
env: NAME=mbed2-STM
- <<: *mbed-2
env: NAME=mbed2-NORDIC
- <<: *mbed-2
env: NAME=mbed2-SILICON_LABS
- <<: *mbed-2
env: NAME=mbed2-MAXIM
- <<: *mbed-2
env: NAME=mbed2-ATMEL
- <<: *mbed-2
env: NAME=mbed2-NUVOTON
- <<: *mbed-2
env: NAME=mbed2-RENESAS
# Change python version here only because 3x the other jobs does not add any more coverage
python:
- '2.7'
- '3.5'
- '3.6'
# Check that no changes after clone. This check that .gitattributes is used right way.
- git diff --exit-code
25 changes: 25 additions & 0 deletions LICENSE-BSD-3-Clause
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Copyright 2017 Arm Limited and affiliates.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
5 changes: 4 additions & 1 deletion TESTS/events/timing/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ void semaphore_timing_test() {
equeue_sema_wait(&sema, delay);
int taken = timer.read_us() - start;

printf("delay %dms => error %dus\r\n", delay, abs(1000*delay - taken));
if (taken < (delay * 1000 - 5000) || taken > (delay * 1000 + 5000)) {
printf("delay %dms => error %dus\r\n", delay, abs(1000 * delay - taken));
}

TEST_ASSERT_INT_WITHIN(5000, taken, delay * 1000);

led = !led;
Expand Down
76 changes: 76 additions & 0 deletions TESTS/host_tests/system_reset.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
"""
Copyright (c) 2018 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.
"""
import time
from mbed_host_tests import BaseHostTest
from mbed_host_tests.host_tests_runner.host_test_default import DefaultTestSelector

DEFAULT_CYCLE_PERIOD = 1.0

MSG_VALUE_DUMMY = '0'

MSG_KEY_DEVICE_READY = 'ready'
MSG_KEY_DEVICE_RESET = 'reset'
MSG_KEY_SYNC = '__sync'

class SystemResetTest(BaseHostTest):
"""Test for the system_reset API.

Given a device running code
When the device is restarted using @a system_reset()
Then the device is restarted
"""

def __init__(self):
super(SystemResetTest, self).__init__()
self.reset = False
cycle_s = self.get_config_item('program_cycle_s')
self.program_cycle_s = cycle_s if cycle_s is not None else DEFAULT_CYCLE_PERIOD

self.test_steps_sequence = self.test_steps()
# Advance the coroutine to it's first yield statement.
self.test_steps_sequence.send(None)

def setup(self):
self.register_callback(MSG_KEY_DEVICE_READY, self.cb_device_ready)

def cb_device_ready(self, key, value, timestamp):
"""Acknowledge device rebooted correctly and feed the test execution
"""
self.reset = True

try:
if self.test_steps_sequence.send(value):
self.notify_complete(True)
except (StopIteration, RuntimeError) as exc:
self.notify_complete(False)

def test_steps(self):
"""Reset the device and check the status
"""
system_reset = yield

self.reset = False
self.send_kv(MSG_KEY_DEVICE_RESET, MSG_VALUE_DUMMY)
time.sleep(self.program_cycle_s)
self.send_kv(MSG_KEY_SYNC, MSG_VALUE_DUMMY)

system_reset = yield

if self.reset == False:
raise RuntimeError('Platform did not reset as expected.')

# The sequence is correct -- test passed.
yield True
Loading