Skip to content

Commit

Permalink
Update patchset
Browse files Browse the repository at this point in the history
  • Loading branch information
facchinm committed Feb 7, 2022
1 parent 4c1dae1 commit daeed51
Show file tree
Hide file tree
Showing 115 changed files with 751 additions and 460 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
From 742276eeb973b00776909e274e311591028af2cc Mon Sep 17 00:00:00 2001
From 3d7f8d18abca4e6132611fe544bf94b5d3483af3 Mon Sep 17 00:00:00 2001
From: Martino Facchin <m.facchin@arduino.cc>
Date: Thu, 11 Mar 2021 15:05:20 +0100
Subject: [PATCH 01/87] PACKAGING: remove gdb exta information to slim library
Subject: [PATCH 001/110] PACKAGING: remove gdb exta information to slim
library

---
tools/profiles/develop.json | 2 +-
Expand All @@ -21,5 +22,5 @@ index 21ba5c88d5..5995d276e4 100644
"c": ["-c", "-std=gnu11"],
"cxx": ["-c", "-std=gnu++14", "-fno-rtti", "-Wvla"],
--
2.33.1
2.34.1

10 changes: 5 additions & 5 deletions patches/0002-Portenta-enable-certificates-in-filesystem.patch
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
From a88aea6af1559dca1ce7dfbe08f6491b8c4e18c5 Mon Sep 17 00:00:00 2001
From cb1899e821138682f821ef80b4d1480c013ad3bd Mon Sep 17 00:00:00 2001
From: Martino Facchin <m.facchin@arduino.cc>
Date: Wed, 28 Oct 2020 15:26:21 +0100
Subject: [PATCH 02/87] Portenta: enable certificates in filesystem
Subject: [PATCH 002/110] Portenta: enable certificates in filesystem

---
targets/targets.json | 2 ++
1 file changed, 2 insertions(+)

diff --git a/targets/targets.json b/targets/targets.json
index e66c4c73d7..9cca9b223d 100644
index f4d4055553..8732ee0ba8 100644
--- a/targets/targets.json
+++ b/targets/targets.json
@@ -3186,6 +3186,8 @@
@@ -3428,6 +3428,8 @@
}
},
"macros_add": [
Expand All @@ -21,5 +21,5 @@ index e66c4c73d7..9cca9b223d 100644
"QSPI_NO_SAMPLE_SHIFT",
"CYW43XXX_UNBUFFERED_UART"
--
2.33.1
2.34.1

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 164ca0b7c78e62a398cf012ffa4d9f4c6249890d Mon Sep 17 00:00:00 2001
From 3659582e80ee60cd6f393318f54c51b90ef6703e Mon Sep 17 00:00:00 2001
From: Martino Facchin <m.facchin@arduino.cc>
Date: Wed, 1 Apr 2020 12:21:59 +0200
Subject: [PATCH 03/87] I2CSlave.read(buf, count) returns the number of bytes
Subject: [PATCH 003/110] I2CSlave.read(buf, count) returns the number of bytes
actually read

---
Expand Down Expand Up @@ -36,5 +36,5 @@ index 4317df9656..e4515820ad 100644

int I2CSlave::read(void)
--
2.33.1
2.34.1

6 changes: 3 additions & 3 deletions patches/0004-Add-AnalogIn-configure-function.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From b02f201a574be644cc801f8e2827e440044161f4 Mon Sep 17 00:00:00 2001
From 7abd4be4ee59e6e96f250f9a79c5d70d365a2417 Mon Sep 17 00:00:00 2001
From: Paolo Calao <paolo.calao@gmail.com>
Date: Wed, 13 May 2020 11:59:46 +0200
Subject: [PATCH 04/87] Add AnalogIn configure function
Subject: [PATCH 004/110] Add AnalogIn configure function

This adds a weak method to configure AnalogIn objects.
Also, a strong implementation of such method for NRF5284 is provided.
Expand Down Expand Up @@ -169,5 +169,5 @@ index 41b87722ac..4466f680c7 100644
uint32_t ch;
};
--
2.33.1
2.34.1

6 changes: 3 additions & 3 deletions patches/0005-HACK-avoid-10862-by-not-firing-the-assert.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From b2c29cdd7a3d35dc3607909ec7bb6fc57111ae9c Mon Sep 17 00:00:00 2001
From 5722a9ef477e5a3f4470898c7028633f1f004ff6 Mon Sep 17 00:00:00 2001
From: Martino Facchin <m.facchin@arduino.cc>
Date: Wed, 31 Jul 2019 12:48:04 +0200
Subject: [PATCH 05/87] HACK: avoid #10862 by not firing the assert
Subject: [PATCH 005/110] HACK: avoid #10862 by not firing the assert

---
drivers/usb/source/USBDevice.cpp | 18 ++++++++++--------
Expand Down Expand Up @@ -44,5 +44,5 @@ index 6d3cfc87d4..ddeabcfa15 100644
}

--
2.33.1
2.34.1

6 changes: 3 additions & 3 deletions patches/0006-portentaH7-Change-BLE-public-address.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 666ab47bc00cf7b01110c5c712594df3ef4ca929 Mon Sep 17 00:00:00 2001
From 7670c4f59b63a06fea0fc6dcd96af6976a548317 Mon Sep 17 00:00:00 2001
From: Paolo Calao <paolo.calao@gmail.com>
Date: Thu, 29 Oct 2020 15:40:32 +0100
Subject: [PATCH 06/87] portentaH7: Change BLE public address
Subject: [PATCH 006/110] portentaH7: Change BLE public address

---
.../ble/FEATURE_BLE/COMPONENT_CYW43XXX/HCIDriver.cpp | 11 +++++++++++
Expand Down Expand Up @@ -37,5 +37,5 @@ index 957e37594b..ff389c9f81 100644
} else {
}
--
2.33.1
2.34.1

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 2e73780a9b2e22b4e625d0c617b5e8f6b6b28abf Mon Sep 17 00:00:00 2001
From d1ded30e5559b403dd49378bfaf9e7fab87d4ffa Mon Sep 17 00:00:00 2001
From: Martino Facchin <m.facchin@arduino.cc>
Date: Mon, 9 Nov 2020 10:00:01 +0100
Subject: [PATCH 07/87] TLSSocketWrapper: add method to retrieve certificates
Subject: [PATCH 007/110] TLSSocketWrapper: add method to retrieve certificates
from filesystem

---
Expand Down Expand Up @@ -90,5 +90,5 @@ index cebaf04703..8202151eb7 100644
{
return set_client_cert_key(client_cert_pem, strlen(client_cert_pem) + 1, client_private_key_pem, strlen(client_private_key_pem) + 1);
--
2.33.1
2.34.1

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From e03035b26d7372b0713ea2c5d2359b0116325d56 Mon Sep 17 00:00:00 2001
From ec10b2d3b5671f72ff3be6510f561dcc15712d5e Mon Sep 17 00:00:00 2001
From: Martino Facchin <m.facchin@arduino.cc>
Date: Mon, 9 Nov 2020 13:34:18 +0100
Subject: [PATCH 08/87] TLSSocketWrapper: Add unit test for
Subject: [PATCH 008/110] TLSSocketWrapper: Add unit test for
set_root_ca_cert_path

---
Expand All @@ -11,10 +11,10 @@ Subject: [PATCH 08/87] TLSSocketWrapper: Add unit test for
3 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/connectivity/nanostack/coap-service/test/coap-service/unittest/stub/mbedtls_stub.c b/connectivity/nanostack/coap-service/test/coap-service/unittest/stub/mbedtls_stub.c
index be8d31955b..91c17e2c23 100644
index b63eb0269d..32026c4fe6 100644
--- a/connectivity/nanostack/coap-service/test/coap-service/unittest/stub/mbedtls_stub.c
+++ b/connectivity/nanostack/coap-service/test/coap-service/unittest/stub/mbedtls_stub.c
@@ -300,6 +300,12 @@ int mbedtls_x509_crt_parse(mbedtls_x509_crt *a, const unsigned char *b, size_t c
@@ -303,6 +303,12 @@ int mbedtls_x509_crt_parse(mbedtls_x509_crt *a, const unsigned char *b, size_t c
return mbedtls_stub.expected_int;
}

Expand Down Expand Up @@ -57,5 +57,5 @@ index 4f9ce6b96c..ad2d3d8d44 100644

#endif /* UNITTESTS_FEATURES_NETSOCKET_TLSSOCKET_TLS_TEST_CONFIG_H_ */
--
2.33.1
2.34.1

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From e9ca06b93d1db1a11ace1ad50a2132b7e8bbdb32 Mon Sep 17 00:00:00 2001
From b61ee5dcb0010d99b8260457ac8286bb1078412b Mon Sep 17 00:00:00 2001
From: Martino Facchin <m.facchin@arduino.cc>
Date: Mon, 9 Nov 2020 13:52:28 +0100
Subject: [PATCH 09/87] TLSSocketWrapper: add test for certificates stored in
Subject: [PATCH 009/110] TLSSocketWrapper: add test for certificates stored in
filesystem

---
Expand All @@ -12,10 +12,10 @@ Subject: [PATCH 09/87] TLSSocketWrapper: add test for certificates stored in
create mode 100644 connectivity/netsocket/tests/TESTS/netsocket/tls/tlssocket_cert_in_filesystem.cpp

diff --git a/connectivity/netsocket/tests/TESTS/netsocket/tls/main.cpp b/connectivity/netsocket/tests/TESTS/netsocket/tls/main.cpp
index f6489a3d73..495178d54a 100644
index aa256a7128..d9f9cd640c 100644
--- a/connectivity/netsocket/tests/TESTS/netsocket/tls/main.cpp
+++ b/connectivity/netsocket/tests/TESTS/netsocket/tls/main.cpp
@@ -233,6 +233,9 @@ Case cases[] = {
@@ -234,6 +234,9 @@ Case cases[] = {
Case("TLSSOCKET_SEND_REPEAT", TLSSOCKET_SEND_REPEAT),
Case("TLSSOCKET_SEND_TIMEOUT", TLSSOCKET_SEND_TIMEOUT),
Case("TLSSOCKET_NO_CERT", TLSSOCKET_NO_CERT),
Expand Down Expand Up @@ -95,5 +95,5 @@ index 0000000000..cf3dff2e93
+}
\ No newline at end of file
--
2.33.1
2.34.1

Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
From 4bc02f0c9008c2f3880dafa9807d5db8037267c7 Mon Sep 17 00:00:00 2001
From 43be92f77f5c5e4ea6c6b9b3b9f9b1adc08bc2e3 Mon Sep 17 00:00:00 2001
From: Martino Facchin <m.facchin@arduino.cc>
Date: Thu, 10 Dec 2020 19:39:01 +0100
Subject: [PATCH 11/87] Initial: support Portenta Beta
Subject: [PATCH 010/110] Initial: support Portenta Beta

TODO: add 27mhz clock configuration
---
targets/targets.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/targets/targets.json b/targets/targets.json
index 9cca9b223d..c94b2b65f8 100644
index 8732ee0ba8..f79bc4f63f 100644
--- a/targets/targets.json
+++ b/targets/targets.json
@@ -3213,7 +3213,7 @@
@@ -3455,7 +3455,7 @@
"overrides": {
"system_power_supply": "PWR_SMPS_1V8_SUPPLIES_LDO",
"clock_source": "USE_PLL_HSE_EXTC",
Expand All @@ -22,5 +22,5 @@ index 9cca9b223d..c94b2b65f8 100644
"network-default-interface-type": "ETHERNET",
"i2c_timing_value_algo": true
--
2.33.1
2.34.1

37 changes: 0 additions & 37 deletions patches/0010-SleepTracing-don-t-spam-logs-if-no-lock-is-held.patch

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
From 9b500518a857d55f395cdb58dc670812f40640bd Mon Sep 17 00:00:00 2001
From 2bdb291a44fd149d38662f70a574b1a06380fca7 Mon Sep 17 00:00:00 2001
From: Martino Facchin <m.facchin@arduino.cc>
Date: Thu, 11 Mar 2021 11:50:18 +0100
Subject: [PATCH 12/87] STM32: USB: allow dynamic USB speed configuration based
on bootloader parameters
Subject: [PATCH 011/110] STM32: USB: allow dynamic USB speed configuration
based on bootloader parameters

---
targets/TARGET_STM/USBPhy_STM32.cpp | 68 +++++++++++++++++++++++++++--
1 file changed, 64 insertions(+), 4 deletions(-)

diff --git a/targets/TARGET_STM/USBPhy_STM32.cpp b/targets/TARGET_STM/USBPhy_STM32.cpp
index 7f0c8d3142..222f2a971d 100644
index c45150de4b..40f1044216 100644
--- a/targets/TARGET_STM/USBPhy_STM32.cpp
+++ b/targets/TARGET_STM/USBPhy_STM32.cpp
@@ -211,10 +211,29 @@ void USB_reenumerate()
@@ -217,10 +217,29 @@ void USB_reenumerate()
}
#endif

Expand Down Expand Up @@ -42,7 +42,7 @@ index 7f0c8d3142..222f2a971d 100644
NVIC_DisableIRQ(USBHAL_IRQn);

if (this->events == NULL) {
@@ -234,7 +253,12 @@ void USBPhyHw::init(USBPhyEvents *events)
@@ -240,7 +259,12 @@ void USBPhyHw::init(USBPhyEvents *events)
hpcd.Init.battery_charging_enable = DISABLE;
#endif

Expand All @@ -56,7 +56,7 @@ index 7f0c8d3142..222f2a971d 100644
hpcd.Instance = USB_OTG_HS;
hpcd.Init.phy_itface = PCD_PHY_ULPI;
hpcd.Init.Sof_enable = 1;
@@ -249,7 +273,12 @@ void USBPhyHw::init(USBPhyEvents *events)
@@ -255,7 +279,12 @@ void USBPhyHw::init(USBPhyEvents *events)
__HAL_RCC_USB_OTG_HS_ULPI_CLK_SLEEP_ENABLE();
map = PinMap_USB_HS;

Expand All @@ -70,7 +70,7 @@ index 7f0c8d3142..222f2a971d 100644
hpcd.Instance = USB_OTG_HS;
hpcd.Init.phy_itface = USB_OTG_EMBEDDED_PHY;
hpcd.Init.Sof_enable = ENABLE;
@@ -269,7 +298,12 @@ void USBPhyHw::init(USBPhyEvents *events)
@@ -275,7 +304,12 @@ void USBPhyHw::init(USBPhyEvents *events)

map = PinMap_USB_HS;

Expand All @@ -84,7 +84,7 @@ index 7f0c8d3142..222f2a971d 100644
hpcd.Instance = USB_OTG_FS;
hpcd.Init.phy_itface = PCD_PHY_EMBEDDED;
hpcd.Init.Sof_enable = 1;
@@ -286,7 +320,12 @@ void USBPhyHw::init(USBPhyEvents *events)
@@ -292,7 +326,12 @@ void USBPhyHw::init(USBPhyEvents *events)

map = PinMap_USB_FS;

Expand All @@ -98,7 +98,7 @@ index 7f0c8d3142..222f2a971d 100644
hpcd.Instance = USB;
hpcd.Init.phy_itface = PCD_PHY_EMBEDDED;
hpcd.Init.speed = PCD_SPEED_FULL;
@@ -399,6 +438,13 @@ void USBPhyHw::deinit()
@@ -405,6 +444,13 @@ void USBPhyHw::deinit()
HAL_StatusTypeDef ret = HAL_PCD_DeInit(&hpcd);
MBED_ASSERT(ret == HAL_OK);

Expand All @@ -112,7 +112,7 @@ index 7f0c8d3142..222f2a971d 100644
NVIC_DisableIRQ(USBHAL_IRQn);

if (events != NULL) {
@@ -633,6 +679,13 @@ void USBPhyHw::endpoint_abort(usb_ep_t endpoint)
@@ -639,6 +685,13 @@ void USBPhyHw::endpoint_abort(usb_ep_t endpoint)

void USBPhyHw::process()
{
Expand All @@ -126,7 +126,7 @@ index 7f0c8d3142..222f2a971d 100644
HAL_PCD_IRQHandler(&instance->hpcd);
// Re-enable interrupt
NVIC_ClearPendingIRQ(USBHAL_IRQn);
@@ -641,6 +694,13 @@ void USBPhyHw::process()
@@ -647,6 +700,13 @@ void USBPhyHw::process()

void USBPhyHw::_usbisr(void)
{
Expand All @@ -141,5 +141,5 @@ index 7f0c8d3142..222f2a971d 100644
instance->events->start_process();
}
--
2.33.1
2.34.1

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From e100e74e875dd1f751e646a3a8c416bc2f629648 Mon Sep 17 00:00:00 2001
From 66c314a029c7db96c88c9155ec2db93f4f48ab72 Mon Sep 17 00:00:00 2001
From: Martino Facchin <m.facchin@arduino.cc>
Date: Thu, 10 Dec 2020 09:43:14 +0100
Subject: [PATCH 13/87] Increase Cordio memory pool for nRF52832
Subject: [PATCH 012/110] Increase Cordio memory pool for nRF52832

completes 9354bc2a958966739adb0b9584c966bc13e675d5
---
Expand All @@ -22,5 +22,5 @@ index 05e5a45eee..3a3d85128d 100644
"wsf-pool-buffer-size": {
"help": "Defines the memory allocated for the wsf memory pool.",
--
2.33.1
2.34.1

Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
From 32dbf8f936030455a90c0b9f3b6ad89de0b4faa6 Mon Sep 17 00:00:00 2001
From 7001a3f148125888a91e33c949340b13af855242 Mon Sep 17 00:00:00 2001
From: Paolo Calao <paolo.calao@gmail.com>
Date: Wed, 26 Aug 2020 17:57:42 +0200
Subject: [PATCH 14/87] Cordio Add sendCmplt Callback for updating NumCmplPckts
on disconnection
Subject: [PATCH 013/110] Cordio Add sendCmplt Callback for updating
NumCmplPckts on disconnection

---
.../stack/controller/sources/ble/lctr/lctr_main_conn.c | 6 ++++--
Expand Down Expand Up @@ -32,5 +32,5 @@ index 766c5170ec..5bc2190144 100644
if (pLctrVsHdlrs && pLctrVsHdlrs->connCleanup)
{
--
2.33.1
2.34.1

Loading

0 comments on commit daeed51

Please sign in to comment.