From 3037d67236f696b68c6490aa59a795bdf046a387 Mon Sep 17 00:00:00 2001 From: Alexandre Bourdiol Date: Wed, 11 Mar 2020 16:05:04 +0100 Subject: [PATCH] Added functionality to pass custom parameter to HardwareTimer callback Change prototype of callback function --- src/utility/stm32_eth.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/utility/stm32_eth.cpp b/src/utility/stm32_eth.cpp index 509d0c4..28ad2ba 100644 --- a/src/utility/stm32_eth.cpp +++ b/src/utility/stm32_eth.cpp @@ -138,11 +138,15 @@ static void Netif_Config(void) */ #if !defined(STM32_CORE_VERSION) || (STM32_CORE_VERSION <= 0x01060100) static void scheduler_callback(stimer_t *htim) -#else +#elif (STM32_CORE_VERSION <= 0x01080000) static void scheduler_callback(HardwareTimer *htim) +#else +static void scheduler_callback(void) #endif { +#if (STM32_CORE_VERSION <= 0x01080000) UNUSED(htim); +#endif stm32_eth_scheduler(); }