This example demonstrates using the FreeRTOS USART API to receive data.
The example below implements a function that attempts to read 20 bytes from a USART. The read operation will time out if 20 bytes could not be obtained within 20ms.
Refer to the FreeRTOS peripheral control projects in the Atmel ASF distribution for complete working examples, and the FreeRTOS web site for information on getting started with FreeRTOS.