Skip to content

Release candidate for mbed-os-5.12.1 #10326

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
Apr 8, 2019
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
e2785be
DNS recv/send returning WOULD_BLOCK force delayed retry
michalpasztamobica Feb 27, 2019
90f11a1
NUCLEO_H743ZI: Arduino A5 is mapped on ADC3_IN6
jeromecoutant Mar 4, 2019
e441f1f
SAML21J18A: #endif without #if in analogout_api.c
janjongboom Mar 4, 2019
05b1f44
TEST_APPS socket_app leaks memory when cannot initialize packetSizes
janjongboom Mar 7, 2019
e206f61
cellular: BC95 memory leak fix
Mar 7, 2019
842d5d4
GigaDevice targets can return ninitialized variable in CAN driver
janjongboom Mar 7, 2019
f2f3351
Dead pointer usage in GenericSecurityManager
janjongboom Mar 7, 2019
b2a294e
Error check for reallocation memory fail
Mar 12, 2019
203b3a6
Removed PSoC6 SystemInit Workaround for ARM compiler
Mar 11, 2019
2b80f96
Tests: check if recv returned too much data
michalpasztamobica Mar 1, 2019
3a02466
Remove #ifndef NO_GREENTEA from tests
Mar 3, 2019
360fcf2
Fix lwip to compile if MBED_CONF_LWIP_DEBUG_ENABLED is defined
Mar 5, 2019
49e0bf4
Update Wi-SUN network default name
Mar 4, 2019
cf7550f
BLE:Cordio:insert_descriptor check r/w properties
desmond-blue Mar 4, 2019
b031dfa
Cellular: removed manual registering state.
Mar 1, 2019
716e4d4
OdinWifiInterface is calling memcpy with a null pointer
janjongboom Mar 7, 2019
ecfb82e
Remove intervaltree from requirements.txt for mbed-os as it contradic…
linlingao Mar 7, 2019
5a35956
BLE:Fix cordio reset sequence
desmond-blue Mar 14, 2019
c5b540d
Remove fuzzywuzzy dependency
arekzaluski Mar 14, 2019
61851aa
Add missing RSPIF component to the defaut BlockDevice handler
Mar 5, 2019
0c67c63
Update manifest tool to version 1.4.8 and install it from pypi
arekzaluski Mar 14, 2019
ba751e3
Correctly include EventQueue.h
vmedcy Feb 21, 2019
9504abd
BLE - Report extended advertising in legacy handler if legacy API in …
pan- Mar 3, 2019
57636b0
BLE:Cordio:Fix insert characteristic not handle error
desmond-blue Mar 4, 2019
931add3
Increased timeout for lwip waiting netif_is_link_up
Mar 5, 2019
255a4d4
Refactoring PWM driver for RZ/A1
d-kato Mar 7, 2019
7f08937
Changed PWM period setting register for RZ/A1
d-kato Mar 7, 2019
080ca96
Remove noise when duty is 0% and 100%
d-kato Mar 7, 2019
41c422b
Add PWM pin for GR-LYCHEE
d-kato Mar 7, 2019
a384f14
Fix condition statement of write function
d-kato Mar 11, 2019
092bacb
Add imports of basestring for python 3
bridadan Mar 6, 2019
46f9357
change tick rate to 1 ms
paul-szczepanek-arm Mar 7, 2019
1657329
BLE - Use LowPowerTimer instead of Timer in the Cordio stack.
pan- Mar 7, 2019
ab06c1f
BLE - Use LowPower Ticker and Timer for address rotation and scan tim…
pan- Mar 7, 2019
afcf694
Update nanostack-interface error mapping
Mar 8, 2019
d025435
Correct post-build filtering options
theotherjimmy Mar 12, 2019
bc1fbe3
Explicitly return None
theotherjimmy Mar 12, 2019
a5b13ab
Simplify conditions with get and getattr optional arguments
theotherjimmy Mar 12, 2019
c853372
Clean up all lint warnings in targets
theotherjimmy Mar 12, 2019
6cbe74f
Cellular: AT information response to return false on empty prefix
Mar 13, 2019
7482a86
BLE:fix on_phy_update_complete function
desmond-blue Mar 14, 2019
f0e61e7
Support Cinterion EHS5-E cellular module
Mar 14, 2019
7d37750
Fix registration modes and disable CGSN with type
Mar 15, 2019
4408bb6
Disable dual stack mode
Mar 15, 2019
bd15aea
Revert "Disable dual stack mode"
Mar 15, 2019
f78e7c7
Disable dual stack mode for ehs5-e
Mar 15, 2019
ef6ced3
Selectively append changes to exported config files
Mar 15, 2019
5df6231
mbed_error.c: fix warnings
kjbracey Mar 15, 2019
c2e730c
Cellular: Remove compile dependency of UARTSerial
Mar 11, 2019
fc37879
Fix include paths for uvision when exported with Python 3.
bridadan Mar 8, 2019
c0fba2f
Ensure all exported paths use Posix style separators.
bridadan Mar 11, 2019
9503734
Fixing uvision exporter with CPM updates
bridadan Mar 11, 2019
c9fcf72
Setup connection profile with username and password
Mar 14, 2019
390eea4
Cellular: call AT+CGEREP after sim is ready
Mar 13, 2019
676408d
test_configs: generic app config for boards with Wi-Fi
Mar 14, 2019
d2a645d
cellular: remove last CELLULAR_DEVICE references
Mar 8, 2019
811984a
Cellular: fix astyle for files that already in master
Mar 18, 2019
85d832e
STM32H7 ADC internal channels
jeromecoutant Mar 18, 2019
5e39bf8
Adding STM32_F439 as a new MTB target
Mar 17, 2019
2daa3e6
Removing redundant code.
Mar 18, 2019
54c8d5a
Nanostack 802.15.4 RF drivers update
Mar 18, 2019
a12f8cd
Cellular: don't allow ATHandler read/write if filehandle not usable
Mar 18, 2019
9567800
Cellular: Fix network interface test for cellular targets
Mar 15, 2019
56815a1
USBMSD: Add media removal event check function
maciejbocianski Jan 21, 2019
0e3219e
Add USB mass storage test
maciejbocianski Jan 21, 2019
e49d00f
MTB_STM_L475: fix UART clock
Mar 19, 2019
e16a275
Atmel RF: use system wait_ns
kjbracey Mar 18, 2019
6bd4ea8
Refactor socket stats to reduce bioler plate
michalpasztamobica Mar 6, 2019
c65fec3
Cellular: Fix max packet size for BC95 driver
Mar 21, 2019
4d40487
SPIF: Fix SPI_FREQ for MTB_ADV_WISE_1570
Mar 21, 2019
4402908
C030_N2XX default interface
mudassar-ublox Mar 21, 2019
2ab9540
Remove SD component from targets.json
ccli8 Mar 21, 2019
bff6753
Added './' prefix to all directories in .astyleignore This forces dir…
Mar 19, 2019
c6ae213
Added missing astyle corrections for usb/device/targets/*
Mar 19, 2019
7ba2b9b
Added missing astyle corrections for TESTS/mbed_hal/*
Mar 19, 2019
3c17155
DISCO_L496AG: Add PMOD and STMOD+ connector
jeromecoutant Mar 21, 2019
4230797
Replaced './' with '^' in .astyleignore file. '^' matches start of li…
Mar 25, 2019
709e36f
Updated astyle to work with updated .astyleignore file fgrep === grep…
Mar 26, 2019
9a5839a
Refactor crypto service proxy
Mar 11, 2019
f8cdd41
Use psa prefix for crypto.h include
Mar 12, 2019
8bc0c45
Use PSA_NULL_HANDLE when testing for invalid handles
Mar 12, 2019
0bd2275
Set handle to PSA_NULL_HANDLE when closing IPC connection
Mar 12, 2019
e2eea51
Unify sections titles/comments & fix typo in comment
Mar 12, 2019
f45801a
Unify code style
Mar 12, 2019
e53e8b9
Remove uneeded TODO comment from the code
Mar 18, 2019
5b4b438
Adding support for SDP-K1.
malavikasajikumar Mar 7, 2019
cfcefd3
Fixing alignment on the lines for SDP-K1 description.
malavikasajikumar Mar 8, 2019
84fe82e
Removing commented out lines. Added SDP connector pins.
malavikasajikumar Mar 8, 2019
4b08087
Adding SPDX identifier (year 2019) to the license.
malavikasajikumar Mar 8, 2019
41ba2da
Fixing for Travis CI test fail. 5e9e140.
malavikasajikumar Mar 8, 2019
bb863b3
Adding support for SDP connector pins.
malavikasajikumar Mar 8, 2019
792d3b0
Updating SPDX-License-Identifier.
malavikasajikumar Mar 8, 2019
ad163d7
Disabling LPTICKER for now. Fixing a few more alignment issues.
malavikasajikumar Mar 11, 2019
865a5dc
Renaming SDP-K1 to SDP_K1.
malavikasajikumar Mar 18, 2019
b8a626c
Fix MBED_RAM_START/MBED_RAM_SIZE symbol generation
ccli8 Mar 7, 2019
9b9125a
Fixed issue with PWM not being freed when the object is destroyed
cy-opm Mar 13, 2019
3e9e126
Add baremetal example to testing
Mar 17, 2019
ed08c8f
Remove gnuarmeclipse from baremetal export testing
kegilbert Mar 22, 2019
18e8671
Bug related to downlink sequence counter rollover
itziardelatorre Mar 18, 2019
c4c6515
Applied suggested astyle fix(es)
itziardelatorre Mar 19, 2019
ca23b43
Remove dependency on us_ticker HAL apis for non USTICKER targets
Mar 19, 2019
83f9243
Add USTICKER to ARCH_PRO target
Mar 20, 2019
b130fae
Add USTICKER to more targets
Mar 21, 2019
24a3b0c
LPC targets: Compile us_ticker.c only if USTICKER defined
Mar 24, 2019
5664a92
Workaround for ARMC6 Windows 7 assembler issue
lrusinowicz Mar 21, 2019
6b0897b
Nanostack 802.15.4 RF drivers update
Mar 21, 2019
4897ff2
Fixed compilation error in LWIPStack class if lwip tcp is disabled.
tymoteuszblochmobica Mar 21, 2019
03427b3
readme: remove waffle as not supported soon
0xc0170 Mar 22, 2019
be524bb
Define program_cycle_s for NXP LPC55S69
Mar 24, 2019
ad79a3b
Define program_cycle_s for CY8CKIT_062_WIFI_BT
Mar 24, 2019
8e298cc
Fixing premature RX2 abort
Mar 22, 2019
1f322d2
Ack timeout must be at least 2 seconds
Mar 22, 2019
6b51397
Unit test fix LoRaPHY_stub
Mar 22, 2019
c5a0d46
Improve general Block Device tests
Mar 26, 2019
2e61afe
Cellular: WISE-1570 needs greater receiving timeout to pass UDPSOCKET…
Mar 20, 2019
5ef3e07
Add button names BUTTON1/BUTTON2
ccli8 Mar 25, 2019
65a4de1
Fix the value of SystemCoreClock
d-kato Mar 25, 2019
306ab7a
Removed clock mode decision of "SystemCoreClockUpdate()"
d-kato Mar 25, 2019
fe1b368
Refactoring system clock driver
d-kato Mar 25, 2019
012a117
Changed LOOP_SCALER of "wait_ns()"
d-kato Mar 25, 2019
91507a8
Overhaul logging and verbosity
Mar 20, 2019
b5acac0
List PSA secure platform and add choices option
Mar 20, 2019
6931389
Refactor
Mar 20, 2019
094efe6
Docs update
Mar 20, 2019
4f329af
Add list option
Mar 20, 2019
048e983
small fix
orenc17 Mar 20, 2019
f3db129
Revert back to direct calls to python
Mar 21, 2019
400b024
Specify extra args with -x and verbose_check_call
Mar 25, 2019
c397d9e
Missing docstring
Mar 26, 2019
3f63ffb
Set default value of extra args to []
Mar 26, 2019
cfe0c34
bounce scan timeout of the queue
paul-szczepanek-arm Mar 25, 2019
aa6ff68
update comments
paul-szczepanek-arm Mar 25, 2019
d28d49c
simplify call
paul-szczepanek-arm Mar 25, 2019
4680842
cellular_network_test compilation error removed
mudassar-ublox Mar 26, 2019
d5af559
Add crypto acl test - key derivation
Mar 18, 2019
37d28db
Add crypto acl test - key agreement
Mar 19, 2019
42b051e
Crypto acl tests destroy keys
Mar 19, 2019
785a326
Fix typos
Mar 26, 2019
825114e
Handle oversized packets in tcp, tls and udp socket tests
michalpasztamobica Feb 25, 2019
16f74c6
Correct thread status callback functionality. At the start-up, there …
KariHaapalehto Mar 7, 2019
9df1d0b
Fixing path comparisons on Windows
bridadan Mar 7, 2019
0658feb
RTOS API: minor tidies
kjbracey Mar 18, 2019
e748135
Update flash algo default with CPM 0.2.4
theotherjimmy Mar 26, 2019
f4fee83
Allow both path seperator types in flash algo names
theotherjimmy Mar 27, 2019
2794c31
Squashed 'features/nanostack/coap-service/' changes from 227cc3d..086…
Mar 26, 2019
2a459d1
Fix compiler warnings in Nanostack HAL
Mar 26, 2019
23edd94
Adding TOA and Channel info in RX metadata
Mar 25, 2019
161d537
Unit test fix for RX TOA change
Mar 27, 2019
313794c
Fix tempsensor cal1 constant in stm32f3xx_ll_adc.h
ecoromka Mar 25, 2019
e8a39f8
TESTS: skip timing accuracy test on FastModels
Mar 11, 2019
42f676a
TCP/TLS Socket tests will skip if TCP is not supported
michalpasztamobica Mar 25, 2019
c8c3132
Remove extra post-waffle cruft that was left behind
Mar 28, 2019
6041d3e
Adding variable length attributes to Maxim Feather
nrcrast Mar 12, 2019
d7acaf6
Formatting fix
nrcrast Mar 13, 2019
0eccb9e
BLE:Fix gattserver authorization list update permission check
desmond-blue Mar 14, 2019
e2a296a
update gcc arm version to 6-2017-q1-update
studavekar Mar 22, 2019
ffe97fa
Nanostack::EthernetInterface::bringdown() can handle blocking mode
michalpasztamobica Mar 27, 2019
5092bb2
Docs: Add Python modules to LICENSE file
Mar 27, 2019
9401844
Removed function calls from mbed_assert, which caused the functions t…
Mar 29, 2019
2386825
Fix Bus mode mask and status register write size in some modes in qua…
Mar 20, 2019
27a306b
Fixed Bus Mode bit mask to select best mode. When setting Quad Enable…
Mar 20, 2019
665a80f
If QER is undefined: do nothing but log warning and continue
Mar 28, 2019
1a48962
Update QSPIFBlockDevice.cpp
Mar 29, 2019
93c9ec8
Updated AWS url for astyle. The original one is no longer appropriate
cmonr Mar 29, 2019
ff6c6b9
Remove CFSTORE VERSION file (colliding with an ARM 6.12 C++ header file)
Mar 31, 2019
9a481bd
TARGET_STM32F7: Refresh cache when erasing or programming flash
VVESTM Mar 14, 2019
7d6a07e
Parse errors and warnings with ARMC6
theotherjimmy Mar 29, 2019
7efc3eb
LPC55S69: Update Flash driver to set clock frequency
mmahadevan108 Mar 27, 2019
dc1e1b2
power on wait increased for C030_U201
mudassar-ublox Mar 26, 2019
603808e
wait increased for all cases
mudassar-ublox Apr 1, 2019
ec36d2a
STM32 ADC INTERNAL CHANNEL reset after read
jeromecoutant Mar 15, 2019
5333ab6
README link to license guide 404s
janjongboom Apr 2, 2019
5f74415
PSOC6: Rebuild WICED libraries
cydriftcloud Apr 1, 2019
a2857ba
Cellular: Improve ATHandler AT traces
Mar 15, 2019
c5a1ea3
PSOC: Modify lp_ticker to 32 bit
cy-vivekp Mar 20, 2019
5e4d6c9
cellular: valgrind defect fix
Mar 29, 2019
5233c38
NUCLEO_L4R5ZI_P: enable sw4stm32 export
jeromecoutant Apr 2, 2019
d627be3
Build script: add explicit console log in case of linker script error
jeromecoutant Apr 2, 2019
e607fe9
add default services first
paul-szczepanek-arm Apr 3, 2019
160055c
Revert "Only enable ARMC6 for a few targets"
bridadan Apr 1, 2019
eba8eec
Support export IAR8 project
ccli8 Apr 1, 2019
6b2a219
Add definition of RAVEN
junichikatsu Mar 14, 2019
2f45444
added SPDX identifier and added the description of uhuru_raven_init f…
junichikatsu Mar 18, 2019
dee9192
added STM32F767VI
junichikatsu Mar 18, 2019
ce8f5ec
added sectors information
junichikatsu Mar 18, 2019
550923d
equeue: align passed-in buffer
kjbracey Apr 3, 2019
b7676b3
Enhancement to remove duplicates in Eclipse launch configurations
Mar 15, 2019
4d33732
Replace 'resolution_order_names' and 'extra_labels' with 'labels' Get…
Apr 3, 2019
4f18132
Fix applying all possible setting
Apr 3, 2019
f05b50e
Fixed support for DigitalOut(NC) instantiation
Apr 4, 2019
0613359
NUCLEO_WB55RG: add SDK files
bcostm Sep 25, 2018
658c8b6
NUCLEO_WB55RG: update mbed_rtx.h
bcostm Sep 25, 2018
f07d570
NUCLEO_WB55RG: update STM common files
bcostm Sep 25, 2018
f913a31
NUCLEO_WB55RG: HAL API updates to get SLEEP, RTC and LPTICKER OK
jeromecoutant Oct 8, 2018
b5c3075
NUCLEO_WB55RG: IAR, ARM and GCC linker files alignment
LMESTM Jan 10, 2019
2b257fa
NUCLEO_WB55RG: update targets.json
bcostm Sep 25, 2018
be1e805
NUCLEO_WB55RG: add WB Cube files reused for BLE transport layer
bcostm Sep 25, 2018
e26eaa1
NUCLEO_WB55RG: WB Transport Layer Cube files modifications
LMESTM Jan 10, 2019
879ca1d
NUCLEO_WB55RG: add Cordio HCI and Transport Layer driver
LMESTM Feb 5, 2019
ee64f15
NUCLEO_WB55RG: Rework Clock and sleep support
LMESTM Feb 8, 2019
e57771f
STM32WB: Move STM32WB utilies from FEATURE_BLE to targets folder
LMESTM Feb 20, 2019
1a6cdf8
STM32WB: FIX LL RTC warning
LMESTM Feb 20, 2019
91c08e3
STM: fix minor warnings
LMESTM Feb 20, 2019
86c8405
Add WB support and CUBE FW version in readme.md
LMESTM Feb 20, 2019
9345e5c
STM32WB: Add missing analogin_pinmap
LMESTM Feb 20, 2019
9e3d52d
fixup! NUCLEO_WB55RG: add SDK files
LMESTM Feb 21, 2019
0dcddce
STM32WB: Adapt I2C timings
LMESTM Feb 21, 2019
f903920
STM32WB: Fix ARM link error in mbed2
LMESTM Feb 21, 2019
dbfe97d
STM32WB: add debug trace group in BLE Transport Layer
LMESTM Feb 22, 2019
79568db
STM32WB: Set a random static address during init
LMESTM Feb 22, 2019
96f88c5
STM32WB: ARM linker script update
LMESTM Feb 26, 2019
09db225
STM32WB55RG: Add board declaration in tools
LMESTM Feb 26, 2019
8cc8404
STM32WB55RG: temporarily remove device_name property in targets.json
LMESTM Mar 1, 2019
615a9f6
STM32WB: Update headers
LMESTM Mar 4, 2019
9992e14
STM32WB: remove duplicate file
LMESTM Mar 4, 2019
71d5daa
STM32WB: fix compilation issue with ARMC6
LMESTM Mar 11, 2019
07545a2
STM32WB: Add SPDX identifier to new files
LMESTM Mar 11, 2019
0251c2b
STM32WB: move HCI driver to target specific folder
LMESTM Mar 15, 2019
9c32d31
STM32WB: handle extended reset
LMESTM Mar 18, 2019
d50f6e2
STM32WB: fix some styling in HCI driver
LMESTM Mar 18, 2019
e6cecda
STM32WB: Handle re-init case of transport layer
LMESTM Mar 20, 2019
92ef812
STM32WB: Add TRNG HW Semaphore
LMESTM Feb 25, 2019
5da83a2
STM32WB: Add FLASH HW Semaphore
LMESTM Feb 25, 2019
9cf03e3
STM32WB: update GCC linker script to match with master
LMESTM Mar 19, 2019
c0bfcec
STM32WB: update deep sleep sequence
LMESTM Mar 26, 2019
fee3fae
STM32WB: disable debug lines when not needed
LMESTM Mar 26, 2019
defa75a
STM32WB: Only configure default peripherals in SetSysClock
LMESTM Mar 29, 2019
c5b277f
STM32WB: ADC INTERNAL CHANNEL reset after read
LMESTM Mar 29, 2019
b7c2a74
MIMXRT1050: Fix ENET issues
mmahadevan108 Apr 3, 2019
40d8143
Update Mbed version block
0xc0170 Apr 5, 2019
60b1413
FUTURE_SEQUANA: Fixed LP ticker for M0 core
lrusinowicz Apr 2, 2019
2d12cc0
TFM autogen scan the entire tree
Mar 25, 2019
3acedd3
Run autogen
Mar 25, 2019
fe931cd
Add {# End of file #} for TF-M templates
Mar 28, 2019
7632c97
Adding STM S2_LP as a new target
Nov 7, 2018
00a1c93
Adding MTB aliases to PinNames
Nov 8, 2018
0455ff4
Removing all content related to EMAC
Nov 22, 2018
997ad6c
Pin map changes
Jan 31, 2019
a71a08c
Changing SPI flash's CS ine, Errata on SCH
Feb 13, 2019
d7347cc
Adding STM S2_LP as a new target
Nov 7, 2018
aa4803f
Removing all content related to EMAC
Nov 22, 2018
f3f2ced
Adding STM32_F429 + S2_LP (WiSUN) as a new MTB target
Apr 1, 2019
438cf8c
Incorporating review comments
Apr 1, 2019
76cde77
Incorporating review comments Removing USBDEVICE since USB pins are N…
Apr 1, 2019
731cd16
Adding SPDX identifier
Apr 1, 2019
a07dbd7
SPDX license identifier changed to Apache-2.0
Apr 1, 2019
51bc848
Add INTERRUPTIN compilation guard for ESP8266
michalpasztamobica Apr 5, 2019
4af9124
"Update secure binaries for CY8CKIT_062_WIFI_BT_M0_PSA"
adbridge Apr 5, 2019
3aca6d8
"Update secure binaries for FUTURE_SEQUANA_M0_PSA"
adbridge Apr 5, 2019
869028c
"Update secure binaries for LPC55S69_S"
adbridge Apr 5, 2019
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
  •  
  •  
  •  
59 changes: 29 additions & 30 deletions .astyleignore
Original file line number Diff line number Diff line change
@@ -1,30 +1,29 @@
BUILD
cmsis
features/cryptocell
features/mbedtls
features/lwipstack/lwip
features/lwipstack/lwip-sys
rtos/TARGET_CORTEX/rtx4
features/storage/filesystem/littlefs/littlefs/
features/storage/filesystem/fat/ChaN
features/storage/FEATURE_STORAGE
features/frameworks
features/FEATURE_BLE
features/unsupported/
features/netsocket/emac-drivers
hal/storage_abstraction
TESTS/mbed_hal/trng/pithy
features/nanostack/coap-service
features/nanostack/sal-stack-nanostack
features/nanostack/targets
rtos/TARGET_CORTEX/rtx5
TESTS/mbed_hal/trng/pithy
targets
components/802.15.4_RF
components/wifi
components/TARGET_PSA/TARGET_TFM
tools
components/TARGET_PSA/TESTS
components/TARGET_PSA/services/attestation/COMPONENT_PSA_SRV_IMPL/tfm_impl
components/TARGET_PSA/services/attestation/qcbor
components/TARGET_PSA/services/attestation/attestation.h
^BUILD
^cmsis
^components/802.15.4_RF
^components/TARGET_PSA/services/attestation/attestation.h
^components/TARGET_PSA/services/attestation/COMPONENT_PSA_SRV_IMPL/tfm_impl
^components/TARGET_PSA/services/attestation/qcbor
^components/TARGET_PSA/TARGET_TFM
^components/TARGET_PSA/TESTS
^features/cryptocell
^features/FEATURE_BLE
^features/frameworks
^features/lwipstack/lwip
^features/lwipstack/lwip-sys
^features/mbedtls
^features/nanostack/coap-service
^features/nanostack/sal-stack-nanostack
^features/nanostack/targets
^features/netsocket/emac-drivers
^features/storage/FEATURE_STORAGE
^features/storage/filesystem/fat/ChaN
^features/storage/filesystem/littlefs/littlefs/
^features/unsupported/
^hal/storage_abstraction
^rtos/TARGET_CORTEX/rtx4
^rtos/TARGET_CORTEX/rtx5
^targets
^TESTS/mbed_hal/trng/pithy
^TESTS/mbed_hal/trng/pithy
^tools
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ matrix:
- NAME=astyle
install:
- >-
curl -L0 https://mbed-os.s3-eu-west-1.amazonaws.com/builds/deps/astyle_3.1_linux.tar.gz --output astyle.tar.gz;
curl -L0 https://mbed-os-ci.s3-eu-west-1.amazonaws.com/jenkins-ci/deps/astyle_3.1_linux.tar.gz --output astyle.tar.gz;
mkdir -p BUILD && tar xf astyle.tar.gz -C BUILD;
cd BUILD/astyle/build/gcc;
make;
Expand All @@ -183,7 +183,7 @@ matrix:
- >-
git diff --name-only --diff-filter=d FETCH_HEAD..HEAD \
| ( grep '.\(c\|cpp\|h\|hpp\)$' || true ) \
| ( fgrep -v -f .astyleignore || true ) \
| ( grep -v -f .astyleignore || true ) \
| while read file; do astyle -n --options=.astylerc "${file}"; done
- git diff --exit-code --diff-filter=d --color

Expand Down
28 changes: 28 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,31 @@ Folders containing files under different permissive license than Apache 2.0 are
- [TESTS/mbed_hal/trng/pithy](./TESTS/mbed_hal/trng/pithy) - BSD-3-Clause
- [tools/data/rpc](./tools/data/rpc) - MIT
- [targets](./targets) - PBL, BSD-style, MIT-style, Zlib-style, Public-domain

The Python modules used by Mbed tools are used under the following licenses:

- [colorama](https://pypi.org/project/colorama) - BSD-3-Clause
- [urllib3](https://pypi.org/project/urllib3) - MIT
- [secure](https://pypi.org/project/secure) - MIT
- [prettytable](https://pypi.org/project/prettytable) - BSD-3-Clause
- [junit-xml](https://pypi.org/project/junit-xml) - MIT
- [pyyaml](https://pypi.org/project/pyyaml) - MIT
- [jsonschema](https://pypi.org/project/jsonschema) - MIT
- [future](https://pypi.org/project/future) - MIT
- [six](https://pypi.org/project/six) - MIT
- [mbed-cloud-sdk](https://pypi.org/project/mbed-cloud-sdk) - Apache 2.0
- [requests](https://pypi.org/project/requests) - Apache-2.0
- [idna](https://pypi.org/project/idna) - BSD-3-Clause
- [pyserial](https://pypi.org/project/pyserial) - BSD-3-Clause
- [Jinja2](https://pypi.org/project/Jinja2) - BSD-3-Clause
- [intelhex](https://pypi.org/project/intelhex) - BSD
- [mbed-ls](https://pypi.org/project/mbed-ls) - Apache-2.0
- [mbed-host-tests](https://pypi.org/project/mbed-host-tests) - Apache-2.0
- [mbed-greentea](https://pypi.org/project/mbed-greentea) - Apache-2.0
- [beautifulsoup4](https://pypi.org/project/beautifulsoup4) - MIT
- [pyelftools](https://pypi.org/project/pyelftools) - Public Domain
- [manifest-tool](https://pypi.org/project/manifest-tool) - Apache-2.0
- [icetea](https://pypi.org/project/icetea) - Apache-2.0
- [pycryptodome](https://pypi.org/project/pycryptodome) - BSD-2-Clause
- [pyusb](https://pypi.org/project/pyusb/) - Apache-2.0
- [cmsis-pack-manager](https://pypi.org/project/cmsis-pack-manager) - Apache-2.0
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
[![Build status release][mbed-travis-release-svg]][mbed-travis-release]
[![Build status master][mbed-travis-master-svg]][mbed-travis-master]
[![Tools coverage status][mbed-coveralls-tools-svg]][mbed-coveralls-tools]
[![PR progress][mbed-waffle-svg]][mbed-waffle]

[mbed-os-logo]: logo.png
[mbed-os-link]: https://www.mbed.com/en/platform/mbed-os/
Expand All @@ -13,8 +12,6 @@
[mbed-travis-release-svg]: https://travis-ci.org/ARMmbed/mbed-os.svg?branch=latest
[mbed-coveralls-tools]: https://coveralls.io/github/ARMmbed/mbed-os?branch=master
[mbed-coveralls-tools-svg]: https://coveralls.io/repos/github/ARMmbed/mbed-os/badge.svg?branch=master
[mbed-waffle]: https://waffle.io/ARMmbed/mbed-os
[mbed-waffle-svg]: https://badge.waffle.io/ARMmbed/mbed-os.svg?columns=all

Arm Mbed OS is an open source embedded operating system designed specifically for the "things" in the Internet of Things. It includes all the features you need to develop a connected product based on an Arm Cortex-M microcontroller, including security, connectivity, an RTOS and drivers for sensors and I/O devices.

Expand All @@ -31,7 +28,7 @@ The [release notes](https://os.mbed.com/releases) detail the current release. Yo

The software is provided under the [Apache-2.0 license](LICENSE-apache-2.0.txt). Contributions to this project are accepted under the same license. Please see [contributing.md](CONTRIBUTING.md) for more information.

This project contains code from other projects. The original license text is included in those source files. They must comply with our [license guide](https://os.mbed.com/docs/latest/reference/license.html).
This project contains code from other projects. The original license text is included in those source files. They must comply with our [license guide](https://os.mbed.com/docs/mbed-os/latest/contributing/license.html).

Folders containing files under different permissive license than Apache 2.0 are listed in the [LICENSE](LICENSE) file.

Expand Down
240 changes: 240 additions & 0 deletions TESTS/host_tests/pyusb_msd.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,240 @@
"""
Copyright (c) 2019, Arm Limited and affiliates.
SPDX-License-Identifier: Apache-2.0

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
import time
import psutil
import tempfile
import uuid
import os
import platform
import subprocess
import sys
system_name = platform.system()
if system_name == "Windows":
import wmi


class PyusbMSDTest(BaseHostTest):
"""Host side test for USB MSD class."""

__result = None
MOUNT_WAIT_TIME = 25 # in [s]
initial_disk_list = None
msd_disk = None
serial_number = None

def _callback_device_ready(self, key, value, timestamp):
"""Send a unique USB SN to the device.
DUT uses this SN every time it connects to host as a USB device.
"""
self.serial_number = uuid.uuid4().hex # 32 hex digit string
self.send_kv("serial_number", self.serial_number)

def _callback_check_file_exist(self, key, value, timestamp):
"""Check if file exist.

"""
folder_name, file_name, file_content = value.split(' ')
msd_disk = MSDUtils.disk_path(self.serial_number)
file_path = os.path.join(msd_disk, folder_name, file_name)
try:
file = open(file_path, 'r')
line = file.readline()
file.close()
time.sleep(2) # wait for msd communication done
if line == file_content:
self.send_kv("exist", "0")
return
self.report_error("file content invalid")
except IOError as err:
self.log('{} !!!'.format(err))
self.send_kv("non-exist", "0")

def _callback_delete_files(self, key, value, timestamp):
"""Delete test file.

"""
dir_name, file_name = value.split(' ')
msd_disk = MSDUtils.disk_path(self.serial_number)
try:
os.remove(os.path.join(msd_disk, dir_name, file_name))
except:
self.report_error("delete files")
return
time.sleep(2) # wait for msd communication done
self.report_success()

def _callback_check_if_mounted(self, key, value, timestamp):
"""Check if disk was mounted.

"""
wait_time = self.MOUNT_WAIT_TIME
while wait_time != 0:
msd_disk = MSDUtils.disk_path(self.serial_number)
if msd_disk is not None:
# MSD disk found
time.sleep(2) # wait for msd communication done
self.report_success()
return
wait_time -= 1
time.sleep(1) # wait 1s and try again
self.report_error("mount check")

def _callback_check_if_not_mounted(self, key, value, timestamp):
"""Check if disk was unmouted.

"""
wait_time = self.MOUNT_WAIT_TIME
while wait_time != 0:
msd_disk = MSDUtils.disk_path(self.serial_number)
if msd_disk is None:
#self.msd_disk = None
time.sleep(2) # wait for msd communication done
self.report_success()
return
wait_time -= 1
time.sleep(1) # wait 1s and try again
self.report_error("unmount check")

def _callback_get_mounted_fs_size(self, key, value, timestamp):
"""Record visible filesystem size.

"""
stats = psutil.disk_usage(MSDUtils.disk_path(self.serial_number))
self.send_kv("{}".format(stats.total), "0")

def _callback_unmount(self, key, value, timestamp):
"""Disk unmount.

"""
if MSDUtils.unmount(serial=self.serial_number):
self.report_success()
else:
self.report_error("unmount")

def setup(self):
self.register_callback("get_serial_number", self._callback_device_ready)
self.register_callback('check_if_mounted', self._callback_check_if_mounted)
self.register_callback('check_if_not_mounted', self._callback_check_if_not_mounted)
self.register_callback('get_mounted_fs_size', self._callback_get_mounted_fs_size)
self.register_callback('check_file_exist', self._callback_check_file_exist)
self.register_callback('delete_files', self._callback_delete_files)
self.register_callback('unmount', self._callback_unmount)

def report_success(self):
self.send_kv("passed", "0")

def report_error(self, msg):
self.log('{} failed !!!'.format(msg))
self.send_kv("failed", "0")

def result(self):
return self.__result

def teardown(self):
pass


class MSDUtils(object):

@staticmethod
def disk_path(serial):
system_name = platform.system()
if system_name == "Windows":
return MSDUtils._disk_path_windows(serial)
elif system_name == "Linux":
return MSDUtils._disk_path_linux(serial)
elif system_name == "Darwin":
return MSDUtils._disk_path_mac(serial)
return None

@staticmethod
def unmount(serial):
system_name = platform.system()
if system_name == "Windows":
return MSDUtils._unmount_windows(serial)
elif system_name == "Linux":
return MSDUtils._unmount_linux(serial)
elif system_name == "Darwin":
return MSDUtils._unmount_mac(serial)
return False

@staticmethod
def _disk_path_windows(serial):
serial_decoded = serial.encode("ascii")
c = wmi.WMI()
for physical_disk in c.Win32_DiskDrive():
if serial_decoded == physical_disk.SerialNumber:
for partition in physical_disk.associators("Win32_DiskDriveToDiskPartition"):
for logical_disk in partition.associators("Win32_LogicalDiskToPartition"):
return logical_disk.Caption
return None

@staticmethod
def _disk_path_linux(serial):
output = subprocess.check_output(['lsblk', '-dnoserial,mountpoint']).split('\n')
for line in output:
serial_and_mount_point = line.split()
if len(serial_and_mount_point) == 2:
if serial_and_mount_point[0] == str(serial):
return serial_and_mount_point[1]
return None

@staticmethod
def _disk_path_mac(serial):
# TODO:
# add implementation
return None

@staticmethod
def _unmount_windows(serial):
disk_path = MSDUtils._disk_path_windows(serial)
tmp_file = tempfile.NamedTemporaryFile(suffix='.ps1', delete=False)
try:
# create unmount script
tmp_file.write('$disk_leter=$args[0]\n')
tmp_file.write('$driveEject = New-Object -comObject Shell.Application\n')
tmp_file.write('$driveEject.Namespace(17).ParseName($disk_leter).InvokeVerb("Eject")\n')
# close to allow open by other process
tmp_file.close()

try_count = 10
while try_count:
p = subprocess.Popen(["powershell.exe", tmp_file.name + " " + disk_path], stdout=sys.stdout)
p.communicate()
try_count -= 1
if MSDUtils._disk_path_windows(serial) is None:
return True
time.sleep(1)
finally:
os.remove(tmp_file.name)

return False

@staticmethod
def _unmount_linux(serial):
disk_path = MSDUtils._disk_path_linux(serial)
os.system("umount " + disk_path)
return MSDUtils._disk_path_linux(serial) is None

@staticmethod
def _unmount_mac(serial):
disk_path = MSDUtils._disk_path_mac(serial)
os.system("diskutil unmount " + disk_path)
disks = set(MSDUtils._disks_mac())
return MSDUtils._disk_path_mac(serial) is None
2 changes: 0 additions & 2 deletions TESTS/mbed-crypto/sanity/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -438,9 +438,7 @@ utest::v1::status_t case_teardown_handler(const Case *const source, const size_t

utest::v1::status_t test_setup(const size_t number_of_cases)
{
#ifndef NO_GREENTEA
GREENTEA_SETUP(120, "default_auto");
#endif
return verbose_test_setup_handler(number_of_cases);
}

Expand Down
2 changes: 0 additions & 2 deletions TESTS/mbed_hal/spm/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,7 @@ Case cases[] = {

utest::v1::status_t greentea_test_setup(const size_t number_of_cases)
{
#ifndef NO_GREENTEA
GREENTEA_SETUP(20, "default_auto");
#endif
return greentea_test_setup_handler(number_of_cases);
}

Expand Down
Loading