Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FreeRTOS_GetEMACTaskHandle function added #1178

Closed
wants to merge 7 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions source/portable/NetworkInterface/STM32Hxx/NetworkInterface.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

/*-----------------------------------------------------------*/