* 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
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
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