diff --git a/cores/arduino/mbed/connectivity/drivers/emac/TARGET_STM/stm32xx_emac.h b/cores/arduino/mbed/connectivity/drivers/emac/TARGET_STM/stm32xx_emac.h index cfa675217..ecc280b2f 100644 --- a/cores/arduino/mbed/connectivity/drivers/emac/TARGET_STM/stm32xx_emac.h +++ b/cores/arduino/mbed/connectivity/drivers/emac/TARGET_STM/stm32xx_emac.h @@ -148,6 +148,13 @@ class STM32_EMAC : public EMAC { */ virtual void set_memory_manager(EMACMemoryManager &mem_mngr); + /* return the status of the interface as integer */ + int get_interface_status() override; + /* return true if the interface is in the correct state to transmit */ + bool is_ready_to_tx() override; + /* restart only if the interface is in error state */ + void restart() override; + // Called from driver functions ETH_HandleTypeDef EthHandle; osThreadId_t thread; /**< Processing thread */ diff --git a/cores/arduino/mbed/connectivity/netsocket/include/netsocket/EMAC.h b/cores/arduino/mbed/connectivity/netsocket/include/netsocket/EMAC.h index 515629b5a..885bc92c0 100644 --- a/cores/arduino/mbed/connectivity/netsocket/include/netsocket/EMAC.h +++ b/cores/arduino/mbed/connectivity/netsocket/include/netsocket/EMAC.h @@ -176,6 +176,17 @@ class EMAC { * @param mem_mngr Pointer to memory manager */ virtual void set_memory_manager(EMACMemoryManager &mem_mngr) = 0; + + virtual bool is_ready_to_tx() { + return true; + } + + virtual void restart() { + } + + virtual int get_interface_status() { + return -1; + } }; diff --git a/variants/ARDUINO_NANO33BLE/defines.txt b/variants/ARDUINO_NANO33BLE/defines.txt index 1d4374713..7388f604f 100644 --- a/variants/ARDUINO_NANO33BLE/defines.txt +++ b/variants/ARDUINO_NANO33BLE/defines.txt @@ -34,7 +34,7 @@ -DFEATURE_STORAGE=1 -D__FPU_PRESENT=1 -D__MBED__=1 --DMBED_BUILD_TIMESTAMP=1719580467.0657709 +-DMBED_BUILD_TIMESTAMP=1720438723.6150708 -D__MBED_CMSIS_RTOS_CM -DMBED_MPU_CUSTOM -DMBED_TICKLESS @@ -65,7 +65,7 @@ -DTOOLCHAIN_GCC_ARM -DWSF_MAX_HANDLERS=10 -DMBED_NO_GLOBAL_USING_DIRECTIVE=1 --DCORE_MAJOR= --DCORE_MINOR= --DCORE_PATCH= +-DCORE_MAJOR=4 +-DCORE_MINOR=1 +-DCORE_PATCH=5 -DUSE_ARDUINO_PINOUT diff --git a/variants/ARDUINO_NANO33BLE/libs/libmbed.a b/variants/ARDUINO_NANO33BLE/libs/libmbed.a index 4327290f8..c08ad17d6 100644 Binary files a/variants/ARDUINO_NANO33BLE/libs/libmbed.a and b/variants/ARDUINO_NANO33BLE/libs/libmbed.a differ diff --git a/variants/EDGE_CONTROL/defines.txt b/variants/EDGE_CONTROL/defines.txt index f9d7a0132..f50c1ca12 100644 --- a/variants/EDGE_CONTROL/defines.txt +++ b/variants/EDGE_CONTROL/defines.txt @@ -38,7 +38,7 @@ -DFEATURE_STORAGE=1 -D__FPU_PRESENT=1 -D__MBED__=1 --DMBED_BUILD_TIMESTAMP=1719580640.5462966 +-DMBED_BUILD_TIMESTAMP=1720438575.8324268 -D__MBED_CMSIS_RTOS_CM -DMBED_MPU_CUSTOM -DMBED_TICKLESS @@ -69,7 +69,7 @@ -DTOOLCHAIN_GCC_ARM -DWSF_MAX_HANDLERS=10 -DMBED_NO_GLOBAL_USING_DIRECTIVE=1 --DCORE_MAJOR= --DCORE_MINOR= --DCORE_PATCH= +-DCORE_MAJOR=4 +-DCORE_MINOR=1 +-DCORE_PATCH=5 -DUSE_ARDUINO_PINOUT diff --git a/variants/EDGE_CONTROL/libs/libmbed.a b/variants/EDGE_CONTROL/libs/libmbed.a index 40c43b735..8a652ac57 100644 Binary files a/variants/EDGE_CONTROL/libs/libmbed.a and b/variants/EDGE_CONTROL/libs/libmbed.a differ diff --git a/variants/GENERIC_STM32H747_M4/defines.txt b/variants/GENERIC_STM32H747_M4/defines.txt index cf07bc268..1da443e92 100644 --- a/variants/GENERIC_STM32H747_M4/defines.txt +++ b/variants/GENERIC_STM32H747_M4/defines.txt @@ -42,7 +42,7 @@ -DFEATURE_BLE=1 -D__FPU_PRESENT=1 -D__MBED__=1 --DMBED_BUILD_TIMESTAMP=1719580585.9789317 +-DMBED_BUILD_TIMESTAMP=1720439009.4096816 -D__MBED_CMSIS_RTOS_CM -DMBED_MPU_CUSTOM -DMBED_TICKLESS @@ -79,7 +79,7 @@ -DUSE_HAL_DRIVER -DVIRTIO_DEVICE_ONLY -DMBED_NO_GLOBAL_USING_DIRECTIVE=1 --DCORE_MAJOR= --DCORE_MINOR= --DCORE_PATCH= +-DCORE_MAJOR=4 +-DCORE_MINOR=1 +-DCORE_PATCH=5 -DUSE_ARDUINO_PINOUT diff --git a/variants/GENERIC_STM32H747_M4/libs/libmbed.a b/variants/GENERIC_STM32H747_M4/libs/libmbed.a index 33ac8b026..fd24d7d9b 100644 Binary files a/variants/GENERIC_STM32H747_M4/libs/libmbed.a and b/variants/GENERIC_STM32H747_M4/libs/libmbed.a differ diff --git a/variants/GIGA/defines.txt b/variants/GIGA/defines.txt index c45884ea6..74a071c4c 100644 --- a/variants/GIGA/defines.txt +++ b/variants/GIGA/defines.txt @@ -44,7 +44,7 @@ -DFEATURE_BLE=1 -D__FPU_PRESENT=1 -D__MBED__=1 --DMBED_BUILD_TIMESTAMP=1719930214.211079 +-DMBED_BUILD_TIMESTAMP=1720438617.7533863 -D__MBED_CMSIS_RTOS_CM -DMBED_TICKLESS -DMBEDTLS_FS_IO @@ -80,7 +80,7 @@ -DUSE_HAL_DRIVER -DVIRTIO_DRIVER_ONLY -DMBED_NO_GLOBAL_USING_DIRECTIVE=1 --DCORE_MAJOR= --DCORE_MINOR= --DCORE_PATCH= +-DCORE_MAJOR=4 +-DCORE_MINOR=1 +-DCORE_PATCH=5 -DUSE_ARDUINO_PINOUT diff --git a/variants/GIGA/libs/libmbed.a b/variants/GIGA/libs/libmbed.a index ed0ef5bfa..7d6c9c152 100644 Binary files a/variants/GIGA/libs/libmbed.a and b/variants/GIGA/libs/libmbed.a differ diff --git a/variants/NANO_RP2040_CONNECT/defines.txt b/variants/NANO_RP2040_CONNECT/defines.txt index 31cca3e7d..77e6362d7 100644 --- a/variants/NANO_RP2040_CONNECT/defines.txt +++ b/variants/NANO_RP2040_CONNECT/defines.txt @@ -21,7 +21,7 @@ -DDEVICE_USTICKER=1 -DDEVICE_WATCHDOG=1 -D__MBED__=1 --DMBED_BUILD_TIMESTAMP=1719580442.2641459 +-DMBED_BUILD_TIMESTAMP=1720438706.2363644 -D__MBED_CMSIS_RTOS_CM -DMBED_MPU_CUSTOM -DMBEDTLS_ENTROPY_NV_SEED @@ -45,7 +45,7 @@ -DTOOLCHAIN_GCC -DTOOLCHAIN_GCC_ARM -DMBED_NO_GLOBAL_USING_DIRECTIVE=1 --DCORE_MAJOR= --DCORE_MINOR= --DCORE_PATCH= +-DCORE_MAJOR=4 +-DCORE_MINOR=1 +-DCORE_PATCH=5 -DUSE_ARDUINO_PINOUT diff --git a/variants/NANO_RP2040_CONNECT/libs/libmbed.a b/variants/NANO_RP2040_CONNECT/libs/libmbed.a index 5c7a8064d..ee244a84e 100644 Binary files a/variants/NANO_RP2040_CONNECT/libs/libmbed.a and b/variants/NANO_RP2040_CONNECT/libs/libmbed.a differ diff --git a/variants/NICLA/defines.txt b/variants/NICLA/defines.txt index 011c86fc7..b5ef97883 100644 --- a/variants/NICLA/defines.txt +++ b/variants/NICLA/defines.txt @@ -33,7 +33,7 @@ -DFEATURE_BLE=1 -D__FPU_PRESENT=1 -D__MBED__=1 --DMBED_BUILD_TIMESTAMP=1719580684.6774077 +-DMBED_BUILD_TIMESTAMP=1720438759.8894477 -D__MBED_CMSIS_RTOS_CM -DMBED_MPU_CUSTOM -DMBED_TICKLESS @@ -75,7 +75,7 @@ -DTOOLCHAIN_GCC -DTOOLCHAIN_GCC_ARM -DMBED_NO_GLOBAL_USING_DIRECTIVE=1 --DCORE_MAJOR= --DCORE_MINOR= --DCORE_PATCH= +-DCORE_MAJOR=4 +-DCORE_MINOR=1 +-DCORE_PATCH=5 -DUSE_ARDUINO_PINOUT diff --git a/variants/NICLA/libs/libmbed.a b/variants/NICLA/libs/libmbed.a index 74e8feae6..71de582e6 100644 Binary files a/variants/NICLA/libs/libmbed.a and b/variants/NICLA/libs/libmbed.a differ diff --git a/variants/NICLA_VISION/defines.txt b/variants/NICLA_VISION/defines.txt index 031e34fbb..308ddf424 100644 --- a/variants/NICLA_VISION/defines.txt +++ b/variants/NICLA_VISION/defines.txt @@ -45,7 +45,7 @@ -DFLOW_SILENT -D__FPU_PRESENT=1 -D__MBED__=1 --DMBED_BUILD_TIMESTAMP=1719580720.2247646 +-DMBED_BUILD_TIMESTAMP=1720438783.4796686 -D__MBED_CMSIS_RTOS_CM -DMBED_TICKLESS -DMBEDTLS_FS_IO @@ -83,7 +83,7 @@ -DUSE_HAL_DRIVER -DVIRTIO_DRIVER_ONLY -DMBED_NO_GLOBAL_USING_DIRECTIVE=1 --DCORE_MAJOR= --DCORE_MINOR= --DCORE_PATCH= +-DCORE_MAJOR=4 +-DCORE_MINOR=1 +-DCORE_PATCH=5 -DUSE_ARDUINO_PINOUT diff --git a/variants/NICLA_VISION/libs/libmbed.a b/variants/NICLA_VISION/libs/libmbed.a index 8c7e3f253..bb08b0366 100644 Binary files a/variants/NICLA_VISION/libs/libmbed.a and b/variants/NICLA_VISION/libs/libmbed.a differ diff --git a/variants/OPTA/defines.txt b/variants/OPTA/defines.txt index d2bdfafe1..1579386ce 100644 --- a/variants/OPTA/defines.txt +++ b/variants/OPTA/defines.txt @@ -44,7 +44,7 @@ -DFEATURE_BLE=1 -D__FPU_PRESENT=1 -D__MBED__=1 --DMBED_BUILD_TIMESTAMP=1719929630.0019104 +-DMBED_BUILD_TIMESTAMP=1720438877.8913524 -D__MBED_CMSIS_RTOS_CM -DMBED_TICKLESS -DMBEDTLS_FS_IO @@ -80,7 +80,7 @@ -DUSE_HAL_DRIVER -DVIRTIO_DRIVER_ONLY -DMBED_NO_GLOBAL_USING_DIRECTIVE=1 --DCORE_MAJOR= --DCORE_MINOR= --DCORE_PATCH= +-DCORE_MAJOR=4 +-DCORE_MINOR=1 +-DCORE_PATCH=5 -DUSE_ARDUINO_PINOUT diff --git a/variants/OPTA/libs/libmbed.a b/variants/OPTA/libs/libmbed.a index c65f0bde3..d10587576 100644 Binary files a/variants/OPTA/libs/libmbed.a and b/variants/OPTA/libs/libmbed.a differ diff --git a/variants/PORTENTA_H7_M7/defines.txt b/variants/PORTENTA_H7_M7/defines.txt index 88cd37d58..626c9f6ba 100644 --- a/variants/PORTENTA_H7_M7/defines.txt +++ b/variants/PORTENTA_H7_M7/defines.txt @@ -46,7 +46,7 @@ -D__FPU_PRESENT=1 -DLSE_STARTUP_TIMEOUT=200 -D__MBED__=1 --DMBED_BUILD_TIMESTAMP=1719580529.7864532 +-DMBED_BUILD_TIMESTAMP=1720438970.1228094 -D__MBED_CMSIS_RTOS_CM -DMBED_TICKLESS -DMBEDTLS_FS_IO @@ -83,7 +83,7 @@ -DUSE_HAL_DRIVER -DVIRTIO_DRIVER_ONLY -DMBED_NO_GLOBAL_USING_DIRECTIVE=1 --DCORE_MAJOR= --DCORE_MINOR= --DCORE_PATCH= +-DCORE_MAJOR=4 +-DCORE_MINOR=1 +-DCORE_PATCH=5 -DUSE_ARDUINO_PINOUT diff --git a/variants/PORTENTA_H7_M7/libs/libmbed.a b/variants/PORTENTA_H7_M7/libs/libmbed.a index 0c6498244..7079a2ed9 100644 Binary files a/variants/PORTENTA_H7_M7/libs/libmbed.a and b/variants/PORTENTA_H7_M7/libs/libmbed.a differ diff --git a/variants/PORTENTA_X8/defines.txt b/variants/PORTENTA_X8/defines.txt index 438b2dd31..653418881 100644 --- a/variants/PORTENTA_X8/defines.txt +++ b/variants/PORTENTA_X8/defines.txt @@ -34,7 +34,7 @@ -DEXTRA_IDLE_STACK_REQUIRED -D__FPU_PRESENT=1 -D__MBED__=1 --DMBED_BUILD_TIMESTAMP=1719580895.1557932 +-DMBED_BUILD_TIMESTAMP=1720439046.7874656 -D__MBED_CMSIS_RTOS_CM -DMBED_MPU_CUSTOM -DMBED_TICKLESS @@ -70,7 +70,7 @@ -DUSE_HAL_DRIVER -DVIRTIO_DEVICE_ONLY -DMBED_NO_GLOBAL_USING_DIRECTIVE=1 --DCORE_MAJOR= --DCORE_MINOR= --DCORE_PATCH= +-DCORE_MAJOR=4 +-DCORE_MINOR=1 +-DCORE_PATCH=5 -DUSE_ARDUINO_PINOUT diff --git a/variants/PORTENTA_X8/libs/libmbed.a b/variants/PORTENTA_X8/libs/libmbed.a index 447f1fc0d..01083463c 100644 Binary files a/variants/PORTENTA_X8/libs/libmbed.a and b/variants/PORTENTA_X8/libs/libmbed.a differ diff --git a/variants/RASPBERRY_PI_PICO/defines.txt b/variants/RASPBERRY_PI_PICO/defines.txt index 49d1bf817..3156fa029 100644 --- a/variants/RASPBERRY_PI_PICO/defines.txt +++ b/variants/RASPBERRY_PI_PICO/defines.txt @@ -21,7 +21,7 @@ -DDEVICE_USTICKER=1 -DDEVICE_WATCHDOG=1 -D__MBED__=1 --DMBED_BUILD_TIMESTAMP=1719580504.0819786 +-DMBED_BUILD_TIMESTAMP=1720439093.433086 -D__MBED_CMSIS_RTOS_CM -DMBED_MPU_CUSTOM -DMBEDTLS_ENTROPY_NV_SEED @@ -44,7 +44,7 @@ -DTOOLCHAIN_GCC -DTOOLCHAIN_GCC_ARM -DMBED_NO_GLOBAL_USING_DIRECTIVE=1 --DCORE_MAJOR= --DCORE_MINOR= --DCORE_PATCH= +-DCORE_MAJOR=4 +-DCORE_MINOR=1 +-DCORE_PATCH=5 -DUSE_ARDUINO_PINOUT diff --git a/variants/RASPBERRY_PI_PICO/libs/libmbed.a b/variants/RASPBERRY_PI_PICO/libs/libmbed.a index 74546c2af..bfa355184 100644 Binary files a/variants/RASPBERRY_PI_PICO/libs/libmbed.a and b/variants/RASPBERRY_PI_PICO/libs/libmbed.a differ