X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=FreeRTOS%2FDemo%2FXilinx_FreeRTOS_BSP%2Frepo%2Fsw_apps%2Ffreertos_hello_world%2Fsrc%2Ffreertos_hello_world.c;h=04ab46747c848c68218fd36257a9db453d0e7347;hb=refs%2Ftags%2FV9.0.0rc2;hp=e2bb576072d1acdc0bf32dc6c69f76c8a6857dd0;hpb=fe5eccd892a7b67dc33f9f9f26aeedbb123d30a9;p=freertos diff --git a/FreeRTOS/Demo/Xilinx_FreeRTOS_BSP/repo/sw_apps/freertos_hello_world/src/freertos_hello_world.c b/FreeRTOS/Demo/Xilinx_FreeRTOS_BSP/repo/sw_apps/freertos_hello_world/src/freertos_hello_world.c index e2bb57607..04ab46747 100644 --- a/FreeRTOS/Demo/Xilinx_FreeRTOS_BSP/repo/sw_apps/freertos_hello_world/src/freertos_hello_world.c +++ b/FreeRTOS/Demo/Xilinx_FreeRTOS_BSP/repo/sw_apps/freertos_hello_world/src/freertos_hello_world.c @@ -1,5 +1,5 @@ /* - FreeRTOS V8.2.2 - Copyright (C) 2015 Real Time Engineers Ltd. + FreeRTOS V9.0.0rc2 - Copyright (C) 2016 Real Time Engineers Ltd. All rights reserved VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION. @@ -8,7 +8,7 @@ FreeRTOS is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License (version 2) as published by the - Free Software Foundation >>!AND MODIFIED BY!<< the FreeRTOS exception. + Free Software Foundation >>>> AND MODIFIED BY <<<< the FreeRTOS exception. *************************************************************************** >>! NOTE: The modification to the GPL is included to allow you to !<< @@ -138,9 +138,8 @@ int main( void ) for more details. */ for( ;; ); } - - /*-----------------------------------------------------------*/ + static void prvTxTask( void *pvParameters ) { const TickType_t x500ms = pdMS_TO_TICKS( 500UL ); @@ -156,10 +155,12 @@ uint32_t ulValueToSend = 0; xQueueSend( xQueue, /* The queue being written to. */ &ulValueToSend, /* The address of the data being sent. */ 0UL ); /* The block time. */ + + ulValueToSend++; } } - /*-----------------------------------------------------------*/ + static void prvRxTask( void *pvParameters ) { uint32_t ulValueReceived; @@ -172,7 +173,7 @@ uint32_t ulValueReceived; portMAX_DELAY ); /* Wait without a timeout for data. */ /* Print the received data. */ - xil_printf( "Rx task received %u\r\n", ( unsigned int ) ulValueReceived ); + xil_printf( "Rx task received %d\r\n", ( int ) ulValueReceived ); } }