Skip to content

Commit 0d7e4dd

Browse files
ABOSTMfpistm
authored andcommitted
Added functionality to pass custom parameter to HardwareTimer callback
Change prototype of callback function
1 parent d14d8e8 commit 0d7e4dd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/utility/stm32_eth.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,15 @@ static void Netif_Config(void)
138138
*/
139139
#if !defined(STM32_CORE_VERSION) || (STM32_CORE_VERSION <= 0x01060100)
140140
static void scheduler_callback(stimer_t *htim)
141-
#else
141+
#elif (STM32_CORE_VERSION <= 0x01080000)
142142
static void scheduler_callback(HardwareTimer *htim)
143+
#else
144+
static void scheduler_callback(void)
143145
#endif
144146
{
147+
#if (STM32_CORE_VERSION <= 0x01080000)
145148
UNUSED(htim);
149+
#endif
146150
stm32_eth_scheduler();
147151
}
148152

0 commit comments

Comments
 (0)