Skip to content

Commit

Permalink
Update patchset
Browse files Browse the repository at this point in the history
  • Loading branch information
facchinm authored and pennam committed Mar 1, 2023
1 parent 29184e9 commit b20c4e0
Show file tree
Hide file tree
Showing 204 changed files with 1,174 additions and 735 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 3d7f8d18abca4e6132611fe544bf94b5d3483af3 Mon Sep 17 00:00:00 2001
From c5ce071e5244e9331a40c81679537e36fae1025f Mon Sep 17 00:00:00 2001
From: Martino Facchin <[email protected]>
Date: Thu, 11 Mar 2021 15:05:20 +0100
Subject: [PATCH 001/157] PACKAGING: remove gdb exta information to slim
Subject: [PATCH 001/204] PACKAGING: remove gdb exta information to slim
library

---
Expand All @@ -22,5 +22,5 @@ index 21ba5c88d5..5995d276e4 100644
"c": ["-c", "-std=gnu11"],
"cxx": ["-c", "-std=gnu++14", "-fno-rtti", "-Wvla"],
--
2.36.0
2.39.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 cb1899e821138682f821ef80b4d1480c013ad3bd Mon Sep 17 00:00:00 2001
From 2c06761fffc1f493dd5dcc327f986572f38ae44f Mon Sep 17 00:00:00 2001
From: Martino Facchin <[email protected]>
Date: Wed, 28 Oct 2020 15:26:21 +0100
Subject: [PATCH 002/157] Portenta: enable certificates in filesystem
Subject: [PATCH 002/204] 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 f4d4055553..8732ee0ba8 100644
index ec59258f6e..ccfcd47116 100644
--- a/targets/targets.json
+++ b/targets/targets.json
@@ -3428,6 +3428,8 @@
@@ -3540,6 +3540,8 @@
}
},
"macros_add": [
Expand All @@ -21,5 +21,5 @@ index f4d4055553..8732ee0ba8 100644
"QSPI_NO_SAMPLE_SHIFT",
"CYW43XXX_UNBUFFERED_UART"
--
2.36.0
2.39.1

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 3659582e80ee60cd6f393318f54c51b90ef6703e Mon Sep 17 00:00:00 2001
From f253ffd9e7717ff049cb678364b4ccf36d9d5245 Mon Sep 17 00:00:00 2001
From: Martino Facchin <[email protected]>
Date: Wed, 1 Apr 2020 12:21:59 +0200
Subject: [PATCH 003/157] I2CSlave.read(buf, count) returns the number of bytes
Subject: [PATCH 003/204] 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.36.0
2.39.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 7abd4be4ee59e6e96f250f9a79c5d70d365a2417 Mon Sep 17 00:00:00 2001
From 76c93b67d821c29dc00c5c2e1017cb99fcc14c99 Mon Sep 17 00:00:00 2001
From: Paolo Calao <[email protected]>
Date: Wed, 13 May 2020 11:59:46 +0200
Subject: [PATCH 004/157] Add AnalogIn configure function
Subject: [PATCH 004/204] 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.36.0
2.39.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 5722a9ef477e5a3f4470898c7028633f1f004ff6 Mon Sep 17 00:00:00 2001
From a6f3b88ed5bd11c0585ce3b6c20efe2a3c659482 Mon Sep 17 00:00:00 2001
From: Martino Facchin <[email protected]>
Date: Wed, 31 Jul 2019 12:48:04 +0200
Subject: [PATCH 005/157] HACK: avoid #10862 by not firing the assert
Subject: [PATCH 005/204] 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.36.0
2.39.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 7670c4f59b63a06fea0fc6dcd96af6976a548317 Mon Sep 17 00:00:00 2001
From 870bd11b57b6497fec6469c7ed59a627fcc96996 Mon Sep 17 00:00:00 2001
From: Paolo Calao <[email protected]>
Date: Thu, 29 Oct 2020 15:40:32 +0100
Subject: [PATCH 006/157] portentaH7: Change BLE public address
Subject: [PATCH 006/204] 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.36.0
2.39.1

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From d1ded30e5559b403dd49378bfaf9e7fab87d4ffa Mon Sep 17 00:00:00 2001
From c1b9413d1eba88fcb1ae858481d7b0e692c7491d Mon Sep 17 00:00:00 2001
From: Martino Facchin <[email protected]>
Date: Mon, 9 Nov 2020 10:00:01 +0100
Subject: [PATCH 007/157] TLSSocketWrapper: add method to retrieve certificates
Subject: [PATCH 007/204] 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.36.0
2.39.1

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From ec10b2d3b5671f72ff3be6510f561dcc15712d5e Mon Sep 17 00:00:00 2001
From 2ea47a9ca4cc1b6f92eacafe54cdb02df1cad6b5 Mon Sep 17 00:00:00 2001
From: Martino Facchin <[email protected]>
Date: Mon, 9 Nov 2020 13:34:18 +0100
Subject: [PATCH 008/157] TLSSocketWrapper: Add unit test for
Subject: [PATCH 008/204] TLSSocketWrapper: Add unit test for
set_root_ca_cert_path

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

#endif /* UNITTESTS_FEATURES_NETSOCKET_TLSSOCKET_TLS_TEST_CONFIG_H_ */
--
2.36.0
2.39.1

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From b61ee5dcb0010d99b8260457ac8286bb1078412b Mon Sep 17 00:00:00 2001
From 33ec14f8249f1bd509dde015e80ecf291b56077a Mon Sep 17 00:00:00 2001
From: Martino Facchin <[email protected]>
Date: Mon, 9 Nov 2020 13:52:28 +0100
Subject: [PATCH 009/157] TLSSocketWrapper: add test for certificates stored in
Subject: [PATCH 009/204] TLSSocketWrapper: add test for certificates stored in
filesystem

---
Expand All @@ -12,13 +12,13 @@ Subject: [PATCH 009/157] 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 aa256a7128..d9f9cd640c 100644
index a3dfcb1667..7e1659d865 100644
--- a/connectivity/netsocket/tests/TESTS/netsocket/tls/main.cpp
+++ b/connectivity/netsocket/tests/TESTS/netsocket/tls/main.cpp
@@ -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),
@@ -235,6 +235,9 @@ Case cases[] = {
// Case("TLSSOCKET_SEND_REPEAT", TLSSOCKET_SEND_REPEAT),
// Case("TLSSOCKET_SEND_TIMEOUT", TLSSOCKET_SEND_TIMEOUT),
// Case("TLSSOCKET_NO_CERT", TLSSOCKET_NO_CERT),
+#if defined(MBEDTLS_SSL_CLI_C) && defined(MBEDTLS_FS_IO)
+ Case("TLSSOCKET_CERT_IN_FILESYSTEM", TLSSOCKET_CERT_IN_FILESYSTEM),
+#endif
Expand Down Expand Up @@ -95,5 +95,5 @@ index 0000000000..cf3dff2e93
+}
\ No newline at end of file
--
2.36.0
2.39.1

10 changes: 5 additions & 5 deletions patches/0010-Initial-support-Portenta-Beta.patch
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
From 43be92f77f5c5e4ea6c6b9b3b9f9b1adc08bc2e3 Mon Sep 17 00:00:00 2001
From e7078e7b5cb20902943b4ef3ae797de4e6e4c571 Mon Sep 17 00:00:00 2001
From: Martino Facchin <[email protected]>
Date: Thu, 10 Dec 2020 19:39:01 +0100
Subject: [PATCH 010/157] Initial: support Portenta Beta
Subject: [PATCH 010/204] 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 8732ee0ba8..f79bc4f63f 100644
index ccfcd47116..8d418bd6b9 100644
--- a/targets/targets.json
+++ b/targets/targets.json
@@ -3455,7 +3455,7 @@
@@ -3567,7 +3567,7 @@
"overrides": {
"system_power_supply": "PWR_SMPS_1V8_SUPPLIES_LDO",
"clock_source": "USE_PLL_HSE_EXTC",
Expand All @@ -22,5 +22,5 @@ index 8732ee0ba8..f79bc4f63f 100644
"network-default-interface-type": "ETHERNET",
"i2c_timing_value_algo": true
--
2.36.0
2.39.1

Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
From 2bdb291a44fd149d38662f70a574b1a06380fca7 Mon Sep 17 00:00:00 2001
From a6594adeff91a1a1942b69db209abf2b77794357 Mon Sep 17 00:00:00 2001
From: Martino Facchin <[email protected]>
Date: Thu, 11 Mar 2021 11:50:18 +0100
Subject: [PATCH 011/157] STM32: USB: allow dynamic USB speed configuration
Subject: [PATCH 011/204] 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 c45150de4b..40f1044216 100644
index a243961a97..3c86f20883 100644
--- a/targets/TARGET_STM/USBPhy_STM32.cpp
+++ b/targets/TARGET_STM/USBPhy_STM32.cpp
@@ -217,10 +217,29 @@ void USB_reenumerate()
Expand Down Expand Up @@ -70,7 +70,7 @@ index c45150de4b..40f1044216 100644
hpcd.Instance = USB_OTG_HS;
hpcd.Init.phy_itface = USB_OTG_EMBEDDED_PHY;
hpcd.Init.Sof_enable = ENABLE;
@@ -275,7 +304,12 @@ void USBPhyHw::init(USBPhyEvents *events)
@@ -284,7 +313,12 @@ void USBPhyHw::init(USBPhyEvents *events)

map = PinMap_USB_HS;

Expand All @@ -84,7 +84,7 @@ index c45150de4b..40f1044216 100644
hpcd.Instance = USB_OTG_FS;
hpcd.Init.phy_itface = PCD_PHY_EMBEDDED;
hpcd.Init.Sof_enable = 1;
@@ -292,7 +326,12 @@ void USBPhyHw::init(USBPhyEvents *events)
@@ -301,7 +335,12 @@ void USBPhyHw::init(USBPhyEvents *events)

map = PinMap_USB_FS;

Expand All @@ -98,7 +98,7 @@ index c45150de4b..40f1044216 100644
hpcd.Instance = USB;
hpcd.Init.phy_itface = PCD_PHY_EMBEDDED;
hpcd.Init.speed = PCD_SPEED_FULL;
@@ -405,6 +444,13 @@ void USBPhyHw::deinit()
@@ -414,6 +453,13 @@ void USBPhyHw::deinit()
HAL_StatusTypeDef ret = HAL_PCD_DeInit(&hpcd);
MBED_ASSERT(ret == HAL_OK);

Expand All @@ -112,7 +112,7 @@ index c45150de4b..40f1044216 100644
NVIC_DisableIRQ(USBHAL_IRQn);

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

void USBPhyHw::process()
{
Expand All @@ -126,7 +126,7 @@ index c45150de4b..40f1044216 100644
HAL_PCD_IRQHandler(&instance->hpcd);
// Re-enable interrupt
NVIC_ClearPendingIRQ(USBHAL_IRQn);
@@ -647,6 +700,13 @@ void USBPhyHw::process()
@@ -656,6 +709,13 @@ void USBPhyHw::process()

void USBPhyHw::_usbisr(void)
{
Expand All @@ -141,5 +141,5 @@ index c45150de4b..40f1044216 100644
instance->events->start_process();
}
--
2.36.0
2.39.1

6 changes: 3 additions & 3 deletions patches/0012-Increase-Cordio-memory-pool-for-nRF52832.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 66c314a029c7db96c88c9155ec2db93f4f48ab72 Mon Sep 17 00:00:00 2001
From c6ba27d3661f7b4684a118fa6cb929b884962128 Mon Sep 17 00:00:00 2001
From: Martino Facchin <[email protected]>
Date: Thu, 10 Dec 2020 09:43:14 +0100
Subject: [PATCH 012/157] Increase Cordio memory pool for nRF52832
Subject: [PATCH 012/204] 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.36.0
2.39.1

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 7001a3f148125888a91e33c949340b13af855242 Mon Sep 17 00:00:00 2001
From ad6f40e1aaa9ed00efaff3679ea76297b86a9f82 Mon Sep 17 00:00:00 2001
From: Paolo Calao <[email protected]>
Date: Wed, 26 Aug 2020 17:57:42 +0200
Subject: [PATCH 013/157] Cordio Add sendCmplt Callback for updating
Subject: [PATCH 013/204] Cordio Add sendCmplt Callback for updating
NumCmplPckts on disconnection

---
Expand Down Expand Up @@ -32,5 +32,5 @@ index 766c5170ec..5bc2190144 100644
if (pLctrVsHdlrs && pLctrVsHdlrs->connCleanup)
{
--
2.36.0
2.39.1

10 changes: 5 additions & 5 deletions patches/0014-Add-support-for-Arduino-Edge-Control.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From d7f2002260d93cbd4424dca524ac0b5ac8855d9e Mon Sep 17 00:00:00 2001
From fe02240e6f395771a11e37705386e3d6dd82cd58 Mon Sep 17 00:00:00 2001
From: Giampaolo Mancini <[email protected]>
Date: Wed, 8 Jan 2020 16:42:46 +0100
Subject: [PATCH 014/157] Add support for Arduino Edge Control
Subject: [PATCH 014/204] Add support for Arduino Edge Control

---
.../TARGET_EDGE_CONTROL/PinNames.h | 207 ++++++++++++++++++
Expand Down Expand Up @@ -269,10 +269,10 @@ index 0000000000..2427e752ea
+
+#endif
diff --git a/targets/targets.json b/targets/targets.json
index f79bc4f63f..0bc010dbea 100644
index 8d418bd6b9..c035a6ed52 100644
--- a/targets/targets.json
+++ b/targets/targets.json
@@ -6811,6 +6811,19 @@
@@ -7067,6 +7067,19 @@
"CONFIG_GPIO_AS_PINRESET"
]
},
Expand All @@ -293,5 +293,5 @@ index f79bc4f63f..0bc010dbea 100644
"core": "Cortex-M4F",
"components_add": [
--
2.36.0
2.39.1

6 changes: 3 additions & 3 deletions patches/0015-RASPBERRYPI-import-pico-sdk.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From d0d987ef31108b9372818f7c728a29986a8b85de Mon Sep 17 00:00:00 2001
From 0895da5d527a12b7623fa265f1972c3a56ea77a3 Mon Sep 17 00:00:00 2001
From: Martino Facchin <[email protected]>
Date: Mon, 3 May 2021 10:45:27 +0200
Subject: [PATCH 015/157] RASPBERRYPI: import pico-sdk
Subject: [PATCH 015/204] RASPBERRYPI: import pico-sdk

---
.../TARGET_RP2040/pico-sdk/CMakeLists.txt | 89 +
Expand Down Expand Up @@ -122065,5 +122065,5 @@ index 0000000000..6c361e0002
+ * \brief <a href="https://github.com/hathach/tinyusb">TinyUSB</a> Host-mode support for the RP2040
+ */
--
2.36.0
2.39.1

10 changes: 5 additions & 5 deletions patches/0016-RP2040-add-NANO_RP2040_CONNECT-target.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From da155e47b873ca2844201f68e8733dd7a2f85bf2 Mon Sep 17 00:00:00 2001
From d513993457a61cf37cf53aaf02a53c769f132484 Mon Sep 17 00:00:00 2001
From: Martino Facchin <[email protected]>
Date: Mon, 3 May 2021 10:56:43 +0200
Subject: [PATCH 016/157] RP2040: add NANO_RP2040_CONNECT target
Subject: [PATCH 016/204] RP2040: add NANO_RP2040_CONNECT target

---
targets/CMakeLists.txt | 1 +
Expand Down Expand Up @@ -991,10 +991,10 @@ index 0000000000..f43fa2e32d
+
+#endif // MBED_MBED_RTX_H
diff --git a/targets/targets.json b/targets/targets.json
index 0bc010dbea..5bdddb968d 100644
index c035a6ed52..239260df44 100644
--- a/targets/targets.json
+++ b/targets/targets.json
@@ -8957,6 +8957,35 @@
@@ -9404,6 +9404,35 @@
"inherits": ["AMA3B1KK"],
"components_add": ["lis2dh12", "hm01b0"]
},
Expand Down Expand Up @@ -1031,5 +1031,5 @@ index 0bc010dbea..5bdddb968d 100644
"version": "1",
"public": false
--
2.36.0
2.39.1

Loading

0 comments on commit b20c4e0

Please sign in to comment.