Skip to content

Commit 944572f

Browse files
committed
TEMP: opta variant rebuild
1 parent 5c4be2f commit 944572f

File tree

7 files changed

+23
-11
lines changed

7 files changed

+23
-11
lines changed

cores/arduino/mbed/connectivity/drivers/emac/COMPONENT_WHD/interface/WhdSTAInterface.h

+6
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,11 @@ class WhdSTAInterface : public WiFiInterface, public EMACInterface {
119119
return 0;
120120
}
121121

122+
nsapi_error_t set_timeout(uint32_t timeout)
123+
{
124+
_timeout = timeout;
125+
}
126+
122127
/** Set blocking status of interface.
123128
* Nonblocking mode unsupported.
124129
*
@@ -257,6 +262,7 @@ class WhdSTAInterface : public WiFiInterface, public EMACInterface {
257262
nsapi_security_t _security;
258263
WHD_EMAC &_whd_emac;
259264
OlmInterface *_olm;
265+
uint32_t _timeout;
260266
whd_interface_shared_info_t &_iface_shared;
261267
};
262268

cores/arduino/mbed/connectivity/drivers/wifi/COMPONENT_WHD/wifi-host-driver/inc/whd_wifi_api.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ extern uint32_t whd_wifi_stop_scan(whd_interface_t ifp);
281281
* Error code if an error occurred
282282
*/
283283
extern uint32_t whd_wifi_join(whd_interface_t ifp, const whd_ssid_t *ssid, whd_security_t auth_type,
284-
const uint8_t *security_key, uint8_t key_length);
284+
const uint8_t *security_key, uint8_t key_length, uint32_t timeout);
285285

286286
/** Joins a specific Wi-Fi network
287287
*

cores/arduino/mbed/connectivity/netsocket/include/netsocket/TLSSocketWrapper.h

+4
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,10 @@ class TLSSocketWrapper : public Socket {
379379
Socket *_transport;
380380
int _timeout = -1;
381381

382+
// Event flags
383+
static const int READ_FLAG = 0x1u;
384+
static const int WRITE_FLAG = 0x2u;
385+
382386
#ifdef MBEDTLS_X509_CRT_PARSE_C
383387
mbedtls_x509_crt *_cacert = nullptr;
384388
mbedtls_x509_crt *_clicert = nullptr;

cores/arduino/mbed/connectivity/netsocket/include/netsocket/WiFiInterface.h

+7
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ class WiFiInterface: public virtual NetworkInterface {
5959
*/
6060
virtual nsapi_error_t set_channel(uint8_t channel) = 0;
6161

62+
/** Set the Wi-Fi network join timeout.
63+
*
64+
* @param timeout joint timeout in milliseconds (Default: 7000).
65+
* @return NSAPI_ERROR_OK on success, or error code on failure.
66+
*/
67+
virtual nsapi_error_t set_timeout(uint32_t timeout) = 0;
68+
6269
/** Get the current radio signal strength for active connection.
6370
*
6471
* @return Connection strength in dBm (negative value),

variants/OPTA/defines.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
-DFEATURE_BLE=1
4545
-D__FPU_PRESENT=1
4646
-D__MBED__=1
47-
-DMBED_BUILD_TIMESTAMP=1720438877.8913524
47+
-DMBED_BUILD_TIMESTAMP=1730106855.6814
4848
-D__MBED_CMSIS_RTOS_CM
4949
-DMBED_TICKLESS
5050
-DMBEDTLS_FS_IO
@@ -80,7 +80,7 @@
8080
-DUSE_HAL_DRIVER
8181
-DVIRTIO_DRIVER_ONLY
8282
-DMBED_NO_GLOBAL_USING_DIRECTIVE=1
83-
-DCORE_MAJOR=4
84-
-DCORE_MINOR=1
85-
-DCORE_PATCH=5
83+
-DCORE_MAJOR=
84+
-DCORE_MINOR=
85+
-DCORE_PATCH=
8686
-DUSE_ARDUINO_PINOUT

variants/OPTA/libs/libmbed.a

39.5 KB
Binary file not shown.

variants/OPTA/linker_script.ld

+1-6
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,7 @@ SECTIONS
9494
__bss_end__ = .;
9595
_ebss = .;
9696
} > RAM
97-
.openamp_section (NOLOAD) : {
98-
. = ABSOLUTE(0x38000000);
99-
*(.resource_table)
100-
} >RAM_D3 AT > FLASH
101-
.pdm_section (NOLOAD) : {
102-
. = ABSOLUTE(0x3800FC00);
97+
.pdm_section 0x3800FC00 (NOLOAD): {
10398
*(.pdm_buffer)
10499
} > RAM_D3
105100
_dtcm_lma = __etext + SIZEOF(.data);

0 commit comments

Comments
 (0)