File tree Expand file tree Collapse file tree 1 file changed +14
-7
lines changed
source/portable/NetworkInterface/RX Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ typedef enum
9494 eMACFailed , /* Initialisation failed. */
9595} eMAC_INIT_STATUS_TYPE ;
9696
97- static TaskHandle_t ether_receive_check_task_handle = 0 ;
97+ static TaskHandle_t ether_receive_check_task_handle = NULL ;
9898static TaskHandle_t xTaskToNotify = NULL ;
9999static BaseType_t xPHYLinkStatus ;
100100static BaseType_t xReportedStatus ;
@@ -448,12 +448,19 @@ static int InitializeNetwork( void )
448448 return pdFALSE ;
449449 }
450450
451- return_code = xTaskCreate ( prvEMACDeferredInterruptHandlerTask ,
452- "ETHER_RECEIVE_CHECK_TASK" ,
453- 512u ,
454- 0 ,
455- configMAX_PRIORITIES - 1 ,
456- & ether_receive_check_task_handle );
451+ if ( ether_receive_check_task_handle == NULL )
452+ {
453+ return_code = xTaskCreate ( prvEMACDeferredInterruptHandlerTask ,
454+ "ETHER_RECEIVE_CHECK_TASK" ,
455+ 512u ,
456+ 0 ,
457+ configMAX_PRIORITIES - 1 ,
458+ & ether_receive_check_task_handle );
459+ }
460+ else
461+ {
462+ return_code = pdTRUE ;
463+ }
457464
458465 if ( pdFALSE == return_code )
459466 {
You can’t perform that action at this time.
0 commit comments