diff --git a/source/portable/NetworkInterface/STM32Hxx/NetworkInterface.c b/source/portable/NetworkInterface/STM32Hxx/NetworkInterface.c index e42e58fdd..04d03962d 100644 --- a/source/portable/NetworkInterface/STM32Hxx/NetworkInterface.c +++ b/source/portable/NetworkInterface/STM32Hxx/NetworkInterface.c @@ -87,6 +87,9 @@ #define niEMAC_HANDLER_TASK_PRIORITY configMAX_PRIORITIES - 1 #endif +#ifndef ipconfigEMAC_TASK_HOOK + #define ipconfigEMAC_TASK_HOOK() +#endif /* Bit map of outstanding ETH interrupt events for processing. */ static volatile uint32_t ulISREvents; @@ -1193,7 +1196,22 @@ static void prvEMACHandlerTask( void * pvParameters ) prvEthernetUpdateConfig( pdFALSE ); } } + + ipconfigEMAC_TASK_HOOK(); } } /*-----------------------------------------------------------*/ + +/** + * @brief The variable 'xEMACTaskHandle' is declared static. This function + * gives read-only access to it. + * + * @return The handle of the EMAC-task. + */ +TaskHandle_t FreeRTOS_GetEMACTaskHandle( void ) +{ + return xEMACTaskHandle; +} + +/*-----------------------------------------------------------*/ \ No newline at end of file