|
|
@ -103,6 +103,9 @@ BaseType_t xReturn, x;
|
|
|
|
{
|
|
|
|
{
|
|
|
|
xNetworkBufferSemaphore = xSemaphoreCreateCounting( ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS, ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS );
|
|
|
|
xNetworkBufferSemaphore = xSemaphoreCreateCounting( ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS, ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS );
|
|
|
|
configASSERT( xNetworkBufferSemaphore );
|
|
|
|
configASSERT( xNetworkBufferSemaphore );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if( xNetworkBufferSemaphore != NULL )
|
|
|
|
|
|
|
|
{
|
|
|
|
#if ( configQUEUE_REGISTRY_SIZE > 0 )
|
|
|
|
#if ( configQUEUE_REGISTRY_SIZE > 0 )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
vQueueAddToRegistry( xNetworkBufferSemaphore, "NetBufSem" );
|
|
|
|
vQueueAddToRegistry( xNetworkBufferSemaphore, "NetBufSem" );
|
|
|
@ -119,8 +122,6 @@ BaseType_t xReturn, x;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif /* ipconfigINCLUDE_EXAMPLE_FREERTOS_PLUS_TRACE_CALLS == 1 */
|
|
|
|
#endif /* ipconfigINCLUDE_EXAMPLE_FREERTOS_PLUS_TRACE_CALLS == 1 */
|
|
|
|
|
|
|
|
|
|
|
|
if( xNetworkBufferSemaphore != NULL )
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
vListInitialise( &xFreeBuffersList );
|
|
|
|
vListInitialise( &xFreeBuffersList );
|
|
|
|
|
|
|
|
|
|
|
|
/* Initialise all the network buffers. No storage is allocated to
|
|
|
|
/* Initialise all the network buffers. No storage is allocated to
|
|
|
|