Skip to content

Commit a747194

Browse files
committed
Support network down event
1 parent d8d3f96 commit a747194

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/portable/NetworkInterface/STM32/NetworkInterface.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -787,6 +787,10 @@ static void prvEthernetUpdateConfig( void )
787787
/* iptraceNETWORK_INTERFACE_STATUS_CHANGE(); */
788788
xHalResult = HAL_ETH_Stop_IT( &xEthHandle );
789789
configASSERT( xHalResult == HAL_OK );
790+
791+
#if ( ipconfigSUPPORT_NETWORK_DOWN_EVENT != 0 )
792+
FreeRTOS_NetworkDown( pxMyInterface );
793+
#endif
790794
}
791795
}
792796

0 commit comments

Comments
 (0)