Quick FreeRTOS+IO ExamplesThis page contains basic source code examples to demonstrate the FreeRTOS+IO concept. More detailed examples are provided in the API Reference and Transfer Mode section sections of this site. Comprehensive application examples are provided with board support packages, with notable projects documented on the Featured Demos pages.
Example 1 demonstrates how to read bytes from a peripheral that has already been opened and configured. The example is valid for all the data transfer modes.
Example 2 demonstrates how to write bytes to a peripheral that has already been opened and configured to use the interrupt driven zero copy write transfer mode.
Example 3 demonstrates how to open and configure a descriptor. First an I2C port is opened. Then, assuming the open was successful, the port is configured for zero copy write transfers and circular buffer read transfers. The read timeout and the write timeout are both set to 200ms.