1
0
mirror of https://github.com/FreeRTOS/FreeRTOS-Plus-TCP synced 2025-10-21 23:30:39 +08:00

Misra check fix and update (#476)

* Misra check fix and update
This commit is contained in:
xuelix
2022-06-06 17:47:09 -07:00
committed by GitHub
parent ab3d0fa100
commit 4fb9674de0
25 changed files with 231 additions and 222 deletions

View File

@@ -72,8 +72,6 @@
#define ipINITIALISATION_RETRY_DELAY ( pdMS_TO_TICKS( 3000U ) )
#endif
extern QueueHandle_t xNetworkEventQueue;
#if ( ipconfigUSE_NETWORK_EVENT_HOOK == 1 )
static BaseType_t xCallEventHook = pdFALSE;
#endif
@@ -291,8 +289,12 @@ NetworkBufferDescriptor_t * pxUDPPayloadBuffer_to_NetworkBuffer( const void * pv
BaseType_t xIsCallingFromIPTask( void )
{
BaseType_t xReturn;
TaskHandle_t xCurrentHandle, xCurrentIPTaskHandle;
if( xTaskGetCurrentTaskHandle() == FreeRTOS_GetIPTaskHandle() )
xCurrentHandle = xTaskGetCurrentTaskHandle();
xCurrentIPTaskHandle = FreeRTOS_GetIPTaskHandle();
if( xCurrentHandle == xCurrentIPTaskHandle )
{
xReturn = pdTRUE;
}