]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/CORTEX_A53_64-bit_UltraScale_MPSoC/RTOSDemo_A53/src/Blinky_Demo/main_blinky.c
Update some more standard demos for use on 64-bit architectures.
[freertos] / FreeRTOS / Demo / CORTEX_A53_64-bit_UltraScale_MPSoC / RTOSDemo_A53 / src / Blinky_Demo / main_blinky.c
index 91702ed4bbb63186a876cd610c0ce283984c96ad..d5d8aad77c9859cb5e946df685d8748880627719 100644 (file)
@@ -75,7 +75,7 @@
  * implements the simply blinky style version.\r
  *\r
  * NOTE 2:  This file only contains the source code that is specific to the\r
- * basic demo.  Generic functions, such FreeRTOS hook functions, and functions\r
+ * simple demo.  Generic functions, such FreeRTOS hook functions, and functions\r
  * required to configure the hardware are defined in main.c.\r
  ******************************************************************************\r
  *\r
  * in this file.  prvQueueReceiveTask() sits in a loop where it repeatedly\r
  * blocks on attempts to read data from the queue that was created within\r
  * main_blinky().  When data is received, the task checks the value of the\r
- * data, and if the value equals the expected 100, toggles an LED.  The 'block\r
- * time' parameter passed to the queue receive function specifies that the\r
- * task should be held in the Blocked state indefinitely to wait for data to\r
- * be available on the queue.  The queue receive task will only leave the\r
- * Blocked state when the queue send task writes to the queue.  As the queue\r
- * send task writes to the queue every 200 milliseconds, the queue receive\r
- * task leaves the Blocked state every 200 milliseconds, and therefore toggles\r
- * the LED every 200 milliseconds.\r
+ * data, and if the value equals the expected 100, outputs a message to the\r
+ * UART.  The 'block time' parameter passed to the queue receive function\r
+ * specifies that the task should be held in the Blocked state indefinitely to\r
+ * wait for data to be available on the queue.  The queue receive task will only\r
+ * leave the Blocked state when the queue send task writes to the queue.  As the\r
+ * queue send task writes to the queue every 200 milliseconds, the queue receive\r
+ * task leaves the Blocked state every 200 milliseconds, and therefore outputs\r
+ * a message every 200 milliseconds.\r
  */\r
 \r
 /* Kernel includes. */\r
 #include "task.h"\r
 #include "semphr.h"\r
 \r
-/* Standard demo includes. */\r
-#include "partest.h"\r
+/* Xilinx includes. */\r
+#include "xil_printf.h"\r
 \r
 /* Priorities at which the tasks are created. */\r
 #define mainQUEUE_RECEIVE_TASK_PRIORITY                ( tskIDLE_PRIORITY + 2 )\r
@@ -125,9 +125,6 @@ will remove items as they are added, meaning the send task should always find
 the queue empty. */\r
 #define mainQUEUE_LENGTH                                       ( 1 )\r
 \r
-/* The LED toggled by the Rx task. */\r
-#define mainTASK_LED                                           ( 0 )\r
-\r
 /*-----------------------------------------------------------*/\r
 \r
 /*\r
@@ -221,7 +218,7 @@ const uint32_t ulExpectedValue = 100UL;
                it the expected value?  If it is, toggle the LED. */\r
                if( ulReceivedValue == ulExpectedValue )\r
                {\r
-                       vParTestToggleLED( mainTASK_LED );\r
+                       xil_printf( "100 received\r\n" );\r
                        ulReceivedValue = 0U;\r
                }\r
        }\r