Commit Graph

31390 Commits (57f39aed01a34ef6620d0547b51c0480e573b8e9)

Author SHA1 Message Date
Martin Kojtal 61aa6817f0
Merge pull request #13724 from harmut01/license_refactor
Add license notice to Arm copyrighted source files
2020-10-16 09:09:53 +01:00
Martin Kojtal aa0cd631a2
Merge pull request #13655 from jeromecoutant/PR_GENPERIPH_1_17
STM32_gen_PeripheralPins.py v1.17
2020-10-16 09:08:27 +01:00
Martin Kojtal c8345a3490
Merge pull request #13595 from gutbag/add-nrf52-midi-baud-rate
Nordic: Support 31250 baud rate
2020-10-16 09:06:31 +01:00
Hugues Kamba 4ce6c8ac62 Scancode: Fix false positive reported by scancode output analyser script
ScanCode can possibly return many licenses found for a single file scanned.
This commit ensures that the file is not reported as lacking a permissive license
if at least one license found in it is permissive.
Previously the script was reporting an issue if it found at least one license
in a file that was not permissive.

Additionally catch more errors and provide specific details about failures.
Provide unitest.
2020-10-15 17:33:56 +01:00
Harrison Mutai 6fa88f4247 Fix false positive error in script checking license notices
Remove code block from license_check that evalutes whether a files
licenses are permissive and that there is a SPDX notice. Scancode
sometimes incorrectly attributes a single license notice to permissive
and non-permissive licenses. Removed code block results in many false
positives because it labels any file that has a "non-permissive" license
as such even when there is a permissive license.

Add function spdx_check to scancode-evaluate.py to improve analysis of
copyright and license notice tests.
2020-10-15 17:32:56 +01:00
Harrison Mutai e6c31514c6 Add unit test for script that checks copyright and license notice
Add unit test and dependent stubs for testing of scancode-evaluate.py.
license_check takes a JSON as argument and checks for source missing
copyright or license notices.

Each JSON represents a separate test case, and stubs are added for test case
3 and 4 where license_check looks for an spdx notice in the source file.
2020-10-15 17:32:56 +01:00
Martin Kojtal 36de28e1ff
Merge pull request #13683 from 0xc0170/fix_stm32_usb
USB STM32: fix header inclusion, removing mbed.h
2020-10-15 15:41:03 +01:00
Martin Kojtal b3f4d3b5f4
Merge pull request #13619 from 0xc0170/fix_travis_status_token
Travis: remove status functionality
2020-10-15 15:17:03 +01:00
Martin Kojtal 75f3b6cb1c
Merge pull request #13717 from ARMmbed/feature-ble-host-privacy
Feature ble host privacy
2020-10-15 15:07:54 +01:00
Martin Kojtal 2514479360
Merge pull request #13743 from idea--list/master
Define SD and STORAGE for the MAX32630FTHR and prevent warnings during compilation on Mbed 5.12 and above
2020-10-15 15:06:48 +01:00
Martin Kojtal 2311398adf
Merge pull request #13738 from OpenNuvoton/nuvoton_m23_fault_handler
Nuvoton: Enable fault handler dump message on CM23 targets
2020-10-15 15:06:23 +01:00
Martin Kojtal bdb6bd50d4
Merge pull request #13757 from artokin/add-min-sens-wisun-param-master
wisun: Add APIs for Device min sense and CCA threshold table.
2020-10-15 15:05:58 +01:00
Martin Kojtal b7551c2eb5
Merge pull request #13737 from mikaleppanen/cert_remove_master
Add certificate remove before add to wisun tasklet
2020-10-15 13:53:28 +01:00
Martin Kojtal 2776687dac
Merge pull request #13707 from paul-szczepanek-arm/fix-esp8266
Fix ESP8266
2020-10-15 13:51:49 +01:00
Martin Kojtal ab14eb60e2
Merge pull request #13677 from CharleyChu/topic/master_cytfm_471
psoc64: Update flash layout of CYTFM_064B0S2_4343W
2020-10-15 13:51:29 +01:00
jeromecoutant 7eb43b104a STM32_gen_PeripheralPins.py move to TARGET_STM 2020-10-15 12:08:25 +02:00
Harrison Mutai 4fad1112e5 Add SPDX license identifier to Arm files
Add license identifier to files which Arm owns the copyright to,
and contain either BSD-3 or Apache-2.0 licenses. This is to address
license errors raised by scancode analysis.
2020-10-15 10:47:27 +01:00
Harrison Mutai d1d6bf51b3 Add license notice to Arm copyrighted source files
Scancode found missing license notices in our source files. This commit
addresses those issues by adding an Apache-2.0 notice to source files
highlighted.
2020-10-15 10:46:35 +01:00
Martin Kojtal e1d3037c17
Merge pull request #13725 from jeromecoutant/PR_L476_HSE
STM32: update SetSysClock for NUCLEO_L476RG
2020-10-15 08:49:37 +01:00
George Beckstein 9a6d207585 Update GattServer Callback API
Update parameters passed to onDataSent, onUpdatesEnabled/Disabled, and onConfirmationReceived callbacks.

Deprecate single-callback-registering functions for event handling in lieu of the new EventHandler-based API.

Introduce new GattServer::EventHandler callback functions to replace the deprecated versions.
2020-10-14 12:44:12 -04:00
George Beckstein cda2c8bb8d Introduce ChainableGapEventHandler subclass of ChainableEventHandler
The ChainableGapEventHandler enables chaining together Gap::EventHandlers so separate parts of an application can be notified of Gap events as needed. The application can register multiple Gap::EventHandler objects to one ChainableGapEventHandler and then set the global Gap::EventHandler to the ChainableGapEventHandler. All registered EventHandlers will then be called when a Gap Event occurs.
2020-10-14 12:44:09 -04:00
George Beckstein 751674b962 Introduce ChainableEventHandler and ChainableGattServerEventHandler classes.
Common functionality has been split off into a generic ChainableEventHandler for use by other EventHandler implementations. The ChainableEventHandler is essentially singly-linked list that propagates callbacks to all objects in the list.

The ChainableGattServerEventHandler enables chaining together GattServer::EventHandlers. An application can register separate event handlers (eg: for different services that need to handle GattServer events) and then set the global GattServer::setEventHandler to the instance of ChainableGattServerEventHandler with all registered GattServer::EventHandlers.
2020-10-14 12:42:25 -04:00
Vincent Coubard 5f1b716bfb
Merge pull request #13760 from paul-szczepanek-arm/privacy-fix-ifdef
Fix conditional compilation for ble
2020-10-14 13:35:16 +01:00
Paul Szczeanek 119d459361 fix removed friend function 2020-10-14 09:58:11 +01:00
Vincent Coubard 665e4535a9
Merge pull request #13759 from pan-/privacy-workaround-wb55
Privacy workaround wb55
2020-10-14 08:45:33 +01:00
Paul Szczeanek 9f09bb4956 rename private address controller to match security manager 2020-10-13 17:40:37 +01:00
Paul Szczeanek 3f9798b52d Fix conditional compilation based on config 2020-10-13 17:32:49 +01:00
Vincent Coubard 2a4a097a93 BLE: Take advantage of controller based address resolution on WB55 2020-10-13 16:16:48 +01:00
Vincent Coubard e1842ccd87 BLE: Workaround for WB55 connection event
The connection event reported by the WB55 is incorrect if controller privacy is not enable and the peer connects with an unknown private resolvable address: The RPA field contains the connection address (it should be empty) and the peer address is all FF while it should be equal to the connection address.
2020-10-13 16:16:17 +01:00
Martin Kojtal e56d4298cb USB STM32: fix header inclusion, removing mbed.h'
Fixes #13667 issue
2020-10-13 13:23:21 +01:00
Debdeep Saha 986f9dd946 Resolved comments. 2020-10-13 15:11:27 +03:00
Debdeep Saha 6c84032a33 Added APIs for Device min sense and CCA threshold table.
-Added get, set and validate API for device min sens.
-Added get API for CCA threshold table.
2020-10-13 14:56:29 +03:00
Martin Kojtal 05489818e9
Merge pull request #13610 from boraozgen/bugfix/deactivate-context
Fix #13490 Cellular disconnect does not deactivate context
2020-10-13 11:22:33 +01:00
Martin Kojtal 83579b1aa5
Merge pull request #13704 from paul-szczepanek-arm/reset-fix
ble: reset transport last and reset the default chars in gatt server
2020-10-13 11:21:21 +01:00
Martin Kojtal 77f3f5ebaa
Merge pull request #13714 from mikaleppanen/mesh_global_up_master
nanostack: mesh interface global up is indicated always on bootstrap
2020-10-13 11:20:48 +01:00
Martin Kojtal 00402b71d5
Merge pull request #13718 from artokin/nanostack_release_v12_6_0_for_master
Nanostack release v12.6.0
2020-10-13 11:19:11 +01:00
Martin Kojtal 35f97f4e98
Merge pull request #13729 from AGlass0fMilk/implicit-cccd
BLE: Enable getting an implicitly-created CCCD through `GattCharacteristic::getDescriptor`
2020-10-13 11:18:40 +01:00
Martin Kojtal 6fc886a37f
Merge pull request #13742 from mikaleppanen/radius_init
Add initialization to radius retry values
2020-10-13 11:16:25 +01:00
Martin Kojtal ea39494aa5
Merge pull request #13744 from LDong-Arm/cloud_connectors_targets
Use NUCLEO_F429ZI for Azure IoT Hub and Google IoT Core examples testing
2020-10-13 11:15:53 +01:00
Martin Kojtal 4c4295225e
Merge pull request #13749 from jrobeson/missing-args-in-pal-rtc-functions
Add missing args to weakly defined PalRtc functions
2020-10-13 11:12:26 +01:00
Martin Kojtal 2cb64f5bce
Merge pull request #13549 from kjbracey-arm/readdir_r
Make readdir reentrant
2020-10-13 11:11:45 +01:00
Peter B 0db0f0d22a
alignment fixed 2020-10-13 10:27:51 +02:00
George Beckstein 46bc1577eb Ignore unneeded Nordic BSP files 2020-10-12 23:28:15 -04:00
Johnny Robeson e27571fb83 This fixes lto type mismatch warnings in 3 functions
```sh
[Warning] pal_rtc.h@76,6: type of 'PalRtcCompareSet' does not match original declaration [-Wlto-type-mismatch]
[Warning] pal_rtc.h@73,6: type of 'PalRtcEnableCompareIrq' does not match original declaration [-Wlto-type-mismatch]
[Warning] pal_rtc.h@74,6: type of 'PalRtcDisableCompareIrq' does not match original declaration [-Wlto-type-mismatch]
```
2020-10-12 07:02:18 -04:00
George Beckstein f9af08c0ad Add error if allocation of cccd attribute fails 2020-10-09 09:47:05 -04:00
Bora Özgen 518b594d87
Merge pull request #1 from jeromecoutant/REVIEW_13723
Review 13723
2020-10-09 12:01:09 +02:00
RyoheiHagimoto 15c28e919d Modified the timing to wait UART completion in deep sleep function.
Moved waiting UART transmission completion to the out of critical
section. This is issued by the following pull request.
https://github.com/ARMmbed/mbed-os/pull/11816
2020-10-09 17:28:52 +09:00
jeromecoutant 953b50397f Platform: enable crash feature for NUCLEO_F412ZG 2020-10-09 10:28:28 +02:00
jeromecoutant ee09ae904d STM32F4: align F412 and F411 linker scripts 2020-10-09 10:28:28 +02:00
Bora Özgen abb5b1221f
Merge branch 'master' into feature/f412xg-crash-ram 2020-10-09 08:52:26 +02:00