mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-20 05:21:59 -04:00
Removed the critical section that was left in by mistake. Also changed the delay period while waiting for the Ethernet semaphore. Both in the RX RDK demo.
This commit is contained in:
parent
a91ec6efe7
commit
ccf36aeed4
|
@ -150,7 +150,6 @@ struct timer periodic_timer, arp_timer;
|
||||||
|
|
||||||
if( ( uip_len > 0 ) && ( uip_buf != NULL ) )
|
if( ( uip_len > 0 ) && ( uip_buf != NULL ) )
|
||||||
{
|
{
|
||||||
taskENTER_CRITICAL();
|
|
||||||
/* Standard uIP loop taken from the uIP manual. */
|
/* Standard uIP loop taken from the uIP manual. */
|
||||||
if( xHeader->type == htons( UIP_ETHTYPE_IP ) )
|
if( xHeader->type == htons( UIP_ETHTYPE_IP ) )
|
||||||
{
|
{
|
||||||
|
@ -178,7 +177,6 @@ taskENTER_CRITICAL();
|
||||||
vEMACWrite();
|
vEMACWrite();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
taskEXIT_CRITICAL();
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -212,7 +210,7 @@ taskEXIT_CRITICAL();
|
||||||
processing to perform. Block for a fixed period. If a packet
|
processing to perform. Block for a fixed period. If a packet
|
||||||
is received during this period we will be woken by the ISR
|
is received during this period we will be woken by the ISR
|
||||||
giving us the Semaphore. */
|
giving us the Semaphore. */
|
||||||
xSemaphoreTake( xEMACSemaphore, configTICK_RATE_HZ / 2 );
|
xSemaphoreTake( xEMACSemaphore, configTICK_RATE_HZ / 20 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue