mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-18 18:57:46 -04:00
Fix compilation issue in WinSim Demo (#1232)
* Fix compilation issue * Fix formatting * Uncrustify: triggered by comment. * Remove commented line --------- Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
parent
a33d259b0c
commit
ba4f37f3bb
1 changed files with 5 additions and 4 deletions
|
@ -145,6 +145,7 @@ static UBaseType_t ulNextRand;
|
||||||
|
|
||||||
int main( void )
|
int main( void )
|
||||||
{
|
{
|
||||||
|
BaseType_t xResult;
|
||||||
const uint32_t ulLongTime_ms = pdMS_TO_TICKS( 1000UL );
|
const uint32_t ulLongTime_ms = pdMS_TO_TICKS( 1000UL );
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -185,14 +186,14 @@ int main( void )
|
||||||
}
|
}
|
||||||
#endif /* ( ipconfigUSE_DHCP != 0 ) */
|
#endif /* ( ipconfigUSE_DHCP != 0 ) */
|
||||||
|
|
||||||
memcpy( ipLOCAL_MAC_ADDRESS, ucMACAddress, sizeof( ucMACAddress ) );
|
xResult = FreeRTOS_IPInit_Multi();
|
||||||
|
|
||||||
FreeRTOS_IPInit_Multi();
|
|
||||||
#else /* if defined( ipconfigIPv4_BACKWARD_COMPATIBLE ) && ( ipconfigIPv4_BACKWARD_COMPATIBLE == 0 ) */
|
#else /* if defined( ipconfigIPv4_BACKWARD_COMPATIBLE ) && ( ipconfigIPv4_BACKWARD_COMPATIBLE == 0 ) */
|
||||||
/* Using the old /single /IPv4 library, or using backward compatible mode of the new /multi library. */
|
/* Using the old /single /IPv4 library, or using backward compatible mode of the new /multi library. */
|
||||||
FreeRTOS_IPInit( ucIPAddress, ucNetMask, ucGatewayAddress, ucDNSServerAddress, ucMACAddress );
|
xResult = FreeRTOS_IPInit( ucIPAddress, ucNetMask, ucGatewayAddress, ucDNSServerAddress, ucMACAddress );
|
||||||
#endif /* defined( ipconfigIPv4_BACKWARD_COMPATIBLE ) && ( ipconfigIPv4_BACKWARD_COMPATIBLE == 0 ) */
|
#endif /* defined( ipconfigIPv4_BACKWARD_COMPATIBLE ) && ( ipconfigIPv4_BACKWARD_COMPATIBLE == 0 ) */
|
||||||
|
|
||||||
|
configASSERT( xResult == pdTRUE );
|
||||||
|
|
||||||
/* Start the RTOS scheduler. */
|
/* Start the RTOS scheduler. */
|
||||||
FreeRTOS_debug_printf( ( "vTaskStartScheduler\r\n" ) );
|
FreeRTOS_debug_printf( ( "vTaskStartScheduler\r\n" ) );
|
||||||
vTaskStartScheduler();
|
vTaskStartScheduler();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue