Commit Graph

31468 Commits (f8a02ce5dede9bd4ef7d7e869e845345766dd9c6)

Author SHA1 Message Date
Vincent Coubard 542b725545 BLE: Fix incorrect index used to access attsCb.prepWriteQueue in Cordio
The connection id starts at the value 1. The entry accessed in the array should be connId - 1
2020-10-19 17:21:49 +01:00
jeromecoutant a62736bba2 STM32L0: STM32Cube_FW_L0_V1.11.3
https://github.com/STMicroelectronics/STM32CubeL0
2020-10-19 17:42:38 +02:00
jeromecoutant d9cdd31f21 STM32L0: back to updated files 2020-10-19 17:42:38 +02:00
jeromecoutant a519a2fe6b STM32L0: directory restructuration
+ STM32Cube_FW_L0_V1.10.0 original files
+ targets.json update introducing subfamily level
2020-10-19 17:42:38 +02:00
Martin Kojtal 8d9dabe925
Merge pull request #13659 from jeromecoutant/PR_WB_1_8
STM32WB update drivers version to CUBE V1.8.0
2020-10-19 16:36:07 +01:00
Martin Kojtal c6997bcb9d
Merge pull request #13771 from saheerb/split_examples
Separate cloud example configurations to another file
2020-10-19 15:53:48 +01:00
Paul Szczeanek 934e111107 fix advertising report not terminating early for unwanted reports 2020-10-19 15:47:40 +01:00
Paul Szczeanek 2c906110fc missing host resolution for rpa when extended advertising is available 2020-10-19 15:47:39 +01:00
Paul Szczeanek 0931709516 replace current bool state combination for keeping track of ble scanning with an enum that covers all states 2020-10-19 15:47:39 +01:00
Martin Kojtal 5eeced1c54 travis: ignore spdx reports
Do not force red status for PRs due to SPDX missing (license must be there). We will
add better SPDX checks later (more work required to enable these for 3rd party code).
2020-10-19 16:20:26 +02:00
jeromecoutant 7c214cbd68 STM32WB: STM32Cube_FW_WB_V1.8.0
https://github.com/STMicroelectronics/STM32CubeWB
2020-10-19 14:36:02 +02:00
Martin Kojtal bf90b7736b
Merge pull request #13697 from jeromecoutant/PR_L5_130
STM32L5 update drivers version to CUBE V1.3.1
2020-10-19 13:21:32 +01:00
Martin Kojtal a9c77a95d6
Merge pull request #13782 from 0xc0170/fix_travis_scancode_spdx
scancode: fix SPDX check - only warning
2020-10-19 13:17:43 +01:00
Martin Kojtal b242be1b08
Merge pull request #13734 from AGlass0fMilk/chainable-event-handler
BLE: Introduce ChainableEventHandler and subclasses
2020-10-19 12:27:56 +01:00
Martin Kojtal 61d88dd617 scancode: fix SPDX check - only warning
SPDX are not yet done in our codebase. We suggest them to be present but 3rd party
drivers have not yet been updated. The check as it was causes problems when updating
3rd party drivers (red flags in the PR).

Proper fix will be to clean up SPDX id in the codebase.
2020-10-19 11:01:11 +01:00
Martin Kojtal e439ad9993
Merge pull request #13778 from jeromecoutant/PR_G4-130
STM32G4 update drivers version to CUBE V1.3.0
2020-10-19 08:23:36 +01:00
Martin Kojtal ed73a48364
Merge pull request #13733 from artokin/enable_nanostack_dNS_cache_usage-master
Enable Nanostack DNS cache usage
2020-10-19 08:23:20 +01:00
Martin Kojtal 00aee87ef2
Merge pull request #13654 from balajicyp/topic/wep_security_fix_testcase_update
Summary of changes
Remove WEP security Test Case with NULL as WEP security Key are sequence of Hex Values , the character "NULL" is (0x00) it is a valid value ( for ex: this is key index, followed by length and hex key array).

Impact of changes
Remove the test case for NULL( "" )key with NSAPI_SECURITY_WEP to test return value with NSAPI_ERROR_PARAMETER

The set_credentials(const char *ssid, const char *pass, nsapi_security_t security) API has no key length, the key length is derived by using strlen(pass), which works if the pass ( is a string) , but in case of NSAPI_SECURITY_WEP and NSAPI_SECURITY_WPA2_ENT, the key does not happen to be string but a hex char array.

WEP security Key are sequence of Hex Values , the character "NULL" is (0x00) it is a valid value ( for ex: this is key index, followed by length and hex key array).

The key index 0 , 1, 2, 3 are keys used for an WiFi Access point.
2020-10-19 08:10:05 +01:00
jeromecoutant 4b999b3e7f STM32L5: STM32Cube_FW_L5_V1.3.0
https://github.com/STMicroelectronics/STM32CubeL5
2020-10-16 17:31:58 +02:00
jeromecoutant 759a817005 STM32G4: STM32Cube_FW_G4_V1.3.0
source: https://github.com/STMicroelectronics/STM32CubeG4
2020-10-16 17:31:04 +02:00
jeromecoutant cd99f641dc STM32G4: cleanup 2020-10-16 17:31:03 +02:00
jeromecoutant 4f95500dc9 STM32G4: target directoty restructuration
- Alignment with other STM32 families
- Subfamily level in targets.json
2020-10-16 17:31:03 +02:00
Martin Kojtal eb382989de
Merge pull request #13745 from hugueskamba/hk_evaluate_code_fix
Scancode: Fix false positive reported by scancode output analyser script
2020-10-16 16:22:29 +01:00
Saheer Babu e3857b2431 update cloud-example config 2020-10-16 11:22:03 +01:00
Saheer Babu ae18f4434a separate cloud examples from examples.json 2020-10-16 11:13:08 +01:00
RyoheiHagimoto e3fea114ec Fixed I2C slave bugs on Renesas RZ/A series:
Added the register operation when received the slave address.
2020-10-16 18:00:42 +09:00
RyoheiHagimoto 5931050b64 Fixed I2C slave bugs on Renesas RZ/A series.
Fixed following I2C slave bugs on Renesas RZ/A series:
 - Send an incorrect value during slave mode.
 - The behavior for the restart condition is wrong.
2020-10-16 17:58:40 +09:00
Martin Kojtal 2d01a4412d
Merge pull request #13723 from boraozgen/feature/f412xg-crash-ram
Add crash RAM to STM32F412xG
2020-10-16 09:10:55 +01:00
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